small bugfix in turbo-encoder (both SSE4 and AVX2) which affected short block-lengths
This commit is contained in:
@@ -438,9 +438,9 @@ char interleave_compact_byte(short * base_interleaver,unsigned char * input, uns
|
|||||||
uint8_t *systematic2_ptr=(uint8_t *) output;
|
uint8_t *systematic2_ptr=(uint8_t *) output;
|
||||||
#endif
|
#endif
|
||||||
#ifndef __AVX2__
|
#ifndef __AVX2__
|
||||||
int input_length_words=n>>1;
|
int input_length_words=1+((n-1)>>1);
|
||||||
#else
|
#else
|
||||||
int input_length_words=n>>2;
|
int input_length_words=1+((n-1)>>2);
|
||||||
#endif
|
#endif
|
||||||
for ( i=0; i< input_length_words ; i ++ ) {
|
for ( i=0; i< input_length_words ; i ++ ) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user