aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-m68k/swab.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-01-10 18:51:06 -0500
committerIngo Molnar <mingo@elte.hu>2009-01-10 18:51:06 -0500
commit0811a433c61e85f895018239c4466a36311cd5de (patch)
tree276933e518e5525d24ae37b02df2db9909679260 /include/asm-m68k/swab.h
parentc299030765292434b73572f9bcfe84951ff06614 (diff)
parent3d14bdad40315b54470cb7812293d14c8af2bf7d (diff)
Merge branch 'linus' into core/iommu
Diffstat (limited to 'include/asm-m68k/swab.h')
-rw-r--r--include/asm-m68k/swab.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/asm-m68k/swab.h b/include/asm-m68k/swab.h
new file mode 100644
index 000000000000..7221e3066825
--- /dev/null
+++ b/include/asm-m68k/swab.h
@@ -0,0 +1,16 @@
1#ifndef _M68K_SWAB_H
2#define _M68K_SWAB_H
3
4#include <asm/types.h>
5#include <linux/compiler.h>
6
7#define __SWAB_64_THRU_32__
8
9static inline __attribute_const__ __u32 __arch_swab32(__u32 val)
10{
11 __asm__("rolw #8,%0; swap %0; rolw #8,%0" : "=d" (val) : "0" (val));
12 return val;
13}
14#define __arch_swab32 __arch_swab32
15
16#endif /* _M68K_SWAB_H */