Disabling some unused SILK functions from the float build
authorJean-Marc Valin <jmvalin@jmvalin.ca>
Sat, 29 Oct 2011 03:20:55 +0000 (23:20 -0400)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Sat, 29 Oct 2011 03:20:55 +0000 (23:20 -0400)
silk/LPC_inv_pred_gain.c
silk/sort.c

index fb989ac..fd2e7ac 100644 (file)
@@ -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
index 1d92ed3..e5034f8 100644 (file)
@@ -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                                   */