Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _ASM_M32R_UNALIGNED_H |
| 2 | #define _ASM_M32R_UNALIGNED_H |
| 3 | |
Harvey Harrison | 6510d41 | 2008-04-29 01:03:30 -0700 | [diff] [blame] | 4 | #if defined(__LITTLE_ENDIAN__) |
| 5 | # include <linux/unaligned/le_memmove.h> |
| 6 | # include <linux/unaligned/be_byteshift.h> |
| 7 | # include <linux/unaligned/generic.h> |
| 8 | # define get_unaligned __get_unaligned_le |
| 9 | # define put_unaligned __put_unaligned_le |
| 10 | #else |
| 11 | # include <linux/unaligned/be_memmove.h> |
| 12 | # include <linux/unaligned/le_byteshift.h> |
| 13 | # include <linux/unaligned/generic.h> |
| 14 | # define get_unaligned __get_unaligned_be |
| 15 | # define put_unaligned __put_unaligned_be |
| 16 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | |
Hirokazu Takata | fabb626 | 2007-02-10 01:43:40 -0800 | [diff] [blame] | 18 | #endif /* _ASM_M32R_UNALIGNED_H */ |