summaryrefslogtreecommitdiffstats
path: root/src/bitfield/8byte.c
diff options
context:
space:
mode:
authorChristopher Peplin <chris.peplin@rhubarbtech.com>2013-12-31 11:40:15 -0500
committerChristopher Peplin <chris.peplin@rhubarbtech.com>2013-12-31 11:40:15 -0500
commit4af52c415f1668fbd168da74d0aca903c592463f (patch)
tree977c8b9ea758c0b7f54f48a19611d4eaf2e71a36 /src/bitfield/8byte.c
parentcd74b88432054107c439c4e565bea14840dd9ea5 (diff)
Fix byte alignment for right aligned functions.
Diffstat (limited to 'src/bitfield/8byte.c')
-rw-r--r--src/bitfield/8byte.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/bitfield/8byte.c b/src/bitfield/8byte.c
index f08f227d..e3eddf20 100644
--- a/src/bitfield/8byte.c
+++ b/src/bitfield/8byte.c
@@ -10,14 +10,6 @@ uint64_t bitmask(const uint8_t bit_count) {
return (((uint64_t)0x1) << bit_count) - 1;
}
-static uint16_t bits_to_bytes(uint32_t bits) {
- uint8_t byte_count = bits / CHAR_BIT;
- if(bits % CHAR_BIT != 0) {
- ++byte_count;
- }
- return byte_count;
-}
-
uint8_t eightbyte_get_nibble(const uint64_t source, const uint8_t nibble_index,
const bool big_endian) {
return get_bit_field(source, NIBBLE_SIZE * nibble_index, NIBBLE_SIZE,