From 189715364e19c5f42de579a32819b0d75cf32a20 Mon Sep 17 00:00:00 2001 From: Ahmet Inan Date: Mon, 10 Aug 2020 10:56:20 +0200 Subject: [PATCH] faster to xor the rows with machine word size --- osd.hh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/osd.hh b/osd.hh index cc906b9..9548cf2 100644 --- a/osd.hh +++ b/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)