defined WHY2_CHECKSUM_PRIME macro
This commit is contained in:
parent
fb2ac1a7bb
commit
2f6ab00f93
@ -25,6 +25,7 @@ extern "C" {
|
|||||||
|
|
||||||
//MACROS
|
//MACROS
|
||||||
#define WHY2_CHECKSUM_SEGMENT_SIZE 4 //SEGMENT SIZE FOR CALCULATING CHECKSUM
|
#define WHY2_CHECKSUM_SEGMENT_SIZE 4 //SEGMENT SIZE FOR CALCULATING CHECKSUM
|
||||||
|
#define WHY2_CHECKSUM_PRIME 5 //PRIME NUMBER FOR ROTATION
|
||||||
|
|
||||||
//FUNCTIONS
|
//FUNCTIONS
|
||||||
unsigned long why2_checksum_segment(char *input); //TOO LONG TO EXPLAIN, DEAL WITH IT. TREAT IT LIKE A NORMAL CHECKSUM
|
unsigned long why2_checksum_segment(char *input); //TOO LONG TO EXPLAIN, DEAL WITH IT. TREAT IT LIKE A NORMAL CHECKSUM
|
||||||
|
Loading…
x
Reference in New Issue
Block a user