diff options
Diffstat (limited to 'src/bitfield/bitfield.h')
-rw-r--r-- | src/bitfield/bitfield.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bitfield/bitfield.h b/src/bitfield/bitfield.h index ef04d9ca..5dd976f0 100644 --- a/src/bitfield/bitfield.h +++ b/src/bitfield/bitfield.h @@ -138,8 +138,14 @@ bool copy_bytes_right_aligned(const uint8_t source[], const uint16_t source_leng bool set_nibble(const uint16_t nibble_index, const uint8_t value, uint8_t* destination, const uint16_t destination_length); +/* Private: + */ uint16_t bits_to_bytes(uint32_t bits); +/* Private: + */ +uint64_t bitmask(const uint8_t bit_count); + #ifdef __cplusplus } #endif |