# HG changeset patch # User Mychaela Falconia # Date 1669498318 0 # Node ID 18866c0354efc9204c5e5553c71251b4bbcda39b # Parent e5ee684c6d29489a52481a4bfe09f2489dc8faa1 libgsmefr/dec_main.c: need to use official shl() function in order to get correct saturation diff -r e5ee684c6d29 -r 18866c0354ef libgsmefr/dec_main.c --- 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 */