Forráskód Böngészése

Added note about CRC algorithm compatibility

Sam Lantinga 3 éve
szülő
commit
9f30d4981e
2 módosított fájl, 6 hozzáadás és 0 törlés
  1. 3 0
      src/stdlib/SDL_crc16.c
  2. 3 0
      src/stdlib/SDL_crc32.c

+ 3 - 0
src/stdlib/SDL_crc16.c

@@ -25,6 +25,9 @@
 
 /* Public domain CRC implementation adapted from:
    http://home.thep.lu.se/~bjorn/crc/crc32_simple.c
+
+   This algorithm is compatible with the 16-bit CRC described here:
+   https://www.lammertbies.nl/comm/info/crc-calculation
 */
 /* NOTE: DO NOT CHANGE THIS ALGORITHM
    There is code that relies on this in the joystick code

+ 3 - 0
src/stdlib/SDL_crc32.c

@@ -25,6 +25,9 @@
 
 /* Public domain CRC implementation adapted from:
    http://home.thep.lu.se/~bjorn/crc/crc32_simple.c
+
+   This algorithm is compatible with the 32-bit CRC described here:
+   https://www.lammertbies.nl/comm/info/crc-calculation
 */
 /* NOTE: DO NOT CHANGE THIS ALGORITHM
    There is code that relies on this in the joystick code