Lines Matching refs:correction_code
188 uint8_t correction_code[4]; in hamming_correct_256() local
191 correction_code[3] = 0; in hamming_correct_256()
194 correction_code[0] = computed_code[0] ^ original_code[0]; in hamming_correct_256()
195 correction_code[1] = computed_code[1] ^ original_code[1]; in hamming_correct_256()
196 correction_code[2] = computed_code[2] ^ original_code[2]; in hamming_correct_256()
199 if (*(uint32_t *)correction_code == 0) { in hamming_correct_256()
203 if (popcount32(*(uint32_t *)correction_code) == 11) { in hamming_correct_256()
205 uint8_t byte = correction_code[0] & 0x80; in hamming_correct_256()
206 byte |= (correction_code[0] << 1) & 0x40; in hamming_correct_256()
207 byte |= (correction_code[0] << 2) & 0x20; in hamming_correct_256()
208 byte |= (correction_code[0] << 3) & 0x10; in hamming_correct_256()
210 byte |= (correction_code[1] >> 4) & 0x08; in hamming_correct_256()
211 byte |= (correction_code[1] >> 3) & 0x04; in hamming_correct_256()
212 byte |= (correction_code[1] >> 2) & 0x02; in hamming_correct_256()
213 byte |= (correction_code[1] >> 1) & 0x01; in hamming_correct_256()
215 uint8_t bit = (correction_code[2] >> 5) & 0x04; in hamming_correct_256()
216 bit |= (correction_code[2] >> 4) & 0x02; in hamming_correct_256()
217 bit |= (correction_code[2] >> 3) & 0x01; in hamming_correct_256()
225 if (popcount32(*(uint32_t *)correction_code) == 1) { in hamming_correct_256()