summaryrefslogtreecommitdiffstats
path: root/sys/arch/sh/include/endian.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/sh/include/endian.h')
-rw-r--r--sys/arch/sh/include/endian.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/sh/include/endian.h b/sys/arch/sh/include/endian.h
index 58c69dae57a..9efcde9d80b 100644
--- a/sys/arch/sh/include/endian.h
+++ b/sys/arch/sh/include/endian.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: endian.h,v 1.2 2011/03/11 15:17:08 pirofti Exp $ */
+/* $OpenBSD: endian.h,v 1.3 2011/03/12 04:03:04 guenther Exp $ */
/* $NetBSD: endian.h,v 1.4 2000/03/17 00:09:25 mycroft Exp $ */
/* Written by Manuel Bouyer. Public domain */
@@ -10,7 +10,7 @@
#define __swap64md __swap64gen
-#define __swap16md(x) ({ \
+#define __swap16md(x) __statement({ \
uint16_t rval; \
\
__asm volatile ("swap.b %1,%0" : "=r"(rval) : "r"(x)); \
@@ -18,7 +18,7 @@
rval; \
})
-#define __swap32md(x) ({ \
+#define __swap32md(x) __statement({ \
uint32_t rval; \
\
__asm volatile ("swap.b %1,%0; swap.w %0,%0; swap.b %0,%0" \