summaryrefslogtreecommitdiffstats
path: root/src/bitfield/bitfield.c
diff options
context:
space:
mode:
authorChristopher Peplin <chris.peplin@rhubarbtech.com>2013-12-29 14:40:15 -0500
committerChristopher Peplin <chris.peplin@rhubarbtech.com>2013-12-29 14:40:15 -0500
commit0ba19fae04ee48392872a9647a3b711b9115f147 (patch)
tree4ba55a5925abe773531bf65256e8cbca5f03d28d /src/bitfield/bitfield.c
parent3a6af99be9a10f795b84a5783939b86d7102fb63 (diff)
Add get_byte and get_nibble to 8byte function set.
Diffstat (limited to 'src/bitfield/bitfield.c')
-rw-r--r--src/bitfield/bitfield.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/bitfield/bitfield.c b/src/bitfield/bitfield.c
index 7dfa7cd4..af17d485 100644
--- a/src/bitfield/bitfield.c
+++ b/src/bitfield/bitfield.c
@@ -3,8 +3,6 @@
#include <string.h>
#include <stddef.h>
-#define NIBBLE_SIZE (CHAR_BIT / 2)
-
uint8_t get_nibble(const uint8_t source[], const uint8_t source_length,
const uint8_t nibble_index) {
uint8_t byte_index = nibble_index / 2;