Skip to content
Snippets Groups Projects
Commit 88818199 authored by Griffin, Matt J Dr (PG/R - Comp Sci & Elec Eng)'s avatar Griffin, Matt J Dr (PG/R - Comp Sci & Elec Eng)
Browse files

Add correct code examples

parent e09800e2
No related branches found
No related tags found
No related merge requests found
unsigned fun1(unsigned x) {
unsigned t = 0;
if (x < N) {
t = b[a[x] * 512];}
return t;
}
unsigned fun2(unsigned x) {
unsigned t = 0;
if (x < N) {
_mm_lfence();
t = b[a[x] * 512];}
return t;
}
unsigned fun3(unsigned x) {
unsigned t = 0;
if (x < N) {
unsigned v = a[x];
_mm_lfence();
t = b[v * 512];}
return t;
}
unsigned fun4(unsigned x) {
unsigned t = 0;
if (x < N) {
unsigned v = a[0];
t = b[v * 512];}
return t;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment