Procházet zdrojové kódy

Added notes about faster crc32() options

Sam Lantinga před 1 dnem
rodič
revize
516f4a0bd5
1 změnil soubory, kde provedl 6 přidání a 0 odebrání
  1. 6 0
      src/stdlib/SDL_crc32.c

+ 6 - 0
src/stdlib/SDL_crc32.c

@@ -29,6 +29,12 @@
 /* NOTE: DO NOT CHANGE THIS ALGORITHM
 /* NOTE: DO NOT CHANGE THIS ALGORITHM
    There is code that relies on this in the joystick code
    There is code that relies on this in the joystick code
 */
 */
+/* If you're looking for a faster CRC32 implementation,
+   the crc32() in zlib is a convenient option.
+
+   This is also Zlib licensed and extremely fast:
+       https://github.com/corsix/fast-crc32
+*/
 
 
 static Uint32 crc32_for_byte(Uint32 r)
 static Uint32 crc32_for_byte(Uint32 r)
 {
 {