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:
Michael Matz
2016-07-11 16:42:18 +02:00
parent f9423ff3fa
commit bbce31552e
4 changed files with 8 additions and 7 deletions

View File

@ -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));