Searched refs:correction_code (Results 1 - 1 of 1) sorted by relevance

/netbsd-current/sys/dev/nand/
H A Dhamming.c188 uint8_t correction_code[4]; local
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[
[all...]

Completed in 389 milliseconds