summaryrefslogtreecommitdiffstats
path: root/src/bitfield/bitarray.c
diff options
context:
space:
mode:
authorChristopher Peplin <chris.peplin@rhubarbtech.com>2013-12-29 14:20:12 -0500
committerChristopher Peplin <chris.peplin@rhubarbtech.com>2013-12-29 14:21:27 -0500
commit3a6af99be9a10f795b84a5783939b86d7102fb63 (patch)
tree237302584675ab0d838f70e52a20f429c7074da7 /src/bitfield/bitarray.c
parente5a2a6b9550319cf05c3a3ae93080b17d322078e (diff)
Standardize function names to snake_case.
Diffstat (limited to 'src/bitfield/bitarray.c')
-rw-r--r--src/bitfield/bitarray.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bitfield/bitarray.c b/src/bitfield/bitarray.c
index f8c23527..35fc2d9e 100644
--- a/src/bitfield/bitarray.c
+++ b/src/bitfield/bitarray.c
@@ -20,7 +20,7 @@ static const uint8_t reverse_mask[] =
static const uint8_t reverse_mask_xor[] =
{ 0xff, 0x7f, 0x3f, 0x1f, 0x0f, 0x07, 0x03, 0x01, 0x00 };
-bool copyBits(const uint8_t* source_origin, const uint16_t source_length,
+bool copy_bits(const uint8_t* source_origin, const uint16_t source_length,
const uint16_t source_offset, uint16_t bit_count,
uint8_t* destination_origin, const uint16_t destination_length,
const uint16_t destination_offset) {
@@ -118,10 +118,10 @@ uint8_t find_end_bit(const uint16_t numBits) {
return endBit == 0 ? CHAR_BIT : endBit;
}
-bool copyBitsRightAligned(const uint8_t source[], const uint16_t source_length,
+bool copy_bits_right_aligned(const uint8_t source[], const uint16_t source_length,
const uint16_t offset, const uint16_t bit_count,
uint8_t* destination, const uint16_t destination_length) {
- return copyBits(source, source_length, offset, bit_count, destination,
+ return copy_bits(source, source_length, offset, bit_count, destination,
destination_length,
// provide a proper destination offset so the result is right
// aligned