diff options
author | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2013-12-29 14:40:15 -0500 |
---|---|---|
committer | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2013-12-29 14:40:15 -0500 |
commit | 0ba19fae04ee48392872a9647a3b711b9115f147 (patch) | |
tree | 4ba55a5925abe773531bf65256e8cbca5f03d28d /src/bitfield/bitfield.h | |
parent | 3a6af99be9a10f795b84a5783939b86d7102fb63 (diff) |
Add get_byte and get_nibble to 8byte function set.
Diffstat (limited to 'src/bitfield/bitfield.h')
-rw-r--r-- | src/bitfield/bitfield.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bitfield/bitfield.h b/src/bitfield/bitfield.h index 52ed143d..b58e4e59 100644 --- a/src/bitfield/bitfield.h +++ b/src/bitfield/bitfield.h @@ -4,6 +4,8 @@ #include <stdint.h> #include <stdbool.h> +#define NIBBLE_SIZE (CHAR_BIT / 2) + #ifdef __cplusplus extern "C" { #endif |