summaryrefslogtreecommitdiffstats
path: root/include/sys/byteorder.h
blob: 7e7d04809d60d1d43effb1dcb6c70408de6af871 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef _SPL_BYTEORDER_H
#define _SPL_BYTEORDER_H

#include <asm/byteorder.h>

#define LE_16(x)	cpu_to_le16(x)
#define LE_32(x)	cpu_to_le32(x)
#define LE_64(x)	cpu_to_le64(x)
#define BE_16(x)	cpu_to_be16(x)
#define BE_32(x)	cpu_to_be32(x)
#define BE_64(x)	cpu_to_be64(x)

#endif /* SPL_BYTEORDER_H */