]> git.ozlabs.org Git - ccan/blobdiff - ccan/crc/_info
ccan/crc: remove broken "crc32c" routines which gave wrong results.
[ccan] / ccan / crc / _info
index 295195c4ef0d82b8afcc791bc36c318ef8248361..d786aa2509d0e9330ed564e046fa356a1ebb1eb9 100644 (file)
@@ -1,3 +1,4 @@
+#include "config.h"
 #include <string.h>
 #include <stdio.h>
 
@@ -15,6 +16,7 @@
  *     #include <stdio.h>
  *     #include <stdlib.h>
  *
+ *     // Given "IHATEMATH" outputs 0x35c6ad5a
  *     int main(int argc, char *argv[])
  *     {
  *             if (argc != 2) {
@@ -22,7 +24,7 @@
  *                             "Prints 32 bit CRC of the string\n", argv[0]);
  *                     exit(1);
  *             }
- *             printf("0x%08x\n", crc32c(0, argv[1], strlen(argv[1])));
+ *             printf("0x%08x\n", crc32_ieee(0, argv[1], strlen(argv[1])));
  *             exit(0);
  *     }
  *