mirror of
https://github.com/gityf/crc.git
synced 2026-08-12 20:32:20 +08:00
add LSB-first comment and Poly value
This commit is contained in:
+8
-2
@@ -1,8 +1,14 @@
|
|||||||
/*
|
/*
|
||||||
** The crc32 is licensed under the Apache License, Version 2.0, and a copy of the license is included in this file.
|
** The crc32 is licensed under the Apache License, Version 2.0, and a copy of the license is included in this file.
|
||||||
**
|
**
|
||||||
**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"
|
||||||
|
|||||||
Reference in New Issue
Block a user