summaryrefslogtreecommitdiffstats
path: root/src/shared/libosmocore/include/osmocom/core/crc16.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/libosmocore/include/osmocom/core/crc16.h')
-rw-r--r--src/shared/libosmocore/include/osmocom/core/crc16.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/shared/libosmocore/include/osmocom/core/crc16.h b/src/shared/libosmocore/include/osmocom/core/crc16.h
index 7a512490..0e524176 100644
--- a/src/shared/libosmocore/include/osmocom/core/crc16.h
+++ b/src/shared/libosmocore/include/osmocom/core/crc16.h
@@ -22,13 +22,13 @@
#include <sys/types.h>
-extern uint16_t const crc16_table[256];
+extern uint16_t const osmo_crc16_table[256];
-extern uint16_t crc16(uint16_t crc, const uint8_t *buffer, size_t len);
+extern uint16_t osmo_crc16(uint16_t crc, const uint8_t *buffer, size_t len);
-static inline uint16_t crc16_byte(uint16_t crc, const uint8_t data)
+static inline uint16_t osmo_crc16_byte(uint16_t crc, const uint8_t data)
{
- return (crc >> 8) ^ crc16_table[(crc ^ data) & 0xff];
+ return (crc >> 8) ^ osmo_crc16_table[(crc ^ data) & 0xff];
}
#endif /* __CRC16_H */