- Added INSTALL file with the mambo-jambo compilation instructions

- Added few TODO items
 - Changed asm to __asm__ so that some GNUC compilers are happy
This commit is contained in:
zveriu@gmail.com
2011-10-17 07:03:37 +00:00
parent 880db4e1b9
commit 7edf0d2b0a
3 changed files with 16 additions and 3 deletions

View File

@@ -61,13 +61,15 @@ static inline int parity(uint32_t x)
x ^= x >> 4;
return BIT(0x6996, x & 0xf);
#else
asm( "movl %1, %%eax\n"
__asm__(
"movl %1, %%eax\n"
"mov %%ax, %%cx\n"
"shrl $0x10, %%eax\n"
"xor %%ax, %%cx\n"
"xor %%ch, %%cl\n"
"setpo %%al\n"
"movzx %%al, %0\n": "=r"(x) : "r"(x): "eax","ecx");
"movzx %%al, %0\n": "=r"(x) : "r"(x): "eax","ecx"
);
return x;
#endif
}