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