From 811024f128647c4bb1b1b089bfde5ee367d7aabf Mon Sep 17 00:00:00 2001 From: Ahmet Inan Date: Thu, 6 Aug 2020 20:39:01 +0200 Subject: [PATCH] added BCH(15, 5) T=3 example --- tests/osd_regression_test.cc | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/tests/osd_regression_test.cc b/tests/osd_regression_test.cc index 9dec96b..b564dbe 100644 --- a/tests/osd_regression_test.cc +++ b/tests/osd_regression_test.cc @@ -16,6 +16,8 @@ Copyright 2020 Ahmet Inan int main() { +#if 1 + // BCH(127, 64) T=10 const int O = 2; const int N = 127; const int K = 64; @@ -30,7 +32,22 @@ int main() 0b11110111, 0b10111111, 0b11010101, 0b10000011, 0b11101111, 0b11001011, }; - +#endif +#if 0 + // NASA INTRO BCH(15, 5) T=3 + const int O = 1; + const int N = 15; + const int K = 5; + const int NR = 6; + const int loops = 100000; + const double low_SNR = -7; + const double high_SNR = 7; + const double QEF_SNR = 3.5; + typedef CODE::GaloisField<4, 0b10011, uint8_t> GF; + std::initializer_list minpols { + 0b10011, 0b11111, 0b00111 + }; +#endif GF instance; const int NW = (N+7)/8; const int KW = (K+7)/8;