From 3a7ec577fffae7d6c8001dcf1014af9bcb6d0da0 Mon Sep 17 00:00:00 2001 From: Lam Pham-Sy Date: Fri, 7 Sep 2018 19:22:31 +0200 Subject: [PATCH] Fix --- src/fec_vectorisation.cpp | 2 +- src/simd.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fec_vectorisation.cpp b/src/fec_vectorisation.cpp index 7f2cc16b..1854b3ce 100644 --- a/src/fec_vectorisation.cpp +++ b/src/fec_vectorisation.cpp @@ -50,7 +50,7 @@ void RsFnt::encode_post_process( { size_t size = this->pkt_size; uint16_t threshold = this->gf->card_minus_one(); - unsigned code_len = this->code_len; + unsigned code_len = this->n_outputs; // number of elements per vector register unsigned vec_size = ALIGN_SIZE / sizeof(uint16_t); diff --git a/src/simd.h b/src/simd.h index 56a2637d..807722dd 100644 --- a/src/simd.h +++ b/src/simd.h @@ -33,6 +33,8 @@ #ifdef QUADIRON_USE_SIMD +#include "property.h" + const unsigned F4 = 65537; const unsigned F3 = 257;