add CRC bits to K

This commit is contained in:
Ahmet Inan 2026-02-02 12:16:43 +01:00
commit 1b7383a541
2 changed files with 2 additions and 2 deletions

View file

@ -51,7 +51,7 @@ int main()
auto temp = new simd_type[N];
double erasure_probability = 0.3;
int K = (1 - erasure_probability) * N;
int K = (1 - erasure_probability) * N + crc_aided * C;
double design_SNR = 10 * std::log10(-std::log(erasure_probability));
std::cerr << "design SNR: " << design_SNR << std::endl;
for (int i = 0; i < N / 32; ++i)

View file

@ -49,7 +49,7 @@ int main()
auto codeword = new code_type[N];
double erasure_probability = 0.3;
int K = (1 - erasure_probability) * N;
int K = (1 - erasure_probability) * N + crc_aided * C;
double design_SNR = 10 * std::log10(-std::log(erasure_probability));
std::cerr << "design SNR: " << design_SNR << std::endl;
for (int i = 0; i < N / 32; ++i)