mirror of
https://github.com/aicodix/code.git
synced 2026-04-27 14:30:36 +00:00
faster to xor the rows with machine word size
This commit is contained in:
parent
671b2f22ce
commit
189715364e
1 changed files with 1 additions and 2 deletions
3
osd.hh
3
osd.hh
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue