summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/h8300/bits/byteswap.h
diff options
context:
space:
mode:
authorYoshinori Sato <ysato@users.sourceforge.jp>2015-05-24 02:06:25 +0900
committerWaldemar Brodkorb <wbx@openadk.org>2015-06-10 10:19:40 -0500
commitb4c496207001d9e18f4154bb4381174f0dc2011b (patch)
tree3ecda008fd12a146d40fd7d254914455d8a4fb4a /libc/sysdeps/linux/h8300/bits/byteswap.h
parente364302aeaa7fc4f18c66acdbba5dd2c14f77555 (diff)
h8300: headers update
- wire up new kernel Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
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