am 244299f4: Merge "Switch aarch64 to __builtin_bswap16."
* commit '244299f4e0b58e48b5fdb15fc10a7327e0c32cf9': Switch aarch64 to __builtin_bswap16.
This commit is contained in:
commit
58543de721
@ -31,13 +31,8 @@
|
|||||||
|
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
|
|
||||||
#define __swap16md(x) ({ \
|
|
||||||
register u_int16_t _x = (x); \
|
|
||||||
__asm volatile ("rev16 %0, %0" : "+r" (_x)); \
|
|
||||||
_x; \
|
|
||||||
})
|
|
||||||
|
|
||||||
/* Use GCC builtins */
|
/* Use GCC builtins */
|
||||||
|
#define __swap16md(x) __builtin_bswap16(x)
|
||||||
#define __swap32md(x) __builtin_bswap32(x)
|
#define __swap32md(x) __builtin_bswap32(x)
|
||||||
#define __swap64md(x) __builtin_bswap64(x)
|
#define __swap64md(x) __builtin_bswap64(x)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user