diff options
author | Keith Packard <keithp@keithp.com> | 2012-06-23 02:12:58 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-06-23 02:12:58 -0700 |
commit | f7bf07dfdad260c1f219064957ef08fb480bf20f (patch) | |
tree | f32e6d0ebdcd56ba46c1ff47aa746351e38d0f58 /src/core/ao_fec.h | |
parent | ff8de3af193839de4bacfd07ade7a5f9ac0bf5b3 (diff) |
altos: optimize Viterbi implementation
Minimize data usage, make data arrays static
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core/ao_fec.h')
-rw-r--r-- | src/core/ao_fec.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/ao_fec.h b/src/core/ao_fec.h index 985352dd..d4f64b74 100644 --- a/src/core/ao_fec.h +++ b/src/core/ao_fec.h @@ -42,7 +42,7 @@ ao_fec_prepare(uint8_t *in, uint8_t len, uint8_t *out); * must be 'len' bytes long. 'out' and 'in' can be * the same array */ -uint8_t +void ao_fec_whiten(uint8_t *in, uint8_t len, uint8_t *out); /* @@ -57,13 +57,12 @@ ao_fec_encode(uint8_t *in, uint8_t len, uint8_t *out); uint8_t ao_fec_interleave(uint8_t *in, uint8_t len, uint8_t *out); - /* * Decode data. 'in' is one byte per bit, soft decision * 'out' must be len/8 bytes long */ uint8_t -ao_fec_decode(uint8_t *in, int in_len, uint8_t *out); +ao_fec_decode(uint8_t *in, uint16_t in_len, uint8_t *out); #endif /* _AO_FEC_H_ */ |