From c9977fd038d10c50abcfa2f92e07bc5401737bec Mon Sep 17 00:00:00 2001 From: TazyFoundSoup Date: Sun, 22 Feb 2026 15:38:13 +1100 Subject: fix(common): Move inline endian utility functions to common.h --- src/common.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'src/common.c') diff --git a/src/common.c b/src/common.c index e52a98b..2e12c29 100644 --- a/src/common.c +++ b/src/common.c @@ -1,16 +1,3 @@ #include "tinyff/common.h" -inline uint32_t get_big_endian(const uint8_t *buffer) { - return (uint32_t)(buffer[0] << 24) | - (uint32_t)(buffer[1] << 16) | - (uint32_t)(buffer[2] << 8) | - (uint32_t)(buffer[3]); -} - -inline uint32_t get_little_endian(const uint8_t *buffer) -{ - return (uint32_t)(buffer[0]) | - (uint32_t)(buffer[1] << 8) | - (uint32_t)(buffer[2] << 16) | - (uint32_t)(buffer[3] << 24); -} \ No newline at end of file +// Endian functions moved to header because C's acting up again \ No newline at end of file -- cgit v1.2.3