unaligned.h 457 Bytes
Newer Older
Simon Kagstrom's avatar
Simon Kagstrom committed
1 2 3
#ifndef _ASM_ARM_UNALIGNED_H
#define _ASM_ARM_UNALIGNED_H

4 5
#include <linux/unaligned/le_byteshift.h>
#include <linux/unaligned/be_byteshift.h>
Simon Kagstrom's avatar
Simon Kagstrom committed
6 7 8 9 10
#include <linux/unaligned/generic.h>

/*
 * Select endianness
 */
David Feng's avatar
David Feng committed
11
#if __BYTE_ORDER == __LITTLE_ENDIAN
Simon Kagstrom's avatar
Simon Kagstrom committed
12 13 14 15 16 17 18 19
#define get_unaligned	__get_unaligned_le
#define put_unaligned	__put_unaligned_le
#else
#define get_unaligned	__get_unaligned_be
#define put_unaligned	__put_unaligned_be
#endif

#endif /* _ASM_ARM_UNALIGNED_H */