Update SILK code using the CELT range coder
[opus.git] / src_FIX / SKP_Silk_HP_variable_cutoff_FIX.c
similarity index 94%
rename from src/SKP_Silk_HP_variable_cutoff_FIX.c
rename to src_FIX/SKP_Silk_HP_variable_cutoff_FIX.c
index 68356fa..b695a5a 100644 (file)
@@ -67,7 +67,7 @@ void SKP_Silk_HP_variable_cutoff_FIX(
         }\r
 \r
         /* limit delta, to reduce impact of outliers */\r
-        delta_freq_Q7 = SKP_LIMIT( delta_freq_Q7, -VARIABLE_HP_MAX_DELTA_FREQ_Q7, VARIABLE_HP_MAX_DELTA_FREQ_Q7 );\r
+        delta_freq_Q7 = SKP_LIMIT_32( delta_freq_Q7, -VARIABLE_HP_MAX_DELTA_FREQ_Q7, VARIABLE_HP_MAX_DELTA_FREQ_Q7 );\r
 \r
         /* update smoother */\r
         psEnc->variable_HP_smth1_Q15 = SKP_SMLAWB( psEnc->variable_HP_smth1_Q15, \r
@@ -81,7 +81,7 @@ void SKP_Silk_HP_variable_cutoff_FIX(
     psEncCtrl->pitch_freq_low_Hz = SKP_Silk_log2lin( SKP_RSHIFT( psEnc->variable_HP_smth2_Q15, 8 ) ); //pow( 2.0, psEnc->variable_HP_smth2 );\r
 \r
     /* limit frequency range */\r
-    psEncCtrl->pitch_freq_low_Hz = SKP_LIMIT( psEncCtrl->pitch_freq_low_Hz, VARIABLE_HP_MIN_FREQ_Q0, VARIABLE_HP_MAX_FREQ_Q0 );\r
+    psEncCtrl->pitch_freq_low_Hz = SKP_LIMIT_32( psEncCtrl->pitch_freq_low_Hz, VARIABLE_HP_MIN_FREQ_Q0, VARIABLE_HP_MAX_FREQ_Q0 );\r
 \r
     /********************************/\r
     /* Compute Filter Coefficients  */\r