Skip to content

Commit

Permalink
After experimentation, switch CRC function used
Browse files Browse the repository at this point in the history
  • Loading branch information
Dherse committed Jun 29, 2020
1 parent 9d47151 commit 3696179
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/packet.c
Original file line number Diff line number Diff line change
@@ -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++); \
Expand Down

0 comments on commit 3696179

Please sign in to comment.