FreeCalypso > hg > gsm-codec-lib
diff libgsmefr/dec_main.c @ 98:18866c0354ef
libgsmefr/dec_main.c: need to use official shl() function
in order to get correct saturation
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 26 Nov 2022 21:31:58 +0000 |
parents | d80e9f12a1d1 |
children |
line wrap: on
line diff
--- a/libgsmefr/dec_main.c Sat Nov 26 21:06:48 2022 +0000 +++ b/libgsmefr/dec_main.c Sat Nov 26 21:31:58 2022 +0000 @@ -7,6 +7,7 @@ #include "gsm_efr.h" #include "typedef.h" #include "namespace.h" +#include "basic_op.h" #include "cnst.h" #include "codec.h" #include "sig_proc.h" @@ -67,7 +68,7 @@ /* Upscale the 15 bit linear PCM to 16 bits, then truncate to 13 bits */ { - temp = synth[i] << 1; + temp = shl (synth[i], 1); synth[i] = temp & 0xfff8; } } /* else */