am cbc7f695: ndk: Replace \'asm\' with \'__asm__\' in <asm/byteorder.h>
* commit 'cbc7f6954872e85c8cf1c6af7e02d0cf471cc1a8': ndk: Replace 'asm' with '__asm__' in <asm/byteorder.h>
This commit is contained in:
committed by
Android Git Automerger
commit
8e82e29f76
@@ -22,7 +22,7 @@ static inline __attribute_const__ __u32 ___arch__swab32(__u32 x)
|
||||
#ifndef __thumb__
|
||||
if (!__builtin_constant_p(x)) {
|
||||
|
||||
asm ("eor\t%0, %1, %1, ror #16" : "=r" (t) : "r" (x));
|
||||
__asm__ ("eor\t%0, %1, %1, ror #16" : "=r" (t) : "r" (x));
|
||||
} else
|
||||
#endif
|
||||
t = x ^ ((x << 16) | (x >> 16));
|
||||
|
||||
Reference in New Issue
Block a user