Skip to content

Instantly share code, notes, and snippets.

@kotarou3
Created October 30, 2015 02:14
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 kotarou3/613db2ae0f60139300a6 to your computer and use it in GitHub Desktop.
Save kotarou3/613db2ae0f60139300a6 to your computer and use it in GitHub Desktop.
#include <nmmintrin.h>
#include <stdint.h>
#include <stdio.h>
int main() {
for (uint64_t i = 0; i < 0x100000000ULL; ++i)
if (_mm_crc32_u32(0, i) == i)
printf("%08x\n", (uint32_t)i);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment