Fixed FEC parity.h compilation error in 32-bit arch

This commit is contained in:
ismagom 2014-04-24 14:22:00 +01:00
parent 4570802974
commit 6c59735554
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@
/* Determine parity of argument: 1 = odd, 0 = even */ /* Determine parity of argument: 1 = odd, 0 = even */
#ifdef __i386__ #ifdef __i386__
static inline int parityb(unsigned char x){ static inline int parityb(unsigned char x){
__asm__ __volatile__ ("test %1,%1;setpo %0" : "=g"(x) : "r" (x)); __asm__ __volatile__ ("test %1,%1;setpo %0" : "=qhm" (x) : "qh" (x));
return x; return x;
} }
#else #else