From 8f3fb3b5427c9cb191eae97d8b410faddc85ed6f 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 | 4 ++-- src/simd.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/fec_vectorisation.cpp b/src/fec_vectorisation.cpp index 7f2cc16b..e2d5fb3d 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); @@ -82,7 +82,7 @@ void RsFnt::encode_post_process( { const size_t size = this->pkt_size; const uint32_t threshold = this->gf->card_minus_one(); - const unsigned code_len = this->code_len; + const unsigned code_len = this->n_outputs; // number of elements per vector register const unsigned vec_size = ALIGN_SIZE / sizeof(uint32_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;