comparison crc32.c @ 11:190dadd8405b

Format indent
author anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Tue, 02 Jul 2019 19:52:09 +0900
parents d4bc23cb728b
children
comparison
equal deleted inserted replaced
10:35d0358b3fe6 11:190dadd8405b
68 68
69 // Perform the algorithm on each character 69 // Perform the algorithm on each character
70 // in the string, using the lookup table values. 70 // in the string, using the lookup table values.
71 71
72 while(len-->0) { 72 while(len-->0) {
73 ulCRC = (ulCRC >> 8) ^ crc32_table[(ulCRC & 0xFF) ^ *buffer++]; 73 ulCRC = (ulCRC >> 8) ^ crc32_table[(ulCRC & 0xFF) ^ *buffer++];
74 } 74 }
75 // Exclusive OR the result with the beginning value. 75 // Exclusive OR the result with the beginning value.
76 return ulCRC ^ 0xffffffff; 76 return ulCRC ^ 0xffffffff;
77 } 77 }
78 78