mirror of
https://github.com/nfc-tools/mfcuk.git
synced 2026-07-18 01:31:49 +00:00
- 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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user