summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/h8300/bits/byteswap.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/h8300/bits/byteswap.h')
-rw-r--r--libc/sysdeps/linux/h8300/bits/byteswap.h15
1 files changed, 1 insertions, 14 deletions
diff --git a/libc/sysdeps/linux/h8300/bits/byteswap.h b/libc/sysdeps/linux/h8300/bits/byteswap.h
index 71a66c689..08ca99f83 100644
--- a/libc/sysdeps/linux/h8300/bits/byteswap.h
+++ b/libc/sysdeps/linux/h8300/bits/byteswap.h
@@ -19,20 +19,7 @@
#ifndef _ASM_BITS_BYTESWAP_H
#define _ASM_BITS_BYTESWAP_H 1
-#define __bswap_non_constant_32(x) \
- __extension__ \
- ({ unsigned int __v; \
- __asm__ __volatile__ ("mov.l %0,er0\n\t" \
- "mov.b r0l,r1h\n\t" \
- "mov.b r0h,r1l\n\t" \
- "mov.w r1,e1\n\t" \
- "mov.w e0,r0\n\t" \
- "mov.b r0l,r1h\n\t" \
- "mov.b r0h,r1l\n\t" \
- "mov.l er1,%0" \
- : "=d" (__v) \
- : "0" (x): "er0","er1"); \
- __v; })
+#define __bswap_non_constant_32(x) __builtin_bswap32(x)
#endif