Rev 4558 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4558 | Rev 4699 | ||
---|---|---|---|
Line 77... | Line 77... | ||
77 | * @returns The computed checksum of the length bytes of the data. |
77 | * @returns The computed checksum of the length bytes of the data. |
78 | */ |
78 | */ |
79 | uint32_t compute_checksum( uint32_t seed, uint8_t * data, size_t length ); |
79 | uint32_t compute_checksum( uint32_t seed, uint8_t * data, size_t length ); |
80 | 80 | ||
81 | /** Compacts the computed checksum to the 16 bit number adding the carries. |
81 | /** Compacts the computed checksum to the 16 bit number adding the carries. |
82 | * @param Computed checksum. Input parameter. |
82 | * @param sum Computed checksum. Input parameter. |
83 | * @returns Compacted computed checksum to the 16 bits. |
83 | * @returns Compacted computed checksum to the 16 bits. |
84 | */ |
84 | */ |
85 | uint16_t compact_checksum( uint32_t sum ); |
85 | uint16_t compact_checksum( uint32_t sum ); |
86 | 86 | ||
87 | #endif |
87 | #endif |