patch-2.3.47 linux/include/linux/byteorder/little_endian.h
Next file: linux/include/linux/byteorder/pdp_endian.h
Previous file: linux/include/linux/byteorder/big_endian.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/little_endian.h
- Orig date:
Tue Sep 1 11:49:36 1998
diff -u --recursive --new-file v2.3.46/linux/include/linux/byteorder/little_endian.h linux/include/linux/byteorder/little_endian.h
@@ -14,6 +14,18 @@
#define __constant_ntohl(x) ___swab32((x))
#define __constant_htons(x) ___swab16((x))
#define __constant_ntohs(x) ___swab16((x))
+#define __constant_cpu_to_le64(x) ((__u64)(x))
+#define __constant_le64_to_cpu(x) ((__u64)(x))
+#define __constant_cpu_to_le32(x) ((__u32)(x))
+#define __constant_le32_to_cpu(x) ((__u32)(x))
+#define __constant_cpu_to_le16(x) ((__u16)(x))
+#define __constant_le16_to_cpu(x) ((__u16)(x))
+#define __constant_cpu_to_be64(x) ___swab64((x))
+#define __constant_be64_to_cpu(x) ___swab64((x))
+#define __constant_cpu_to_be32(x) ___swab32((x))
+#define __constant_be32_to_cpu(x) ___swab32((x))
+#define __constant_cpu_to_be16(x) ___swab16((x))
+#define __constant_be16_to_cpu(x) ___swab16((x))
#define __cpu_to_le64(x) ((__u64)(x))
#define __le64_to_cpu(x) ((__u64)(x))
#define __cpu_to_le32(x) ((__u32)(x))
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)