From d6cad7aa42f91854fad9eeb8593d520eae0a8cdf Mon Sep 17 00:00:00 2001
From: Jean-Marc Valin <jmvalin@jmvalin.ca>
Date: Fri, 28 Oct 2011 23:20:55 -0400
Subject: [PATCH] Disabling some unused SILK functions from the float build

---
 silk/LPC_inv_pred_gain.c | 5 ++++-
 silk/sort.c              | 3 +++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/silk/LPC_inv_pred_gain.c b/silk/LPC_inv_pred_gain.c
index fb989acda..fd2e7ac52 100644
--- a/silk/LPC_inv_pred_gain.c
+++ b/silk/LPC_inv_pred_gain.c
@@ -132,7 +132,10 @@ opus_int silk_LPC_inverse_pred_gain(                /* O   Returns 1 if unstable
     return LPC_inverse_pred_gain_QA( invGain_Q30, Atmp_QA, order );
 }
 
+#ifdef FIXED_POINT
+
 /* For input in Q24 domain */
+/* This function is only used by the fixed-point build */
 opus_int silk_LPC_inverse_pred_gain_Q24(            /* O    Returns 1 if unstable, otherwise 0                          */
     opus_int32                  *invGain_Q30,       /* O    Inverse prediction gain, Q30 energy domain                  */
     const opus_int32            *A_Q24,             /* I    Prediction coefficients, Q24 [order]                        */
@@ -152,4 +155,4 @@ opus_int silk_LPC_inverse_pred_gain_Q24(            /* O    Returns 1 if unstabl
 
     return LPC_inverse_pred_gain_QA( invGain_Q30, Atmp_QA, order );
 }
-
+#endif
diff --git a/silk/sort.c b/silk/sort.c
index 1d92ed382..e5034f8c1 100644
--- a/silk/sort.c
+++ b/silk/sort.c
@@ -83,6 +83,8 @@ void silk_insertion_sort_increasing(
     }
 }
 
+#ifdef FIXED_POINT
+/* This function is only used by the fixed-point build */
 void silk_insertion_sort_decreasing_int16(
     opus_int16                  *a,                 /* I/O   Unsorted / Sorted vector                                   */
     opus_int                    *idx,               /* O     Index vector for the sorted elements                       */
@@ -128,6 +130,7 @@ void silk_insertion_sort_decreasing_int16(
         }
     }
 }
+#endif
 
 void silk_insertion_sort_increasing_all_values_int16(
      opus_int16                 *a,                 /* I/O   Unsorted / Sorted vector                                   */
-- 
GitLab