summaryrefslogtreecommitdiffstats
path: root/src/bitfield/bitarray.c
diff options
context:
space:
mode:
authorChristopher Peplin <chris.peplin@rhubarbtech.com>2013-12-29 14:18:50 -0500
committerChristopher Peplin <chris.peplin@rhubarbtech.com>2013-12-29 14:18:50 -0500
commite5a2a6b9550319cf05c3a3ae93080b17d322078e (patch)
tree067e980d8140983b842dc7a886160ce0e83700cd /src/bitfield/bitarray.c
parente3bb578a0b11a25b0ae4c805fb7b98b724103b6f (diff)
Document all bitfield functions.
Diffstat (limited to 'src/bitfield/bitarray.c')
-rw-r--r--src/bitfield/bitarray.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bitfield/bitarray.c b/src/bitfield/bitarray.c
index 8fbc941d..f8c23527 100644
--- a/src/bitfield/bitarray.c
+++ b/src/bitfield/bitarray.c
@@ -113,7 +113,7 @@ bool copyBits(const uint8_t* source_origin, const uint16_t source_length,
*
* Returns: a bit position from 0 to 7.
*/
-static uint8_t findEndBit(const uint16_t startBit, const uint16_t numBits) {
+uint8_t find_end_bit(const uint16_t numBits) {
int endBit = numBits % CHAR_BIT;
return endBit == 0 ? CHAR_BIT : endBit;
}
@@ -125,5 +125,5 @@ bool copyBitsRightAligned(const uint8_t source[], const uint16_t source_length,
destination_length,
// provide a proper destination offset so the result is right
// aligned
- CHAR_BIT - findEndBit(offset, bit_count));
+ CHAR_BIT - find_end_bit(bit_count));
}