From 9e09af932600827df521d9a9a917a99127b59fe9 Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Thu, 10 Nov 2016 16:44:36 -0500 Subject: [PATCH] Remove unused macros from generated bitfield header Signed-off-by: Philippe Proulx --- barectf/templates.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/barectf/templates.py b/barectf/templates.py index 993f819..4c31ece 100644 --- a/barectf/templates.py +++ b/barectf/templates.py @@ -530,15 +530,6 @@ do { \\ _v >>= final; \\ } while (0) -#define _$prefix$bt_is_signed_type(type) ((type) -1 < (type) 0) - -#define _$prefix$bt_unsigned_cast(type, v) \\ -__extension__ ({ \\ - (sizeof(v) < sizeof(type)) ? \\ - ((type) (v)) & (~(~(type) 0 << (sizeof(v) * CHAR_BIT))) : \\ - (type) (v); \\ -}) - /* * $prefix$bt_bitfield_write - write integer to a bitfield in native endianness * -- 2.34.1