Commit 087a2adc authored by Eric Coissac's avatar Eric Coissac

Comment the asm command

parent adc2a364
......@@ -80,6 +80,7 @@ uint32_t round2(uint32_t x)
if (!(x & (x-1)))
return x;
/*
#ifdef __intel__
// on Intel platform, the bsr instruction return the index
......@@ -88,9 +89,10 @@ uint32_t round2(uint32_t x)
asm("bsr %%eax, %%ebx;" : "=b" (p) : "a" (x));
p++;
#else
*/
p=0;
while(x) x>>=1,p++;
#endif
/*#endif*/
return (1 << p);
}
......
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