# HG changeset patch
# User Mychaela Falconia <falcon@freecalypso.org>
# Date 1672803399 0
# Node ID f151d6c18b312a6fd27a80aa6565e5f748fb977c
# Parent  cf39a90f5196672b3b990f70e079026a827d5d71
libgsmefr/enc_lag6.c: perf opt

diff -r cf39a90f5196 -r f151d6c18b31 libgsmefr/enc_lag6.c
--- a/libgsmefr/enc_lag6.c	Wed Jan 04 03:22:35 2023 +0000
+++ b/libgsmefr/enc_lag6.c	Wed Jan 04 03:36:39 2023 +0000
@@ -61,7 +61,7 @@
         /* encode pitch delay (with fraction) */
 
         test (); 
-        if (sub (T0, 94) <= 0)
+        if (T0 <= 94)
         {
             /* index = T0*6 - 105 + *T0_frac */
             i = add (add (T0, T0), T0);
@@ -76,13 +76,13 @@
 
         *T0_min = sub (T0, 5);  move16 (); 
         test (); 
-        if (sub (*T0_min, pit_min) < 0)
+        if (*T0_min < pit_min)
         {
             *T0_min = pit_min;  move16 (); 
         }
         *T0_max = add (*T0_min, 9);
         test (); 
-        if (sub (*T0_max, pit_max) > 0)
+        if (*T0_max > pit_max)
         {
             *T0_max = pit_max;  move16 (); 
             *T0_min = sub (*T0_max, 9); move16 ();