add LSB-first comment and Poly value

pull/3/head
Wang Yaofu 4 years ago committed by GitHub
parent a3fdcc0bf6
commit 4f8f66d5e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3,6 +3,12 @@
** **
** Author:Wang Yaofu voipman@qq.com ** Author:Wang Yaofu voipman@qq.com
** Description: The source file of class crc32. ** Description: The source file of class crc32.
** CRC32 implementation according to IEEE standards.
** Polynomials are represented in LSB-first form
** following parameters:
** Width : 32 bit
** Poly : 0xedb88320 (That is actually x^8 + x^5 + x^4 + 1)
** Output for "123456789" : 0xCBF43926
*/ */
#include <stdlib.h> #include <stdlib.h>
#include "crc32.h" #include "crc32.h"

Loading…
Cancel
Save