From 45923c08b00ccdfd888caf6d2b555a137c563988 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 18 Oct 2017 16:13:24 +0000 Subject: Better packing / unpacking code Godbolted for x86_64 with gcc and clang. --- src/headers/bits-template | 1 + 1 file changed, 1 insertion(+) (limited to 'src/headers/bits-template') diff --git a/src/headers/bits-template b/src/headers/bits-template index 4b43de2..b09036b 100644 --- a/src/headers/bits-template +++ b/src/headers/bits-template @@ -3,6 +3,7 @@ extern void uint@BITS@_pack_big (char *, uint@BITS@_t) ; extern void uint@BITS@_unpack (char const *, uint@BITS@_t *) ; extern void uint@BITS@_unpack_big (char const *, uint@BITS@_t *) ; extern void uint@BITS@_reverse (char *, size_t) ; +extern uint@BITS@_t uint@BITS@_bswap (uint@BITS@_t) ; #define UINT@BITS@_FMT @DFMT@ #define UINT@BITS@_OFMT @OFMT@ -- cgit v1.2.3