comparison OtherSources/data_central_mini.c @ 36:7801c5d8a562

Update author name for release
author heinrichsweikamp
date Sat, 28 Apr 2018 11:33:57 +0200
parents e65d01b6a17e
children
comparison
equal deleted inserted replaced
35:6237372f76a4 36:7801c5d8a562
1 /** 1 /**
2 ****************************************************************************** 2 ******************************************************************************
3 * @copyright heinrichs weikamp 3 * @copyright heinrichs weikamp
4 * @file data_central_mini.c - bootloader only - 4 * @file data_central_mini.c - bootloader only -
5 * @author heinrichs/weikamp, Christian Weikamp 5 * @author heinrichs weikamp gmbh
6 * @date 10-November-2014 6 * @date 10-November-2014
7 * @version V1.0.3 7 * @version V1.0.3
8 * @since 10-Nov-2014 8 * @since 10-Nov-2014
9 * @brief 9 * @brief
10 * @bug 10 * @bug
67 7 + 13n instructions, where n is the number of bytes in the input 67 7 + 13n instructions, where n is the number of bytes in the input
68 message. It should be doable in 4 + 9n instructions. In any case, two 68 message. It should be doable in 4 + 9n instructions. In any case, two
69 of the 13 or 9 instrucions are load byte. 69 of the 13 or 9 instrucions are load byte.
70 This is Figure 14-7 in the text. */ 70 This is Figure 14-7 in the text. */
71 71
72 /* http://www.hackersdelight.org/ i guess ;-) *chsw */ 72 /* http://www.hackersdelight.org/ i guess ;-) *hw */
73 73
74 uint32_t crc32c_checksum(uint8_t* message, uint16_t length, uint8_t* message2, uint16_t length2) { 74 uint32_t crc32c_checksum(uint8_t* message, uint16_t length, uint8_t* message2, uint16_t length2) {
75 int i, j; 75 int i, j;
76 uint32_t byte, crc, mask; 76 uint32_t byte, crc, mask;
77 static unsigned int table[256] = {0}; 77 static unsigned int table[256] = {0};