From c50dc5e888627bd1644f46585a44dc118c865127 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Thu, 9 Aug 2001 11:41:39 +0200 Subject: Improvements from Matjaz Thaler --- ac3dec/dither.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'ac3dec/dither.h') diff --git a/ac3dec/dither.h b/ac3dec/dither.h index 6d68e1b5..abb9f518 100644 --- a/ac3dec/dither.h +++ b/ac3dec/dither.h @@ -22,16 +22,16 @@ */ -extern uint_16 lfsr_state; -extern const uint_16 dither_lut[256]; +extern uint16_t lfsr_state; +extern const uint16_t dither_lut[256]; -static inline uint_16 dither_gen(void) +static inline uint16_t dither_gen(void) { - sint_16 state; + int16_t state; state = dither_lut[lfsr_state >> 8] ^ (lfsr_state << 8); - lfsr_state = (uint_16) state; + lfsr_state = (uint16_t) state; - return ((state * (sint_32) (0.707106 * 256.0))>>8); + return ((state * (int32_t) (0.707106 * 256.0))>>8); } -- cgit v1.2.3