Searched refs:syndrome (Results 1 – 2 of 2) sorted by relevance
/libbtbb/tests/ |
H A D | test_syndromes.c | 32 uint64_t syndrome, syncword; in test_syndromes() local 53 syndrome = gen_syndrome(syndrome_input[i]); in test_syndromes() 54 if (syndrome == syndrome_output[i]) { in test_syndromes()
|
/libbtbb/lib/src/ |
H A D | bluetooth_packet.c | 122 uint64_t syndrome; /* key */ member 129 static void add_syndrome(uint64_t syndrome, uint64_t error) in add_syndrome() argument 133 s->syndrome = syndrome; in add_syndrome() 136 HASH_ADD(hh, syndrome_map, syndrome, 8, s); in add_syndrome() 139 static syndrome_struct *find_syndrome(uint64_t syndrome) in find_syndrome() argument 143 HASH_FIND(hh, syndrome_map, &syndrome, 8, s); in find_syndrome() 149 uint64_t syndrome = codeword & 0xffffffff; in gen_syndrome() local 151 syndrome ^= sw_check_table4[codeword & 0xff]; in gen_syndrome() 153 syndrome ^= sw_check_table5[codeword & 0xff]; in gen_syndrome() 155 syndrome ^= sw_check_table6[codeword & 0xff]; in gen_syndrome() [all …]
|