Skip to content

Instantly share code, notes, and snippets.

@bloodeagle40234
Created June 28, 2017 02:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bloodeagle40234/011251d8377d6a53c6dffab203400b55 to your computer and use it in GitHub Desktop.
Save bloodeagle40234/011251d8377d6a53c6dffab203400b55 to your computer and use it in GitHub Desktop.
diff --git a/src/utils/chksum/crc32.c b/src/utils/chksum/crc32.c
index 6710dd7..fc52f5d 100644
--- a/src/utils/chksum/crc32.c
+++ b/src/utils/chksum/crc32.c
@@ -46,7 +46,7 @@
#include <nmmintrin.h>
int
-crc32(int crc, const void *buf, size_t size)
+crc32_l(int crc, const void *buf, size_t size)
{
unsigned long long *current = (unsigned long long*)buf;
unsigned char *current_char;
@@ -116,7 +116,7 @@ static int crc32_tab[] = {
#define POLY_CRC_32 0x11EDC6F41
int
-crc32(int crc, const void *buf, size_t size)
+crc32_l(int crc, const void *buf, size_t size)
{
const char *p;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment