Mercurial > crc32
comparison crc32-impls.h @ 2:ead9f84d11db
*: make it work on non-x86 too
| author | Paper <paper@tflc.us> |
|---|---|
| date | Mon, 09 Feb 2026 01:21:00 -0500 |
| parents | 90cb48b87dcc |
| children |
comparison
equal
deleted
inserted
replaced
| 1:90cb48b87dcc | 2:ead9f84d11db |
|---|---|
| 1 #ifndef CRC32_IMPL | 1 #ifndef CRC32_IMPL |
| 2 # define CRC32_IMPL(name) | 2 # define CRC32_IMPL(name) |
| 3 #endif | 3 #endif |
| 4 CRC32_IMPL(c) | 4 CRC32_IMPL(c) |
| 5 CRC32_IMPL(qw) | 5 CRC32_IMPL(qw) |
| 6 #ifdef __x86_64__ | |
| 6 CRC32_IMPL(x86_vpclmulqdq) | 7 CRC32_IMPL(x86_vpclmulqdq) |
| 8 #endif | |
| 7 #undef CRC32_IMPL | 9 #undef CRC32_IMPL |
