# HG changeset patch # User Mychaela Falconia # Date 1672804234 0 # Node ID 827661987b41e2838b0a157b5d25e2e20a92e925 # Parent f151d6c18b312a6fd27a80aa6565e5f748fb977c libgsmefr/g_pitch.c: perf opt diff -r f151d6c18b31 -r 827661987b41 libgsmefr/g_pitch.c --- a/libgsmefr/g_pitch.c Wed Jan 04 03:36:39 2023 +0000 +++ b/libgsmefr/g_pitch.c Wed Jan 04 03:50:34 2023 +0000 @@ -51,9 +51,9 @@ s = L_mac (s, y1[i], y1[i]); } test (); - if (L_sub (s, MAX_32) != 0L) /* Test for overflow */ + if (s != MAX_32) /* Test for overflow */ { - s = L_add (s, 1L); /* Avoid case of all zeros */ + s++; /* Avoid case of all zeros */ exp_yy = norm_l (s); yy = round (L_shl (s, exp_yy)); } @@ -123,7 +123,7 @@ /* if(gain >1.2) gain = 1.2 */ test (); - if (sub (gain, 4915) > 0) + if (gain > 4915) { gain = 4915; move16 (); }