Commit a9099042 authored by BRAMAS Berenger's avatar BRAMAS Berenger

should add bracket for the asm prefetch

parent 811143be
......@@ -79,7 +79,7 @@ typedef long long MortonIndex;
#include <xmmintrin.h>
#define Prefetch_Read0(X) _mm_prefetch((char*)(X), _MM_HINT_T0);
inline void Prefetch_Write0_core(const char* ptr){
asm("prefetchw %0": : "g"(ptr) :);
asm("prefetchw (%0)": : "g"(ptr) :);
}
#define Prefetch_Write0(X) Prefetch_Write0_core((const char*)X);
#define Prefetch_Read1(X) _mm_prefetch((char*)(X), _MM_HINT_T1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment