From 3696179234bd18e2a29cb0eec00701bea49de066 Mon Sep 17 00:00:00 2001 From: Dherse Date: Tue, 30 Jun 2020 01:02:39 +0200 Subject: [PATCH] After experimentation, switch CRC function used --- src/packet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/packet.c b/src/packet.c index de0d694..14637c1 100644 --- a/src/packet.c +++ b/src/packet.c @@ -1,7 +1,7 @@ #include "../headers/packet.h" -#define CRC32H(old, value, length) crc32_16bytes(value, length, old) -#define CRC32P(old, value, length) crc32_16bytes_prefetch(value, length, old, MAX_PAYLOAD_SIZE) +#define CRC32H(old, value, length) crc32_8bytes(value, length, old) +#define CRC32P(old, value, length) crc32_16bytes(value, length, old) #define U32_FROM_BUFFER(buffer) __extension__ ({ \ uint8_t a = *(buffer++); \ uint8_t b = *(buffer++); \