faster to xor the rows with machine word size

This commit is contained in:
Ahmet Inan 2020-08-10 10:56:20 +02:00
commit 189715364e

3
osd.hh
View file

@ -156,8 +156,7 @@ class OrderedStatisticsDecoder
}
void flip(int j)
{
codeword[j] ^= 1;
for (int i = K; i < W; ++i)
for (int i = 0; i < W; ++i)
codeword[i] ^= G[W*j+i];
}
static int metric(const int8_t *hard, const int8_t *soft)