From: Philippe Proulx Date: Thu, 10 Nov 2016 21:44:36 +0000 (-0500) Subject: Remove unused macros from generated bitfield header X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=9e09af932600827df521d9a9a917a99127b59fe9;p=deliverable%2Fbarectf.git Remove unused macros from generated bitfield header Signed-off-by: Philippe Proulx --- 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 *