1 #ifndef __ASM_SH_BYTEORDER_H
2 #define __ASM_SH_BYTEORDER_H
5 * Copyright (C) 1999 Niibe Yutaka
10 static __inline__ __const__ __u32
___arch__swab32(__u32 x
)
12 __asm__("swap.b %0, %0\n\t"
20 static __inline__ __const__ __u16
___arch__swab16(__u16 x
)
22 __asm__("swap.b %0, %0"
28 #define __arch__swab32(x) ___arch__swab32(x)
29 #define __arch__swab16(x) ___arch__swab16(x)
31 #if !defined(__STRICT_ANSI__) || defined(__KERNEL__)
32 # define __BYTEORDER_HAS_U64__
33 # define __SWAB_64_THRU_32__
36 #ifdef __LITTLE_ENDIAN__
37 #include <linux/byteorder/little_endian.h>
39 #include <linux/byteorder/big_endian.h>
42 #endif /* __ASM_SH_BYTEORDER_H */