summaryrefslogtreecommitdiff
path: root/src/headers/unsigned-template
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2022-06-01 12:36:34 +0000
committerLaurent Bercot <ska@appnovation.com>2022-06-01 12:36:34 +0000
commite88276fdec7b3b94ec939f5eb1c8def004ee3878 (patch)
tree118f28d54fe208fe823e5e4cc775bbf377ea53a4 /src/headers/unsigned-template
parent37b42c179bb00d05cb47c739cb95283548f84fb2 (diff)
downloadskalibs-e88276fdec7b3b94ec939f5eb1c8def004ee3878.tar.xz
Rework endianness conversion primitives
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/headers/unsigned-template')
-rw-r--r--src/headers/unsigned-template10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/headers/unsigned-template b/src/headers/unsigned-template
index 8ef6db4..d7496a0 100644
--- a/src/headers/unsigned-template
+++ b/src/headers/unsigned-template
@@ -4,9 +4,12 @@
#define @type@_unpack uint@BITS@_unpack
#define @type@_unpack_big uint@BITS@_unpack_big
-#define @type@_reverse uint@BITS@_reverse
-#define @type@_big_endian uint@BITS@_big_endian
-#define @type@_little_endian uint@BITS@_little_endian
+#define @type@_little uint@BITS@_little
+#define @type@_big uint@BITS@_big
+#define @type@_littlep uint@BITS@_littlep
+#define @type@_bigp uint@BITS@_bigp
+#define @type@_littlen uint@BITS@_littlen
+#define @type@_bign uint@BITS@_bign
#define @TYPE@_FMT UINT@BITS@_FMT
#define @TYPE@_OFMT UINT@BITS@_OFMT
@@ -39,4 +42,3 @@
#define @type@_bscan(s, u) @type@_scan_base(s, (u), 2)
#define @type@0_bscan(s, u) @type@0_scan_base(s, (u), 2)
-