summaryrefslogtreecommitdiffstats
path: root/src/bitfield
diff options
context:
space:
mode:
Diffstat (limited to 'src/bitfield')
-rw-r--r--src/bitfield/8byte.c2
-rw-r--r--src/bitfield/8byte.h2
-rw-r--r--src/bitfield/bitfield.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/bitfield/8byte.c b/src/bitfield/8byte.c
index 3c555f08..5f310425 100644
--- a/src/bitfield/8byte.c
+++ b/src/bitfield/8byte.c
@@ -46,7 +46,7 @@ uint64_t eightbyte_get_bitfield(uint64_t source, const uint16_t offset,
return ret & bitmask(bit_count);
}
-bool set_bit_field(uint64_t* destination, uint64_t value, const uint16_t offset,
+bool eightbyte_set_bitfield(uint64_t* destination, uint64_t value, const uint16_t offset,
const uint16_t bit_count) {
if(value > bitmask(bit_count)) {
return false;
diff --git a/src/bitfield/8byte.h b/src/bitfield/8byte.h
index ab775caa..2916c218 100644
--- a/src/bitfield/8byte.h
+++ b/src/bitfield/8byte.h
@@ -74,7 +74,7 @@ uint8_t eightbyte_get_byte(const uint64_t source, const uint8_t byte_index,
* Returns true if the bit_count is enough to fully represent the value, and
* false if it will not fit.
*/
-bool eightbyte_set_bit_field(uint64_t* destination, uint64_t value,
+bool eightbyte_set_bitfield(uint64_t* destination, uint64_t value,
const uint16_t offset, const uint16_t bit_count);
/* Private: Determine the index of the last bit used.
diff --git a/src/bitfield/bitfield.h b/src/bitfield/bitfield.h
index 80f31243..a080c866 100644
--- a/src/bitfield/bitfield.h
+++ b/src/bitfield/bitfield.h
@@ -37,7 +37,7 @@ extern "C" {
*
* Returns the value of the requested bit field, right aligned in a uint64_t.
*/
-uint64_t get_bits(const uint8_t source[], const uint8_t source_length,
+uint64_t get_bitfield(const uint8_t source[], const uint8_t source_length,
const uint16_t offset, const uint16_t bit_count);
/* Public: Return a single nibble from the byte array, with range checking.