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-12-15 17:47:08 +01:00
parent f9423ff3fa
commit bbce31552e
4 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -2544,7 +2544,7 @@ 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 */
"xchgb %b0,%h0" /* swap higher bytes */
:"=q" (x)
:"=" "q" (x)
: "0" (x));
return x;
}