Mercurial > crc32
diff crc32x86.c @ 2:ead9f84d11db
*: make it work on non-x86 too
| author | Paper <paper@tflc.us> |
|---|---|
| date | Mon, 09 Feb 2026 01:21:00 -0500 |
| parents | 422835bc1aca |
| children | 6483683ac857 |
line wrap: on
line diff
--- a/crc32x86.c Mon Feb 09 01:18:06 2026 -0500 +++ b/crc32x86.c Mon Feb 09 01:21:00 2026 -0500 @@ -1,5 +1,7 @@ /* x86-specific CRC routines */ +#ifdef __x86_64__ + #include "crc32.h" #include "crc32i.h" #include <stdio.h> @@ -201,3 +203,5 @@ * need to align any more (or use crc32c_r). */ return crc32qw_r(crc, msg, sz); } + +#endif
