From e88276fdec7b3b94ec939f5eb1c8def004ee3878 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 1 Jun 2022 12:36:34 +0000 Subject: Rework endianness conversion primitives Signed-off-by: Laurent Bercot --- src/libstddjb/uint64_bswapp.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/libstddjb/uint64_bswapp.c (limited to 'src/libstddjb/uint64_bswapp.c') diff --git a/src/libstddjb/uint64_bswapp.c b/src/libstddjb/uint64_bswapp.c new file mode 100644 index 0000000..0afc549 --- /dev/null +++ b/src/libstddjb/uint64_bswapp.c @@ -0,0 +1,8 @@ +/* ISC license. */ + +#include + +void uint64_bswapp (uint64_t *x) +{ + *x = uint64_bswap(*x) ; +} -- cgit v1.2.3