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/uint32_bswapp.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/libstddjb/uint32_bswapp.c (limited to 'src/libstddjb/uint32_bswapp.c') diff --git a/src/libstddjb/uint32_bswapp.c b/src/libstddjb/uint32_bswapp.c new file mode 100644 index 0000000..b18e80b --- /dev/null +++ b/src/libstddjb/uint32_bswapp.c @@ -0,0 +1,8 @@ +/* ISC license. */ + +#include + +void uint32_bswapp (uint32_t *x) +{ + *x = uint32_bswap(*x) ; +} -- cgit v1.2.3