Bladeren bron

Added note about CRC algorithm compatibility

Sam Lantinga 2 jaren geleden
bovenliggende
commit
9f30d4981e
2 gewijzigde bestanden met toevoegingen van 6 en 0 verwijderingen
  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