inline asm: accept concatenated strings in constraints
This really should be handled implicitly in the preprocessor, but for now this is enough.
This commit is contained in:
@ -2544,7 +2544,7 @@ static __inline__ __const__ unsigned int swab32(unsigned int x)
|
||||
static __inline__ __const__ unsigned int swab32(unsigned int x)
|
||||
{
|
||||
__asm__("xchgb %b0,%h0\n\t" /* swap lower bytes */
|
||||
"rorl $16,%0\n\t" /* swap words */
|
||||
"rorl $16,%0\n\t" /* swap words */
|
||||
"xchgb %b0,%h0" /* swap higher bytes */
|
||||
:"=" "q" (x)
|
||||
: "0" (x));
|
||||
|
||||
Reference in New Issue
Block a user