changeset 196:1cdbaeec7bcc

libgsmefr/levinson.c: perf opt
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 04 Jan 2023 03:58:26 +0000
parents 827661987b41
children bcd337afa0f1
files libgsmefr/levinson.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libgsmefr/levinson.c	Wed Jan 04 03:50:34 2023 +0000
+++ b/libgsmefr/levinson.c	Wed Jan 04 03:58:26 2023 +0000
@@ -123,13 +123,13 @@
         L_Extract (t2, &Kh, &Kl);       /* K in DPF                      */
 
         test (); 
-        if (sub (i, 5) < 0)
+        if (i < 5)
         {
             rc[i - 1] = round (t2);     move16 (); 
         }
         /* Test for unstable filter. If unstable keep old A(z) */
 
-        if (sub (abs_s (Kh), 32750) > 0)
+        if (abs_s (Kh) > 32750)
         {
             for (j = 0; j <= M; j++)
             {