patch-2.3.47 linux/include/linux/byteorder/big_endian.h
Next file: linux/include/linux/byteorder/little_endian.h
Previous file: linux/include/linux/blkdev.h
Back to the patch index
Back to the overall index
- Lines: 19
- Date:
Thu Feb 17 09:20:13 2000
- Orig file:
v2.3.46/linux/include/linux/byteorder/big_endian.h
- Orig date:
Fri Dec 5 05:40:24 1997
diff -u --recursive --new-file v2.3.46/linux/include/linux/byteorder/big_endian.h linux/include/linux/byteorder/big_endian.h
@@ -14,6 +14,18 @@
#define __constant_ntohl(x) ((__u32)(x))
#define __constant_htons(x) ((__u16)(x))
#define __constant_ntohs(x) ((__u16)(x))
+#define __constant_cpu_to_le64(x) ___swab64((x))
+#define __constant_le64_to_cpu(x) ___swab64((x))
+#define __constant_cpu_to_le32(x) ___swab32((x))
+#define __constant_le32_to_cpu(x) ___swab32((x))
+#define __constant_cpu_to_le16(x) ___swab16((x))
+#define __constant_le16_to_cpu(x) ___swab16((x))
+#define __constant_cpu_to_be64(x) ((__u64)(x))
+#define __constant_be64_to_cpu(x) ((__u64)(x))
+#define __constant_cpu_to_be32(x) ((__u32)(x))
+#define __constant_be32_to_cpu(x) ((__u32)(x))
+#define __constant_cpu_to_be16(x) ((__u16)(x))
+#define __constant_be16_to_cpu(x) ((__u16)(x))
#define __cpu_to_le64(x) __swab64((x))
#define __le64_to_cpu(x) __swab64((x))
#define __cpu_to_le32(x) __swab32((x))
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)