diff options
| author | Christoph Berg <myon@debian.org> | 2021-09-09 22:49:13 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2021-09-09 22:49:13 +0200 |
| commit | 7aa182cc9860464e41cc8b1ed7ea2419f70deb91 (patch) | |
| tree | ae7d07f023c64e3faca0b852d67209a205ab2998 /lib/encode_rs.c | |
| parent | 23a6b427e4bf791af53d91784c993b67f47e4635 (diff) | |
| parent | 85895feeaf88bcde26bbfc71e8f6b2047c0f5f41 (diff) | |
Update upstream source from tag 'upstream/2.5.0_rc6+repack'
Update to upstream version '2.5.0~rc6+repack'
with Debian dir b9d3381eb71d484f93fd73a092484a5814baf716
Diffstat (limited to 'lib/encode_rs.c')
| -rw-r--r-- | lib/encode_rs.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/lib/encode_rs.c b/lib/encode_rs.c index 911bc36d..9d56d0bf 100644 --- a/lib/encode_rs.c +++ b/lib/encode_rs.c @@ -13,24 +13,19 @@ #endif void ENCODE_RS( -#ifdef FIXED -DTYPE *data, DTYPE *bb,int pad){ -#else -void *p,DTYPE *data, DTYPE *bb){ +#ifndef FIXED +void *p, +#endif +DTYPE *data, DTYPE *bb){ +#ifndef FIXED struct rs *rs = (struct rs *)p; #endif int i, j; DTYPE feedback; -#ifdef FIXED - /* Check pad parameter for validity */ - if(pad < 0 || pad >= NN) - return; -#endif - memset(bb,0,NROOTS*sizeof(DTYPE)); - for(i=0;i<NN-NROOTS-PAD;i++){ + for(i=0;i<NN-NROOTS;i++){ feedback = INDEX_OF[data[i] ^ bb[0]]; if(feedback != A0){ /* feedback term is non-zero */ #ifdef UNNORMALIZED |
