commit 60f60b28a92fdbf2139ff67a95bac996052d7c2b parent 1e9193ed49b89d4895ef6fcd658add257aa446d9 Author: Laurent Bercot <ska-skaware@skarnet.org> Date: Mon, 27 Nov 2017 15:13:33 +0000 Add _PACK and pack/unpack functions for signed types Diffstat:
M | src/headers/signed-template | | | 7 | ++++++- |
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/headers/signed-template b/src/headers/signed-template @@ -1,5 +1,10 @@ -#define @TYPE@_FMT (1+UINT@BITS@_FMT) +#define @TYPE@_PACK @BYTES@ +#define @type@_pack uint@BITS@_pack +#define @type@_pack_big uint@BITS@_pack_big +#define @type@_unpack uint@BITS@_unpack +#define @type@_unpack_big uint@BITS@_unpack_big +#define @TYPE@_FMT (1+UINT@BITS@_FMT) #define @type@_fmt int@BITS@_fmt #define @type@_fmtlist int@BITS@_fmtlist #define @type@_scan int@BITS@_scan