Line | Count | Source |
1 | | /*********************************************************************** |
2 | | Copyright (c) 2006-2011, Skype Limited. All rights reserved. |
3 | | Redistribution and use in source and binary forms, with or without |
4 | | modification, are permitted provided that the following conditions |
5 | | are met: |
6 | | - Redistributions of source code must retain the above copyright notice, |
7 | | this list of conditions and the following disclaimer. |
8 | | - Redistributions in binary form must reproduce the above copyright |
9 | | notice, this list of conditions and the following disclaimer in the |
10 | | documentation and/or other materials provided with the distribution. |
11 | | - Neither the name of Internet Society, IETF or IETF Trust, nor the |
12 | | names of specific contributors, may be used to endorse or promote |
13 | | products derived from this software without specific prior written |
14 | | permission. |
15 | | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
16 | | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
17 | | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
18 | | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE |
19 | | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
20 | | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
21 | | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
22 | | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
23 | | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
24 | | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
25 | | POSSIBILITY OF SUCH DAMAGE. |
26 | | ***********************************************************************/ |
27 | | |
28 | | /*! \file silk_Inlines.h |
29 | | * \brief silk_Inlines.h defines OPUS_INLINE signal processing functions. |
30 | | */ |
31 | | |
32 | | #ifndef SILK_FIX_INLINES_H |
33 | | #define SILK_FIX_INLINES_H |
34 | | |
35 | | #ifdef __cplusplus |
36 | | extern "C" |
37 | | { |
38 | | #endif |
39 | | |
40 | | /* count leading zeros of opus_int64 */ |
41 | | static OPUS_INLINE opus_int32 silk_CLZ64( opus_int64 in ) |
42 | 1.19M | { |
43 | 1.19M | opus_int32 in_upper; |
44 | | |
45 | 1.19M | in_upper = (opus_int32)silk_RSHIFT64(in, 32); |
46 | 1.19M | if (in_upper == 0) { |
47 | | /* Search in the lower 32 bits */ |
48 | 811k | return 32 + silk_CLZ32( (opus_int32) in ); |
49 | 811k | } else { |
50 | | /* Search in the upper 32 bits */ |
51 | 378k | return silk_CLZ32( in_upper ); |
52 | 378k | } |
53 | 1.19M | } Unexecuted instantiation: opus_decoder.c:silk_CLZ64 Unexecuted instantiation: vq.c:silk_CLZ64 Unexecuted instantiation: x86cpu.c:silk_CLZ64 Unexecuted instantiation: dec_API.c:silk_CLZ64 Unexecuted instantiation: tables_other.c:silk_CLZ64 Unexecuted instantiation: stereo_MS_to_LR.c:silk_CLZ64 Unexecuted instantiation: resampler.c:silk_CLZ64 Unexecuted instantiation: resampler_private_down_FIR.c:silk_CLZ64 Unexecuted instantiation: resampler_private_IIR_FIR.c:silk_CLZ64 Unexecuted instantiation: resampler_private_up2_HQ.c:silk_CLZ64 Unexecuted instantiation: resampler_rom.c:silk_CLZ64 Unexecuted instantiation: stereo_decode_pred.c:silk_CLZ64 Unexecuted instantiation: init_decoder.c:silk_CLZ64 Unexecuted instantiation: decode_frame.c:silk_CLZ64 Unexecuted instantiation: decode_parameters.c:silk_CLZ64 Unexecuted instantiation: decode_indices.c:silk_CLZ64 Unexecuted instantiation: decode_pulses.c:silk_CLZ64 Unexecuted instantiation: decoder_set_fs.c:silk_CLZ64 Unexecuted instantiation: gain_quant.c:silk_CLZ64 Unexecuted instantiation: NLSF_decode.c:silk_CLZ64 Unexecuted instantiation: PLC.c:silk_CLZ64 Unexecuted instantiation: shell_coder.c:silk_CLZ64 Unexecuted instantiation: tables_gain.c:silk_CLZ64 Unexecuted instantiation: tables_LTP.c:silk_CLZ64 Unexecuted instantiation: tables_NLSF_CB_NB_MB.c:silk_CLZ64 Unexecuted instantiation: tables_NLSF_CB_WB.c:silk_CLZ64 Unexecuted instantiation: tables_pitch_lag.c:silk_CLZ64 Unexecuted instantiation: tables_pulses_per_block.c:silk_CLZ64 Unexecuted instantiation: NLSF_unpack.c:silk_CLZ64 Unexecuted instantiation: bwexpander.c:silk_CLZ64 Unexecuted instantiation: decode_pitch.c:silk_CLZ64 Unexecuted instantiation: lin2log.c:silk_CLZ64 Unexecuted instantiation: log2lin.c:silk_CLZ64 Unexecuted instantiation: LPC_analysis_filter.c:silk_CLZ64 Unexecuted instantiation: LPC_inv_pred_gain.c:silk_CLZ64 Unexecuted instantiation: NLSF2A.c:silk_CLZ64 Unexecuted instantiation: NLSF_stabilize.c:silk_CLZ64 Unexecuted instantiation: pitch_est_tables.c:silk_CLZ64 Unexecuted instantiation: resampler_private_AR2.c:silk_CLZ64 Unexecuted instantiation: sort.c:silk_CLZ64 Unexecuted instantiation: sum_sqr_shift.c:silk_CLZ64 Unexecuted instantiation: LPC_fit.c:silk_CLZ64 Unexecuted instantiation: CNG.c:silk_CLZ64 Unexecuted instantiation: code_signs.c:silk_CLZ64 Unexecuted instantiation: decode_core.c:silk_CLZ64 Unexecuted instantiation: bwexpander_32.c:silk_CLZ64 Unexecuted instantiation: table_LSF_cos.c:silk_CLZ64 Unexecuted instantiation: opus_encoder.c:silk_CLZ64 Unexecuted instantiation: enc_API.c:silk_CLZ64 Unexecuted instantiation: encode_indices.c:silk_CLZ64 Unexecuted instantiation: encode_pulses.c:silk_CLZ64 Unexecuted instantiation: HP_variable_cutoff.c:silk_CLZ64 Unexecuted instantiation: stereo_LR_to_MS.c:silk_CLZ64 Unexecuted instantiation: check_control_input.c:silk_CLZ64 Unexecuted instantiation: control_SNR.c:silk_CLZ64 Unexecuted instantiation: init_encoder.c:silk_CLZ64 Unexecuted instantiation: control_codec.c:silk_CLZ64 Unexecuted instantiation: stereo_encode_pred.c:silk_CLZ64 Unexecuted instantiation: stereo_find_predictor.c:silk_CLZ64 Unexecuted instantiation: stereo_quant_pred.c:silk_CLZ64 Unexecuted instantiation: encode_frame_FIX.c:silk_CLZ64 Unexecuted instantiation: find_pitch_lags_FIX.c:silk_CLZ64 Unexecuted instantiation: find_pred_coefs_FIX.c:silk_CLZ64 Unexecuted instantiation: noise_shape_analysis_FIX.c:silk_CLZ64 Unexecuted instantiation: process_gains_FIX.c:silk_CLZ64 Unexecuted instantiation: residual_energy_FIX.c:silk_CLZ64 warped_autocorrelation_FIX.c:silk_CLZ64 Line | Count | Source | 42 | 565k | { | 43 | 565k | opus_int32 in_upper; | 44 | | | 45 | 565k | in_upper = (opus_int32)silk_RSHIFT64(in, 32); | 46 | 565k | if (in_upper == 0) { | 47 | | /* Search in the lower 32 bits */ | 48 | 187k | return 32 + silk_CLZ32( (opus_int32) in ); | 49 | 377k | } else { | 50 | | /* Search in the upper 32 bits */ | 51 | 377k | return silk_CLZ32( in_upper ); | 52 | 377k | } | 53 | 565k | } |
Unexecuted instantiation: apply_sine_window_FIX.c:silk_CLZ64 Unexecuted instantiation: autocorr_FIX.c:silk_CLZ64 Unexecuted instantiation: k2a_FIX.c:silk_CLZ64 Unexecuted instantiation: k2a_Q16_FIX.c:silk_CLZ64 Unexecuted instantiation: pitch_analysis_core_FIX.c:silk_CLZ64 Unexecuted instantiation: vector_ops_FIX.c:silk_CLZ64 Unexecuted instantiation: schur64_FIX.c:silk_CLZ64 Unexecuted instantiation: schur_FIX.c:silk_CLZ64 Unexecuted instantiation: x86_silk_map.c:silk_CLZ64 Unexecuted instantiation: NSQ_del_dec_avx2.c:silk_CLZ64 Unexecuted instantiation: LP_variable_cutoff.c:silk_CLZ64 Unexecuted instantiation: NSQ.c:silk_CLZ64 Unexecuted instantiation: NSQ_del_dec.c:silk_CLZ64 Unexecuted instantiation: VAD.c:silk_CLZ64 Unexecuted instantiation: control_audio_bandwidth.c:silk_CLZ64 Unexecuted instantiation: quant_LTP_gains.c:silk_CLZ64 Unexecuted instantiation: VQ_WMat_EC.c:silk_CLZ64 Unexecuted instantiation: process_NLSFs.c:silk_CLZ64 Unexecuted instantiation: ana_filt_bank_1.c:silk_CLZ64 Unexecuted instantiation: biquad_alt.c:silk_CLZ64 Unexecuted instantiation: inner_prod_aligned.c:silk_CLZ64 Unexecuted instantiation: NLSF_VQ_weights_laroia.c:silk_CLZ64 Unexecuted instantiation: resampler_down2_3.c:silk_CLZ64 Unexecuted instantiation: resampler_down2.c:silk_CLZ64 Unexecuted instantiation: sigm_Q15.c:silk_CLZ64 Unexecuted instantiation: LTP_analysis_filter_FIX.c:silk_CLZ64 Unexecuted instantiation: LTP_scale_ctrl_FIX.c:silk_CLZ64 Unexecuted instantiation: find_LPC_FIX.c:silk_CLZ64 Unexecuted instantiation: find_LTP_FIX.c:silk_CLZ64 burg_modified_FIX.c:silk_CLZ64 Line | Count | Source | 42 | 312k | { | 43 | 312k | opus_int32 in_upper; | 44 | | | 45 | 312k | in_upper = (opus_int32)silk_RSHIFT64(in, 32); | 46 | 312k | if (in_upper == 0) { | 47 | | /* Search in the lower 32 bits */ | 48 | 312k | return 32 + silk_CLZ32( (opus_int32) in ); | 49 | 312k | } else { | 50 | | /* Search in the upper 32 bits */ | 51 | 348 | return silk_CLZ32( in_upper ); | 52 | 348 | } | 53 | 312k | } |
Unexecuted instantiation: NSQ_sse4_1.c:silk_CLZ64 Unexecuted instantiation: NSQ_del_dec_sse4_1.c:silk_CLZ64 Unexecuted instantiation: VAD_sse4_1.c:silk_CLZ64 Unexecuted instantiation: VQ_WMat_EC_sse4_1.c:silk_CLZ64 Unexecuted instantiation: vector_ops_FIX_sse4_1.c:silk_CLZ64 burg_modified_FIX_sse4_1.c:silk_CLZ64 Line | Count | Source | 42 | 312k | { | 43 | 312k | opus_int32 in_upper; | 44 | | | 45 | 312k | in_upper = (opus_int32)silk_RSHIFT64(in, 32); | 46 | 312k | if (in_upper == 0) { | 47 | | /* Search in the lower 32 bits */ | 48 | 312k | return 32 + silk_CLZ32( (opus_int32) in ); | 49 | 312k | } else { | 50 | | /* Search in the upper 32 bits */ | 51 | 348 | return silk_CLZ32( in_upper ); | 52 | 348 | } | 53 | 312k | } |
Unexecuted instantiation: interpolate.c:silk_CLZ64 Unexecuted instantiation: NLSF_encode.c:silk_CLZ64 Unexecuted instantiation: NLSF_VQ.c:silk_CLZ64 Unexecuted instantiation: NLSF_del_dec_quant.c:silk_CLZ64 Unexecuted instantiation: A2NLSF.c:silk_CLZ64 Unexecuted instantiation: corrMatrix_FIX.c:silk_CLZ64 Unexecuted instantiation: encode_frame_FLP.c:silk_CLZ64 Unexecuted instantiation: find_pitch_lags_FLP.c:silk_CLZ64 Unexecuted instantiation: find_pred_coefs_FLP.c:silk_CLZ64 Unexecuted instantiation: LPC_analysis_filter_FLP.c:silk_CLZ64 Unexecuted instantiation: LTP_analysis_filter_FLP.c:silk_CLZ64 Unexecuted instantiation: LTP_scale_ctrl_FLP.c:silk_CLZ64 Unexecuted instantiation: noise_shape_analysis_FLP.c:silk_CLZ64 Unexecuted instantiation: process_gains_FLP.c:silk_CLZ64 Unexecuted instantiation: residual_energy_FLP.c:silk_CLZ64 Unexecuted instantiation: warped_autocorrelation_FLP.c:silk_CLZ64 Unexecuted instantiation: wrappers_FLP.c:silk_CLZ64 Unexecuted instantiation: autocorrelation_FLP.c:silk_CLZ64 Unexecuted instantiation: bwexpander_FLP.c:silk_CLZ64 Unexecuted instantiation: energy_FLP.c:silk_CLZ64 Unexecuted instantiation: k2a_FLP.c:silk_CLZ64 Unexecuted instantiation: pitch_analysis_core_FLP.c:silk_CLZ64 Unexecuted instantiation: scale_copy_vector_FLP.c:silk_CLZ64 Unexecuted instantiation: schur_FLP.c:silk_CLZ64 Unexecuted instantiation: sort_FLP.c:silk_CLZ64 Unexecuted instantiation: apply_sine_window_FLP.c:silk_CLZ64 Unexecuted instantiation: find_LPC_FLP.c:silk_CLZ64 Unexecuted instantiation: find_LTP_FLP.c:silk_CLZ64 Unexecuted instantiation: burg_modified_FLP.c:silk_CLZ64 Unexecuted instantiation: inner_product_FLP.c:silk_CLZ64 Unexecuted instantiation: scale_vector_FLP.c:silk_CLZ64 Unexecuted instantiation: inner_product_FLP_avx2.c:silk_CLZ64 Unexecuted instantiation: corrMatrix_FLP.c:silk_CLZ64 |
54 | | |
55 | | /* get number of leading zeros and fractional part (the bits right after the leading one */ |
56 | | static OPUS_INLINE void silk_CLZ_FRAC( |
57 | | opus_int32 in, /* I input */ |
58 | | opus_int32 *lz, /* O number of leading zeros */ |
59 | | opus_int32 *frac_Q7 /* O the 7 bits right after the leading one */ |
60 | | ) |
61 | 44.0M | { |
62 | 44.0M | opus_int32 lzeros = silk_CLZ32(in); |
63 | | |
64 | 44.0M | * lz = lzeros; |
65 | 44.0M | * frac_Q7 = silk_ROR32(in, 24 - lzeros) & 0x7f; |
66 | 44.0M | } Unexecuted instantiation: opus_decoder.c:silk_CLZ_FRAC Unexecuted instantiation: vq.c:silk_CLZ_FRAC Unexecuted instantiation: x86cpu.c:silk_CLZ_FRAC Unexecuted instantiation: dec_API.c:silk_CLZ_FRAC Unexecuted instantiation: tables_other.c:silk_CLZ_FRAC Unexecuted instantiation: stereo_MS_to_LR.c:silk_CLZ_FRAC Unexecuted instantiation: resampler.c:silk_CLZ_FRAC Unexecuted instantiation: resampler_private_down_FIR.c:silk_CLZ_FRAC Unexecuted instantiation: resampler_private_IIR_FIR.c:silk_CLZ_FRAC Unexecuted instantiation: resampler_private_up2_HQ.c:silk_CLZ_FRAC Unexecuted instantiation: resampler_rom.c:silk_CLZ_FRAC Unexecuted instantiation: stereo_decode_pred.c:silk_CLZ_FRAC Unexecuted instantiation: init_decoder.c:silk_CLZ_FRAC Unexecuted instantiation: decode_frame.c:silk_CLZ_FRAC Unexecuted instantiation: decode_parameters.c:silk_CLZ_FRAC Unexecuted instantiation: decode_indices.c:silk_CLZ_FRAC Unexecuted instantiation: decode_pulses.c:silk_CLZ_FRAC Unexecuted instantiation: decoder_set_fs.c:silk_CLZ_FRAC Unexecuted instantiation: gain_quant.c:silk_CLZ_FRAC Unexecuted instantiation: NLSF_decode.c:silk_CLZ_FRAC Line | Count | Source | 61 | 9.00k | { | 62 | 9.00k | opus_int32 lzeros = silk_CLZ32(in); | 63 | | | 64 | 9.00k | * lz = lzeros; | 65 | 9.00k | * frac_Q7 = silk_ROR32(in, 24 - lzeros) & 0x7f; | 66 | 9.00k | } |
Unexecuted instantiation: shell_coder.c:silk_CLZ_FRAC Unexecuted instantiation: tables_gain.c:silk_CLZ_FRAC Unexecuted instantiation: tables_LTP.c:silk_CLZ_FRAC Unexecuted instantiation: tables_NLSF_CB_NB_MB.c:silk_CLZ_FRAC Unexecuted instantiation: tables_NLSF_CB_WB.c:silk_CLZ_FRAC Unexecuted instantiation: tables_pitch_lag.c:silk_CLZ_FRAC Unexecuted instantiation: tables_pulses_per_block.c:silk_CLZ_FRAC Unexecuted instantiation: NLSF_unpack.c:silk_CLZ_FRAC Unexecuted instantiation: bwexpander.c:silk_CLZ_FRAC Unexecuted instantiation: decode_pitch.c:silk_CLZ_FRAC Line | Count | Source | 61 | 40.1M | { | 62 | 40.1M | opus_int32 lzeros = silk_CLZ32(in); | 63 | | | 64 | 40.1M | * lz = lzeros; | 65 | 40.1M | * frac_Q7 = silk_ROR32(in, 24 - lzeros) & 0x7f; | 66 | 40.1M | } |
Unexecuted instantiation: log2lin.c:silk_CLZ_FRAC Unexecuted instantiation: LPC_analysis_filter.c:silk_CLZ_FRAC Unexecuted instantiation: LPC_inv_pred_gain.c:silk_CLZ_FRAC Unexecuted instantiation: NLSF2A.c:silk_CLZ_FRAC Unexecuted instantiation: NLSF_stabilize.c:silk_CLZ_FRAC Unexecuted instantiation: pitch_est_tables.c:silk_CLZ_FRAC Unexecuted instantiation: resampler_private_AR2.c:silk_CLZ_FRAC Unexecuted instantiation: sort.c:silk_CLZ_FRAC Unexecuted instantiation: sum_sqr_shift.c:silk_CLZ_FRAC Unexecuted instantiation: LPC_fit.c:silk_CLZ_FRAC Line | Count | Source | 61 | 50.4k | { | 62 | 50.4k | opus_int32 lzeros = silk_CLZ32(in); | 63 | | | 64 | 50.4k | * lz = lzeros; | 65 | 50.4k | * frac_Q7 = silk_ROR32(in, 24 - lzeros) & 0x7f; | 66 | 50.4k | } |
Unexecuted instantiation: code_signs.c:silk_CLZ_FRAC Unexecuted instantiation: decode_core.c:silk_CLZ_FRAC Unexecuted instantiation: bwexpander_32.c:silk_CLZ_FRAC Unexecuted instantiation: table_LSF_cos.c:silk_CLZ_FRAC Unexecuted instantiation: opus_encoder.c:silk_CLZ_FRAC Unexecuted instantiation: enc_API.c:silk_CLZ_FRAC Unexecuted instantiation: encode_indices.c:silk_CLZ_FRAC Unexecuted instantiation: encode_pulses.c:silk_CLZ_FRAC Unexecuted instantiation: HP_variable_cutoff.c:silk_CLZ_FRAC Unexecuted instantiation: stereo_LR_to_MS.c:silk_CLZ_FRAC Unexecuted instantiation: check_control_input.c:silk_CLZ_FRAC Unexecuted instantiation: control_SNR.c:silk_CLZ_FRAC Unexecuted instantiation: init_encoder.c:silk_CLZ_FRAC Unexecuted instantiation: control_codec.c:silk_CLZ_FRAC Unexecuted instantiation: stereo_encode_pred.c:silk_CLZ_FRAC stereo_find_predictor.c:silk_CLZ_FRAC Line | Count | Source | 61 | 501k | { | 62 | 501k | opus_int32 lzeros = silk_CLZ32(in); | 63 | | | 64 | 501k | * lz = lzeros; | 65 | 501k | * frac_Q7 = silk_ROR32(in, 24 - lzeros) & 0x7f; | 66 | 501k | } |
Unexecuted instantiation: stereo_quant_pred.c:silk_CLZ_FRAC Unexecuted instantiation: encode_frame_FIX.c:silk_CLZ_FRAC Unexecuted instantiation: find_pitch_lags_FIX.c:silk_CLZ_FRAC Unexecuted instantiation: find_pred_coefs_FIX.c:silk_CLZ_FRAC noise_shape_analysis_FIX.c:silk_CLZ_FRAC Line | Count | Source | 61 | 856k | { | 62 | 856k | opus_int32 lzeros = silk_CLZ32(in); | 63 | | | 64 | 856k | * lz = lzeros; | 65 | 856k | * frac_Q7 = silk_ROR32(in, 24 - lzeros) & 0x7f; | 66 | 856k | } |
process_gains_FIX.c:silk_CLZ_FRAC Line | Count | Source | 61 | 827k | { | 62 | 827k | opus_int32 lzeros = silk_CLZ32(in); | 63 | | | 64 | 827k | * lz = lzeros; | 65 | 827k | * frac_Q7 = silk_ROR32(in, 24 - lzeros) & 0x7f; | 66 | 827k | } |
Unexecuted instantiation: residual_energy_FIX.c:silk_CLZ_FRAC Unexecuted instantiation: warped_autocorrelation_FIX.c:silk_CLZ_FRAC Unexecuted instantiation: apply_sine_window_FIX.c:silk_CLZ_FRAC Unexecuted instantiation: autocorr_FIX.c:silk_CLZ_FRAC Unexecuted instantiation: k2a_FIX.c:silk_CLZ_FRAC Unexecuted instantiation: k2a_Q16_FIX.c:silk_CLZ_FRAC Unexecuted instantiation: pitch_analysis_core_FIX.c:silk_CLZ_FRAC Unexecuted instantiation: vector_ops_FIX.c:silk_CLZ_FRAC Unexecuted instantiation: schur64_FIX.c:silk_CLZ_FRAC Unexecuted instantiation: schur_FIX.c:silk_CLZ_FRAC Unexecuted instantiation: x86_silk_map.c:silk_CLZ_FRAC Unexecuted instantiation: NSQ_del_dec_avx2.c:silk_CLZ_FRAC Unexecuted instantiation: LP_variable_cutoff.c:silk_CLZ_FRAC Unexecuted instantiation: NSQ.c:silk_CLZ_FRAC Unexecuted instantiation: NSQ_del_dec.c:silk_CLZ_FRAC Line | Count | Source | 61 | 541k | { | 62 | 541k | opus_int32 lzeros = silk_CLZ32(in); | 63 | | | 64 | 541k | * lz = lzeros; | 65 | 541k | * frac_Q7 = silk_ROR32(in, 24 - lzeros) & 0x7f; | 66 | 541k | } |
Unexecuted instantiation: control_audio_bandwidth.c:silk_CLZ_FRAC Unexecuted instantiation: quant_LTP_gains.c:silk_CLZ_FRAC Unexecuted instantiation: VQ_WMat_EC.c:silk_CLZ_FRAC Unexecuted instantiation: process_NLSFs.c:silk_CLZ_FRAC Unexecuted instantiation: ana_filt_bank_1.c:silk_CLZ_FRAC Unexecuted instantiation: biquad_alt.c:silk_CLZ_FRAC Unexecuted instantiation: inner_prod_aligned.c:silk_CLZ_FRAC Unexecuted instantiation: NLSF_VQ_weights_laroia.c:silk_CLZ_FRAC Unexecuted instantiation: resampler_down2_3.c:silk_CLZ_FRAC Unexecuted instantiation: resampler_down2.c:silk_CLZ_FRAC Unexecuted instantiation: sigm_Q15.c:silk_CLZ_FRAC Unexecuted instantiation: LTP_analysis_filter_FIX.c:silk_CLZ_FRAC Unexecuted instantiation: LTP_scale_ctrl_FIX.c:silk_CLZ_FRAC Unexecuted instantiation: find_LPC_FIX.c:silk_CLZ_FRAC Unexecuted instantiation: find_LTP_FIX.c:silk_CLZ_FRAC burg_modified_FIX.c:silk_CLZ_FRAC Line | Count | Source | 61 | 16.2k | { | 62 | 16.2k | opus_int32 lzeros = silk_CLZ32(in); | 63 | | | 64 | 16.2k | * lz = lzeros; | 65 | 16.2k | * frac_Q7 = silk_ROR32(in, 24 - lzeros) & 0x7f; | 66 | 16.2k | } |
Unexecuted instantiation: NSQ_sse4_1.c:silk_CLZ_FRAC Unexecuted instantiation: NSQ_del_dec_sse4_1.c:silk_CLZ_FRAC VAD_sse4_1.c:silk_CLZ_FRAC Line | Count | Source | 61 | 1.10M | { | 62 | 1.10M | opus_int32 lzeros = silk_CLZ32(in); | 63 | | | 64 | 1.10M | * lz = lzeros; | 65 | 1.10M | * frac_Q7 = silk_ROR32(in, 24 - lzeros) & 0x7f; | 66 | 1.10M | } |
Unexecuted instantiation: VQ_WMat_EC_sse4_1.c:silk_CLZ_FRAC Unexecuted instantiation: vector_ops_FIX_sse4_1.c:silk_CLZ_FRAC burg_modified_FIX_sse4_1.c:silk_CLZ_FRAC Line | Count | Source | 61 | 16.2k | { | 62 | 16.2k | opus_int32 lzeros = silk_CLZ32(in); | 63 | | | 64 | 16.2k | * lz = lzeros; | 65 | 16.2k | * frac_Q7 = silk_ROR32(in, 24 - lzeros) & 0x7f; | 66 | 16.2k | } |
Unexecuted instantiation: interpolate.c:silk_CLZ_FRAC Unexecuted instantiation: NLSF_encode.c:silk_CLZ_FRAC Unexecuted instantiation: NLSF_VQ.c:silk_CLZ_FRAC Unexecuted instantiation: NLSF_del_dec_quant.c:silk_CLZ_FRAC Unexecuted instantiation: A2NLSF.c:silk_CLZ_FRAC Unexecuted instantiation: corrMatrix_FIX.c:silk_CLZ_FRAC Unexecuted instantiation: encode_frame_FLP.c:silk_CLZ_FRAC Unexecuted instantiation: find_pitch_lags_FLP.c:silk_CLZ_FRAC Unexecuted instantiation: find_pred_coefs_FLP.c:silk_CLZ_FRAC Unexecuted instantiation: LPC_analysis_filter_FLP.c:silk_CLZ_FRAC Unexecuted instantiation: LTP_analysis_filter_FLP.c:silk_CLZ_FRAC Unexecuted instantiation: LTP_scale_ctrl_FLP.c:silk_CLZ_FRAC Unexecuted instantiation: noise_shape_analysis_FLP.c:silk_CLZ_FRAC Unexecuted instantiation: process_gains_FLP.c:silk_CLZ_FRAC Unexecuted instantiation: residual_energy_FLP.c:silk_CLZ_FRAC Unexecuted instantiation: warped_autocorrelation_FLP.c:silk_CLZ_FRAC Unexecuted instantiation: wrappers_FLP.c:silk_CLZ_FRAC Unexecuted instantiation: autocorrelation_FLP.c:silk_CLZ_FRAC Unexecuted instantiation: bwexpander_FLP.c:silk_CLZ_FRAC Unexecuted instantiation: energy_FLP.c:silk_CLZ_FRAC Unexecuted instantiation: k2a_FLP.c:silk_CLZ_FRAC Unexecuted instantiation: pitch_analysis_core_FLP.c:silk_CLZ_FRAC Unexecuted instantiation: scale_copy_vector_FLP.c:silk_CLZ_FRAC Unexecuted instantiation: schur_FLP.c:silk_CLZ_FRAC Unexecuted instantiation: sort_FLP.c:silk_CLZ_FRAC Unexecuted instantiation: apply_sine_window_FLP.c:silk_CLZ_FRAC Unexecuted instantiation: find_LPC_FLP.c:silk_CLZ_FRAC Unexecuted instantiation: find_LTP_FLP.c:silk_CLZ_FRAC Unexecuted instantiation: burg_modified_FLP.c:silk_CLZ_FRAC Unexecuted instantiation: inner_product_FLP.c:silk_CLZ_FRAC Unexecuted instantiation: scale_vector_FLP.c:silk_CLZ_FRAC Unexecuted instantiation: inner_product_FLP_avx2.c:silk_CLZ_FRAC Unexecuted instantiation: corrMatrix_FLP.c:silk_CLZ_FRAC |
67 | | |
68 | | /* Approximation of square root */ |
69 | | /* Accuracy: < +/- 10% for output values > 15 */ |
70 | | /* < +/- 2.5% for output values > 120 */ |
71 | | static OPUS_INLINE opus_int32 silk_SQRT_APPROX( opus_int32 x ) |
72 | 4.24M | { |
73 | 4.24M | opus_int32 y, lz, frac_Q7; |
74 | | |
75 | 4.24M | if( x <= 0 ) { |
76 | 326k | return 0; |
77 | 326k | } |
78 | | |
79 | 3.92M | silk_CLZ_FRAC(x, &lz, &frac_Q7); |
80 | | |
81 | 3.92M | if( lz & 1 ) { |
82 | 2.03M | y = 32768; |
83 | 2.03M | } else { |
84 | 1.88M | y = 46214; /* 46214 = sqrt(2) * 32768 */ |
85 | 1.88M | } |
86 | | |
87 | | /* get scaling right */ |
88 | 3.92M | y >>= silk_RSHIFT(lz, 1); |
89 | | |
90 | | /* increment using fractional part of input */ |
91 | 3.92M | y = silk_SMLAWB(y, y, silk_SMULBB(213, frac_Q7)); |
92 | | |
93 | 3.92M | return y; |
94 | 4.24M | } Unexecuted instantiation: opus_decoder.c:silk_SQRT_APPROX Unexecuted instantiation: vq.c:silk_SQRT_APPROX Unexecuted instantiation: x86cpu.c:silk_SQRT_APPROX Unexecuted instantiation: dec_API.c:silk_SQRT_APPROX Unexecuted instantiation: tables_other.c:silk_SQRT_APPROX Unexecuted instantiation: stereo_MS_to_LR.c:silk_SQRT_APPROX Unexecuted instantiation: resampler.c:silk_SQRT_APPROX Unexecuted instantiation: resampler_private_down_FIR.c:silk_SQRT_APPROX Unexecuted instantiation: resampler_private_IIR_FIR.c:silk_SQRT_APPROX Unexecuted instantiation: resampler_private_up2_HQ.c:silk_SQRT_APPROX Unexecuted instantiation: resampler_rom.c:silk_SQRT_APPROX Unexecuted instantiation: stereo_decode_pred.c:silk_SQRT_APPROX Unexecuted instantiation: init_decoder.c:silk_SQRT_APPROX Unexecuted instantiation: decode_frame.c:silk_SQRT_APPROX Unexecuted instantiation: decode_parameters.c:silk_SQRT_APPROX Unexecuted instantiation: decode_indices.c:silk_SQRT_APPROX Unexecuted instantiation: decode_pulses.c:silk_SQRT_APPROX Unexecuted instantiation: decoder_set_fs.c:silk_SQRT_APPROX Unexecuted instantiation: gain_quant.c:silk_SQRT_APPROX Unexecuted instantiation: NLSF_decode.c:silk_SQRT_APPROX Line | Count | Source | 72 | 16.5k | { | 73 | 16.5k | opus_int32 y, lz, frac_Q7; | 74 | | | 75 | 16.5k | if( x <= 0 ) { | 76 | 7.53k | return 0; | 77 | 7.53k | } | 78 | | | 79 | 9.00k | silk_CLZ_FRAC(x, &lz, &frac_Q7); | 80 | | | 81 | 9.00k | if( lz & 1 ) { | 82 | 3.50k | y = 32768; | 83 | 5.49k | } else { | 84 | 5.49k | y = 46214; /* 46214 = sqrt(2) * 32768 */ | 85 | 5.49k | } | 86 | | | 87 | | /* get scaling right */ | 88 | 9.00k | y >>= silk_RSHIFT(lz, 1); | 89 | | | 90 | | /* increment using fractional part of input */ | 91 | 9.00k | y = silk_SMLAWB(y, y, silk_SMULBB(213, frac_Q7)); | 92 | | | 93 | 9.00k | return y; | 94 | 16.5k | } |
Unexecuted instantiation: shell_coder.c:silk_SQRT_APPROX Unexecuted instantiation: tables_gain.c:silk_SQRT_APPROX Unexecuted instantiation: tables_LTP.c:silk_SQRT_APPROX Unexecuted instantiation: tables_NLSF_CB_NB_MB.c:silk_SQRT_APPROX Unexecuted instantiation: tables_NLSF_CB_WB.c:silk_SQRT_APPROX Unexecuted instantiation: tables_pitch_lag.c:silk_SQRT_APPROX Unexecuted instantiation: tables_pulses_per_block.c:silk_SQRT_APPROX Unexecuted instantiation: NLSF_unpack.c:silk_SQRT_APPROX Unexecuted instantiation: bwexpander.c:silk_SQRT_APPROX Unexecuted instantiation: decode_pitch.c:silk_SQRT_APPROX Unexecuted instantiation: lin2log.c:silk_SQRT_APPROX Unexecuted instantiation: log2lin.c:silk_SQRT_APPROX Unexecuted instantiation: LPC_analysis_filter.c:silk_SQRT_APPROX Unexecuted instantiation: LPC_inv_pred_gain.c:silk_SQRT_APPROX Unexecuted instantiation: NLSF2A.c:silk_SQRT_APPROX Unexecuted instantiation: NLSF_stabilize.c:silk_SQRT_APPROX Unexecuted instantiation: pitch_est_tables.c:silk_SQRT_APPROX Unexecuted instantiation: resampler_private_AR2.c:silk_SQRT_APPROX Unexecuted instantiation: sort.c:silk_SQRT_APPROX Unexecuted instantiation: sum_sqr_shift.c:silk_SQRT_APPROX Unexecuted instantiation: LPC_fit.c:silk_SQRT_APPROX Line | Count | Source | 72 | 195k | { | 73 | 195k | opus_int32 y, lz, frac_Q7; | 74 | | | 75 | 195k | if( x <= 0 ) { | 76 | 145k | return 0; | 77 | 145k | } | 78 | | | 79 | 50.4k | silk_CLZ_FRAC(x, &lz, &frac_Q7); | 80 | | | 81 | 50.4k | if( lz & 1 ) { | 82 | 26.2k | y = 32768; | 83 | 26.2k | } else { | 84 | 24.2k | y = 46214; /* 46214 = sqrt(2) * 32768 */ | 85 | 24.2k | } | 86 | | | 87 | | /* get scaling right */ | 88 | 50.4k | y >>= silk_RSHIFT(lz, 1); | 89 | | | 90 | | /* increment using fractional part of input */ | 91 | 50.4k | y = silk_SMLAWB(y, y, silk_SMULBB(213, frac_Q7)); | 92 | | | 93 | 50.4k | return y; | 94 | 195k | } |
Unexecuted instantiation: code_signs.c:silk_SQRT_APPROX Unexecuted instantiation: decode_core.c:silk_SQRT_APPROX Unexecuted instantiation: bwexpander_32.c:silk_SQRT_APPROX Unexecuted instantiation: table_LSF_cos.c:silk_SQRT_APPROX Unexecuted instantiation: opus_encoder.c:silk_SQRT_APPROX Unexecuted instantiation: enc_API.c:silk_SQRT_APPROX Unexecuted instantiation: encode_indices.c:silk_SQRT_APPROX Unexecuted instantiation: encode_pulses.c:silk_SQRT_APPROX Unexecuted instantiation: HP_variable_cutoff.c:silk_SQRT_APPROX Unexecuted instantiation: stereo_LR_to_MS.c:silk_SQRT_APPROX Unexecuted instantiation: check_control_input.c:silk_SQRT_APPROX Unexecuted instantiation: control_SNR.c:silk_SQRT_APPROX Unexecuted instantiation: init_encoder.c:silk_SQRT_APPROX Unexecuted instantiation: control_codec.c:silk_SQRT_APPROX Unexecuted instantiation: stereo_encode_pred.c:silk_SQRT_APPROX stereo_find_predictor.c:silk_SQRT_APPROX Line | Count | Source | 72 | 541k | { | 73 | 541k | opus_int32 y, lz, frac_Q7; | 74 | | | 75 | 541k | if( x <= 0 ) { | 76 | 39.6k | return 0; | 77 | 39.6k | } | 78 | | | 79 | 501k | silk_CLZ_FRAC(x, &lz, &frac_Q7); | 80 | | | 81 | 501k | if( lz & 1 ) { | 82 | 263k | y = 32768; | 83 | 263k | } else { | 84 | 237k | y = 46214; /* 46214 = sqrt(2) * 32768 */ | 85 | 237k | } | 86 | | | 87 | | /* get scaling right */ | 88 | 501k | y >>= silk_RSHIFT(lz, 1); | 89 | | | 90 | | /* increment using fractional part of input */ | 91 | 501k | y = silk_SMLAWB(y, y, silk_SMULBB(213, frac_Q7)); | 92 | | | 93 | 501k | return y; | 94 | 541k | } |
Unexecuted instantiation: stereo_quant_pred.c:silk_SQRT_APPROX Unexecuted instantiation: encode_frame_FIX.c:silk_SQRT_APPROX Unexecuted instantiation: find_pitch_lags_FIX.c:silk_SQRT_APPROX Unexecuted instantiation: find_pred_coefs_FIX.c:silk_SQRT_APPROX noise_shape_analysis_FIX.c:silk_SQRT_APPROX Line | Count | Source | 72 | 856k | { | 73 | 856k | opus_int32 y, lz, frac_Q7; | 74 | | | 75 | 856k | if( x <= 0 ) { | 76 | 0 | return 0; | 77 | 0 | } | 78 | | | 79 | 856k | silk_CLZ_FRAC(x, &lz, &frac_Q7); | 80 | | | 81 | 856k | if( lz & 1 ) { | 82 | 466k | y = 32768; | 83 | 466k | } else { | 84 | 389k | y = 46214; /* 46214 = sqrt(2) * 32768 */ | 85 | 389k | } | 86 | | | 87 | | /* get scaling right */ | 88 | 856k | y >>= silk_RSHIFT(lz, 1); | 89 | | | 90 | | /* increment using fractional part of input */ | 91 | 856k | y = silk_SMLAWB(y, y, silk_SMULBB(213, frac_Q7)); | 92 | | | 93 | 856k | return y; | 94 | 856k | } |
process_gains_FIX.c:silk_SQRT_APPROX Line | Count | Source | 72 | 827k | { | 73 | 827k | opus_int32 y, lz, frac_Q7; | 74 | | | 75 | 827k | if( x <= 0 ) { | 76 | 0 | return 0; | 77 | 0 | } | 78 | | | 79 | 827k | silk_CLZ_FRAC(x, &lz, &frac_Q7); | 80 | | | 81 | 827k | if( lz & 1 ) { | 82 | 470k | y = 32768; | 83 | 470k | } else { | 84 | 356k | y = 46214; /* 46214 = sqrt(2) * 32768 */ | 85 | 356k | } | 86 | | | 87 | | /* get scaling right */ | 88 | 827k | y >>= silk_RSHIFT(lz, 1); | 89 | | | 90 | | /* increment using fractional part of input */ | 91 | 827k | y = silk_SMLAWB(y, y, silk_SMULBB(213, frac_Q7)); | 92 | | | 93 | 827k | return y; | 94 | 827k | } |
Unexecuted instantiation: residual_energy_FIX.c:silk_SQRT_APPROX Unexecuted instantiation: warped_autocorrelation_FIX.c:silk_SQRT_APPROX Unexecuted instantiation: apply_sine_window_FIX.c:silk_SQRT_APPROX Unexecuted instantiation: autocorr_FIX.c:silk_SQRT_APPROX Unexecuted instantiation: k2a_FIX.c:silk_SQRT_APPROX Unexecuted instantiation: k2a_Q16_FIX.c:silk_SQRT_APPROX Unexecuted instantiation: pitch_analysis_core_FIX.c:silk_SQRT_APPROX Unexecuted instantiation: vector_ops_FIX.c:silk_SQRT_APPROX Unexecuted instantiation: schur64_FIX.c:silk_SQRT_APPROX Unexecuted instantiation: schur_FIX.c:silk_SQRT_APPROX Unexecuted instantiation: x86_silk_map.c:silk_SQRT_APPROX Unexecuted instantiation: NSQ_del_dec_avx2.c:silk_SQRT_APPROX Unexecuted instantiation: LP_variable_cutoff.c:silk_SQRT_APPROX Unexecuted instantiation: NSQ.c:silk_SQRT_APPROX Unexecuted instantiation: NSQ_del_dec.c:silk_SQRT_APPROX Line | Count | Source | 72 | 587k | { | 73 | 587k | opus_int32 y, lz, frac_Q7; | 74 | | | 75 | 587k | if( x <= 0 ) { | 76 | 46.0k | return 0; | 77 | 46.0k | } | 78 | | | 79 | 541k | silk_CLZ_FRAC(x, &lz, &frac_Q7); | 80 | | | 81 | 541k | if( lz & 1 ) { | 82 | 264k | y = 32768; | 83 | 277k | } else { | 84 | 277k | y = 46214; /* 46214 = sqrt(2) * 32768 */ | 85 | 277k | } | 86 | | | 87 | | /* get scaling right */ | 88 | 541k | y >>= silk_RSHIFT(lz, 1); | 89 | | | 90 | | /* increment using fractional part of input */ | 91 | 541k | y = silk_SMLAWB(y, y, silk_SMULBB(213, frac_Q7)); | 92 | | | 93 | 541k | return y; | 94 | 587k | } |
Unexecuted instantiation: control_audio_bandwidth.c:silk_SQRT_APPROX Unexecuted instantiation: quant_LTP_gains.c:silk_SQRT_APPROX Unexecuted instantiation: VQ_WMat_EC.c:silk_SQRT_APPROX Unexecuted instantiation: process_NLSFs.c:silk_SQRT_APPROX Unexecuted instantiation: ana_filt_bank_1.c:silk_SQRT_APPROX Unexecuted instantiation: biquad_alt.c:silk_SQRT_APPROX Unexecuted instantiation: inner_prod_aligned.c:silk_SQRT_APPROX Unexecuted instantiation: NLSF_VQ_weights_laroia.c:silk_SQRT_APPROX Unexecuted instantiation: resampler_down2_3.c:silk_SQRT_APPROX Unexecuted instantiation: resampler_down2.c:silk_SQRT_APPROX Unexecuted instantiation: sigm_Q15.c:silk_SQRT_APPROX Unexecuted instantiation: LTP_analysis_filter_FIX.c:silk_SQRT_APPROX Unexecuted instantiation: LTP_scale_ctrl_FIX.c:silk_SQRT_APPROX Unexecuted instantiation: find_LPC_FIX.c:silk_SQRT_APPROX Unexecuted instantiation: find_LTP_FIX.c:silk_SQRT_APPROX burg_modified_FIX.c:silk_SQRT_APPROX Line | Count | Source | 72 | 16.2k | { | 73 | 16.2k | opus_int32 y, lz, frac_Q7; | 74 | | | 75 | 16.2k | if( x <= 0 ) { | 76 | 0 | return 0; | 77 | 0 | } | 78 | | | 79 | 16.2k | silk_CLZ_FRAC(x, &lz, &frac_Q7); | 80 | | | 81 | 16.2k | if( lz & 1 ) { | 82 | 2.64k | y = 32768; | 83 | 13.5k | } else { | 84 | 13.5k | y = 46214; /* 46214 = sqrt(2) * 32768 */ | 85 | 13.5k | } | 86 | | | 87 | | /* get scaling right */ | 88 | 16.2k | y >>= silk_RSHIFT(lz, 1); | 89 | | | 90 | | /* increment using fractional part of input */ | 91 | 16.2k | y = silk_SMLAWB(y, y, silk_SMULBB(213, frac_Q7)); | 92 | | | 93 | 16.2k | return y; | 94 | 16.2k | } |
Unexecuted instantiation: NSQ_sse4_1.c:silk_SQRT_APPROX Unexecuted instantiation: NSQ_del_dec_sse4_1.c:silk_SQRT_APPROX VAD_sse4_1.c:silk_SQRT_APPROX Line | Count | Source | 72 | 1.19M | { | 73 | 1.19M | opus_int32 y, lz, frac_Q7; | 74 | | | 75 | 1.19M | if( x <= 0 ) { | 76 | 88.1k | return 0; | 77 | 88.1k | } | 78 | | | 79 | 1.10M | silk_CLZ_FRAC(x, &lz, &frac_Q7); | 80 | | | 81 | 1.10M | if( lz & 1 ) { | 82 | 539k | y = 32768; | 83 | 563k | } else { | 84 | 563k | y = 46214; /* 46214 = sqrt(2) * 32768 */ | 85 | 563k | } | 86 | | | 87 | | /* get scaling right */ | 88 | 1.10M | y >>= silk_RSHIFT(lz, 1); | 89 | | | 90 | | /* increment using fractional part of input */ | 91 | 1.10M | y = silk_SMLAWB(y, y, silk_SMULBB(213, frac_Q7)); | 92 | | | 93 | 1.10M | return y; | 94 | 1.19M | } |
Unexecuted instantiation: VQ_WMat_EC_sse4_1.c:silk_SQRT_APPROX Unexecuted instantiation: vector_ops_FIX_sse4_1.c:silk_SQRT_APPROX burg_modified_FIX_sse4_1.c:silk_SQRT_APPROX Line | Count | Source | 72 | 16.2k | { | 73 | 16.2k | opus_int32 y, lz, frac_Q7; | 74 | | | 75 | 16.2k | if( x <= 0 ) { | 76 | 0 | return 0; | 77 | 0 | } | 78 | | | 79 | 16.2k | silk_CLZ_FRAC(x, &lz, &frac_Q7); | 80 | | | 81 | 16.2k | if( lz & 1 ) { | 82 | 2.64k | y = 32768; | 83 | 13.5k | } else { | 84 | 13.5k | y = 46214; /* 46214 = sqrt(2) * 32768 */ | 85 | 13.5k | } | 86 | | | 87 | | /* get scaling right */ | 88 | 16.2k | y >>= silk_RSHIFT(lz, 1); | 89 | | | 90 | | /* increment using fractional part of input */ | 91 | 16.2k | y = silk_SMLAWB(y, y, silk_SMULBB(213, frac_Q7)); | 92 | | | 93 | 16.2k | return y; | 94 | 16.2k | } |
Unexecuted instantiation: interpolate.c:silk_SQRT_APPROX Unexecuted instantiation: NLSF_encode.c:silk_SQRT_APPROX Unexecuted instantiation: NLSF_VQ.c:silk_SQRT_APPROX Unexecuted instantiation: NLSF_del_dec_quant.c:silk_SQRT_APPROX Unexecuted instantiation: A2NLSF.c:silk_SQRT_APPROX Unexecuted instantiation: corrMatrix_FIX.c:silk_SQRT_APPROX Unexecuted instantiation: encode_frame_FLP.c:silk_SQRT_APPROX Unexecuted instantiation: find_pitch_lags_FLP.c:silk_SQRT_APPROX Unexecuted instantiation: find_pred_coefs_FLP.c:silk_SQRT_APPROX Unexecuted instantiation: LPC_analysis_filter_FLP.c:silk_SQRT_APPROX Unexecuted instantiation: LTP_analysis_filter_FLP.c:silk_SQRT_APPROX Unexecuted instantiation: LTP_scale_ctrl_FLP.c:silk_SQRT_APPROX Unexecuted instantiation: noise_shape_analysis_FLP.c:silk_SQRT_APPROX Unexecuted instantiation: process_gains_FLP.c:silk_SQRT_APPROX Unexecuted instantiation: residual_energy_FLP.c:silk_SQRT_APPROX Unexecuted instantiation: warped_autocorrelation_FLP.c:silk_SQRT_APPROX Unexecuted instantiation: wrappers_FLP.c:silk_SQRT_APPROX Unexecuted instantiation: autocorrelation_FLP.c:silk_SQRT_APPROX Unexecuted instantiation: bwexpander_FLP.c:silk_SQRT_APPROX Unexecuted instantiation: energy_FLP.c:silk_SQRT_APPROX Unexecuted instantiation: k2a_FLP.c:silk_SQRT_APPROX Unexecuted instantiation: pitch_analysis_core_FLP.c:silk_SQRT_APPROX Unexecuted instantiation: scale_copy_vector_FLP.c:silk_SQRT_APPROX Unexecuted instantiation: schur_FLP.c:silk_SQRT_APPROX Unexecuted instantiation: sort_FLP.c:silk_SQRT_APPROX Unexecuted instantiation: apply_sine_window_FLP.c:silk_SQRT_APPROX Unexecuted instantiation: find_LPC_FLP.c:silk_SQRT_APPROX Unexecuted instantiation: find_LTP_FLP.c:silk_SQRT_APPROX Unexecuted instantiation: burg_modified_FLP.c:silk_SQRT_APPROX Unexecuted instantiation: inner_product_FLP.c:silk_SQRT_APPROX Unexecuted instantiation: scale_vector_FLP.c:silk_SQRT_APPROX Unexecuted instantiation: inner_product_FLP_avx2.c:silk_SQRT_APPROX Unexecuted instantiation: corrMatrix_FLP.c:silk_SQRT_APPROX |
95 | | |
96 | | /* Divide two int32 values and return result as int32 in a given Q-domain */ |
97 | | static OPUS_INLINE opus_int32 silk_DIV32_varQ( /* O returns a good approximation of "(a32 << Qres) / b32" */ |
98 | | const opus_int32 a32, /* I numerator (Q0) */ |
99 | | const opus_int32 b32, /* I denominator (Q0) */ |
100 | | const opus_int Qres /* I Q-domain of result (>= 0) */ |
101 | | ) |
102 | 95.2M | { |
103 | 95.2M | opus_int a_headrm, b_headrm, lshift; |
104 | 95.2M | opus_int32 b32_inv, a32_nrm, b32_nrm, result; |
105 | | |
106 | 95.2M | silk_assert( b32 != 0 ); |
107 | 95.2M | silk_assert( Qres >= 0 ); |
108 | | |
109 | | /* Compute number of bits head room and normalize inputs */ |
110 | 95.2M | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; |
111 | 95.2M | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ |
112 | 95.2M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; |
113 | 95.2M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ |
114 | | |
115 | | /* Inverse of b32, with 14 bits of precision */ |
116 | 95.2M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ |
117 | | |
118 | | /* First approximation */ |
119 | 95.2M | result = silk_SMULWB(a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ |
120 | | |
121 | | /* Compute residual by subtracting product of denominator and first approximation */ |
122 | | /* It's OK to overflow because the final value of a32_nrm should always be small */ |
123 | 95.2M | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ |
124 | | |
125 | | /* Refinement */ |
126 | 95.2M | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ |
127 | | |
128 | | /* Convert to Qres domain */ |
129 | 95.2M | lshift = 29 + a_headrm - b_headrm - Qres; |
130 | 95.2M | if( lshift < 0 ) { |
131 | 3.17M | return silk_LSHIFT_SAT32(result, -lshift); |
132 | 92.1M | } else { |
133 | 92.1M | if( lshift < 32){ |
134 | 91.3M | return silk_RSHIFT(result, lshift); |
135 | 91.3M | } else { |
136 | | /* Avoid undefined result */ |
137 | 813k | return 0; |
138 | 813k | } |
139 | 92.1M | } |
140 | 95.2M | } Unexecuted instantiation: opus_decoder.c:silk_DIV32_varQ Unexecuted instantiation: vq.c:silk_DIV32_varQ Unexecuted instantiation: x86cpu.c:silk_DIV32_varQ Unexecuted instantiation: dec_API.c:silk_DIV32_varQ Unexecuted instantiation: tables_other.c:silk_DIV32_varQ Unexecuted instantiation: stereo_MS_to_LR.c:silk_DIV32_varQ Unexecuted instantiation: resampler.c:silk_DIV32_varQ Unexecuted instantiation: resampler_private_down_FIR.c:silk_DIV32_varQ Unexecuted instantiation: resampler_private_IIR_FIR.c:silk_DIV32_varQ Unexecuted instantiation: resampler_private_up2_HQ.c:silk_DIV32_varQ Unexecuted instantiation: resampler_rom.c:silk_DIV32_varQ Unexecuted instantiation: stereo_decode_pred.c:silk_DIV32_varQ Unexecuted instantiation: init_decoder.c:silk_DIV32_varQ Unexecuted instantiation: decode_frame.c:silk_DIV32_varQ Unexecuted instantiation: decode_parameters.c:silk_DIV32_varQ Unexecuted instantiation: decode_indices.c:silk_DIV32_varQ Unexecuted instantiation: decode_pulses.c:silk_DIV32_varQ Unexecuted instantiation: decoder_set_fs.c:silk_DIV32_varQ Unexecuted instantiation: gain_quant.c:silk_DIV32_varQ Unexecuted instantiation: NLSF_decode.c:silk_DIV32_varQ Unexecuted instantiation: PLC.c:silk_DIV32_varQ Unexecuted instantiation: shell_coder.c:silk_DIV32_varQ Unexecuted instantiation: tables_gain.c:silk_DIV32_varQ Unexecuted instantiation: tables_LTP.c:silk_DIV32_varQ Unexecuted instantiation: tables_NLSF_CB_NB_MB.c:silk_DIV32_varQ Unexecuted instantiation: tables_NLSF_CB_WB.c:silk_DIV32_varQ Unexecuted instantiation: tables_pitch_lag.c:silk_DIV32_varQ Unexecuted instantiation: tables_pulses_per_block.c:silk_DIV32_varQ Unexecuted instantiation: NLSF_unpack.c:silk_DIV32_varQ Unexecuted instantiation: bwexpander.c:silk_DIV32_varQ Unexecuted instantiation: decode_pitch.c:silk_DIV32_varQ Unexecuted instantiation: lin2log.c:silk_DIV32_varQ Unexecuted instantiation: log2lin.c:silk_DIV32_varQ Unexecuted instantiation: LPC_analysis_filter.c:silk_DIV32_varQ Unexecuted instantiation: LPC_inv_pred_gain.c:silk_DIV32_varQ Unexecuted instantiation: NLSF2A.c:silk_DIV32_varQ Unexecuted instantiation: NLSF_stabilize.c:silk_DIV32_varQ Unexecuted instantiation: pitch_est_tables.c:silk_DIV32_varQ Unexecuted instantiation: resampler_private_AR2.c:silk_DIV32_varQ Unexecuted instantiation: sort.c:silk_DIV32_varQ Unexecuted instantiation: sum_sqr_shift.c:silk_DIV32_varQ Unexecuted instantiation: LPC_fit.c:silk_DIV32_varQ Unexecuted instantiation: CNG.c:silk_DIV32_varQ Unexecuted instantiation: code_signs.c:silk_DIV32_varQ decode_core.c:silk_DIV32_varQ Line | Count | Source | 102 | 843k | { | 103 | 843k | opus_int a_headrm, b_headrm, lshift; | 104 | 843k | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 105 | | | 106 | 843k | silk_assert( b32 != 0 ); | 107 | 843k | silk_assert( Qres >= 0 ); | 108 | | | 109 | | /* Compute number of bits head room and normalize inputs */ | 110 | 843k | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 111 | 843k | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 112 | 843k | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 113 | 843k | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 114 | | | 115 | | /* Inverse of b32, with 14 bits of precision */ | 116 | 843k | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 117 | | | 118 | | /* First approximation */ | 119 | 843k | result = silk_SMULWB(a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 120 | | | 121 | | /* Compute residual by subtracting product of denominator and first approximation */ | 122 | | /* It's OK to overflow because the final value of a32_nrm should always be small */ | 123 | 843k | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 124 | | | 125 | | /* Refinement */ | 126 | 843k | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 127 | | | 128 | | /* Convert to Qres domain */ | 129 | 843k | lshift = 29 + a_headrm - b_headrm - Qres; | 130 | 843k | if( lshift < 0 ) { | 131 | 715 | return silk_LSHIFT_SAT32(result, -lshift); | 132 | 843k | } else { | 133 | 843k | if( lshift < 32){ | 134 | 843k | return silk_RSHIFT(result, lshift); | 135 | 843k | } else { | 136 | | /* Avoid undefined result */ | 137 | 0 | return 0; | 138 | 0 | } | 139 | 843k | } | 140 | 843k | } |
Unexecuted instantiation: bwexpander_32.c:silk_DIV32_varQ Unexecuted instantiation: table_LSF_cos.c:silk_DIV32_varQ Unexecuted instantiation: opus_encoder.c:silk_DIV32_varQ Unexecuted instantiation: enc_API.c:silk_DIV32_varQ Unexecuted instantiation: encode_indices.c:silk_DIV32_varQ Unexecuted instantiation: encode_pulses.c:silk_DIV32_varQ Unexecuted instantiation: HP_variable_cutoff.c:silk_DIV32_varQ stereo_LR_to_MS.c:silk_DIV32_varQ Line | Count | Source | 102 | 145k | { | 103 | 145k | opus_int a_headrm, b_headrm, lshift; | 104 | 145k | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 105 | | | 106 | 145k | silk_assert( b32 != 0 ); | 107 | 145k | silk_assert( Qres >= 0 ); | 108 | | | 109 | | /* Compute number of bits head room and normalize inputs */ | 110 | 145k | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 111 | 145k | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 112 | 145k | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 113 | 145k | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 114 | | | 115 | | /* Inverse of b32, with 14 bits of precision */ | 116 | 145k | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 117 | | | 118 | | /* First approximation */ | 119 | 145k | result = silk_SMULWB(a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 120 | | | 121 | | /* Compute residual by subtracting product of denominator and first approximation */ | 122 | | /* It's OK to overflow because the final value of a32_nrm should always be small */ | 123 | 145k | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 124 | | | 125 | | /* Refinement */ | 126 | 145k | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 127 | | | 128 | | /* Convert to Qres domain */ | 129 | 145k | lshift = 29 + a_headrm - b_headrm - Qres; | 130 | 145k | if( lshift < 0 ) { | 131 | 0 | return silk_LSHIFT_SAT32(result, -lshift); | 132 | 145k | } else { | 133 | 145k | if( lshift < 32){ | 134 | 145k | return silk_RSHIFT(result, lshift); | 135 | 145k | } else { | 136 | | /* Avoid undefined result */ | 137 | 0 | return 0; | 138 | 0 | } | 139 | 145k | } | 140 | 145k | } |
Unexecuted instantiation: check_control_input.c:silk_DIV32_varQ Unexecuted instantiation: control_SNR.c:silk_DIV32_varQ Unexecuted instantiation: init_encoder.c:silk_DIV32_varQ Unexecuted instantiation: control_codec.c:silk_DIV32_varQ Unexecuted instantiation: stereo_encode_pred.c:silk_DIV32_varQ stereo_find_predictor.c:silk_DIV32_varQ Line | Count | Source | 102 | 541k | { | 103 | 541k | opus_int a_headrm, b_headrm, lshift; | 104 | 541k | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 105 | | | 106 | 541k | silk_assert( b32 != 0 ); | 107 | 541k | silk_assert( Qres >= 0 ); | 108 | | | 109 | | /* Compute number of bits head room and normalize inputs */ | 110 | 541k | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 111 | 541k | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 112 | 541k | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 113 | 541k | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 114 | | | 115 | | /* Inverse of b32, with 14 bits of precision */ | 116 | 541k | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 117 | | | 118 | | /* First approximation */ | 119 | 541k | result = silk_SMULWB(a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 120 | | | 121 | | /* Compute residual by subtracting product of denominator and first approximation */ | 122 | | /* It's OK to overflow because the final value of a32_nrm should always be small */ | 123 | 541k | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 124 | | | 125 | | /* Refinement */ | 126 | 541k | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 127 | | | 128 | | /* Convert to Qres domain */ | 129 | 541k | lshift = 29 + a_headrm - b_headrm - Qres; | 130 | 541k | if( lshift < 0 ) { | 131 | 0 | return silk_LSHIFT_SAT32(result, -lshift); | 132 | 541k | } else { | 133 | 541k | if( lshift < 32){ | 134 | 540k | return silk_RSHIFT(result, lshift); | 135 | 540k | } else { | 136 | | /* Avoid undefined result */ | 137 | 1.22k | return 0; | 138 | 1.22k | } | 139 | 541k | } | 140 | 541k | } |
Unexecuted instantiation: stereo_quant_pred.c:silk_DIV32_varQ Unexecuted instantiation: encode_frame_FIX.c:silk_DIV32_varQ find_pitch_lags_FIX.c:silk_DIV32_varQ Line | Count | Source | 102 | 237k | { | 103 | 237k | opus_int a_headrm, b_headrm, lshift; | 104 | 237k | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 105 | | | 106 | 237k | silk_assert( b32 != 0 ); | 107 | 237k | silk_assert( Qres >= 0 ); | 108 | | | 109 | | /* Compute number of bits head room and normalize inputs */ | 110 | 237k | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 111 | 237k | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 112 | 237k | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 113 | 237k | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 114 | | | 115 | | /* Inverse of b32, with 14 bits of precision */ | 116 | 237k | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 117 | | | 118 | | /* First approximation */ | 119 | 237k | result = silk_SMULWB(a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 120 | | | 121 | | /* Compute residual by subtracting product of denominator and first approximation */ | 122 | | /* It's OK to overflow because the final value of a32_nrm should always be small */ | 123 | 237k | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 124 | | | 125 | | /* Refinement */ | 126 | 237k | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 127 | | | 128 | | /* Convert to Qres domain */ | 129 | 237k | lshift = 29 + a_headrm - b_headrm - Qres; | 130 | 237k | if( lshift < 0 ) { | 131 | 0 | return silk_LSHIFT_SAT32(result, -lshift); | 132 | 237k | } else { | 133 | 237k | if( lshift < 32){ | 134 | 237k | return silk_RSHIFT(result, lshift); | 135 | 237k | } else { | 136 | | /* Avoid undefined result */ | 137 | 0 | return 0; | 138 | 0 | } | 139 | 237k | } | 140 | 237k | } |
find_pred_coefs_FIX.c:silk_DIV32_varQ Line | Count | Source | 102 | 933k | { | 103 | 933k | opus_int a_headrm, b_headrm, lshift; | 104 | 933k | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 105 | | | 106 | 933k | silk_assert( b32 != 0 ); | 107 | 933k | silk_assert( Qres >= 0 ); | 108 | | | 109 | | /* Compute number of bits head room and normalize inputs */ | 110 | 933k | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 111 | 933k | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 112 | 933k | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 113 | 933k | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 114 | | | 115 | | /* Inverse of b32, with 14 bits of precision */ | 116 | 933k | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 117 | | | 118 | | /* First approximation */ | 119 | 933k | result = silk_SMULWB(a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 120 | | | 121 | | /* Compute residual by subtracting product of denominator and first approximation */ | 122 | | /* It's OK to overflow because the final value of a32_nrm should always be small */ | 123 | 933k | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 124 | | | 125 | | /* Refinement */ | 126 | 933k | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 127 | | | 128 | | /* Convert to Qres domain */ | 129 | 933k | lshift = 29 + a_headrm - b_headrm - Qres; | 130 | 933k | if( lshift < 0 ) { | 131 | 0 | return silk_LSHIFT_SAT32(result, -lshift); | 132 | 933k | } else { | 133 | 933k | if( lshift < 32){ | 134 | 933k | return silk_RSHIFT(result, lshift); | 135 | 933k | } else { | 136 | | /* Avoid undefined result */ | 137 | 0 | return 0; | 138 | 0 | } | 139 | 933k | } | 140 | 933k | } |
noise_shape_analysis_FIX.c:silk_DIV32_varQ Line | Count | Source | 102 | 809k | { | 103 | 809k | opus_int a_headrm, b_headrm, lshift; | 104 | 809k | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 105 | | | 106 | 809k | silk_assert( b32 != 0 ); | 107 | 809k | silk_assert( Qres >= 0 ); | 108 | | | 109 | | /* Compute number of bits head room and normalize inputs */ | 110 | 809k | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 111 | 809k | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 112 | 809k | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 113 | 809k | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 114 | | | 115 | | /* Inverse of b32, with 14 bits of precision */ | 116 | 809k | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 117 | | | 118 | | /* First approximation */ | 119 | 809k | result = silk_SMULWB(a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 120 | | | 121 | | /* Compute residual by subtracting product of denominator and first approximation */ | 122 | | /* It's OK to overflow because the final value of a32_nrm should always be small */ | 123 | 809k | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 124 | | | 125 | | /* Refinement */ | 126 | 809k | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 127 | | | 128 | | /* Convert to Qres domain */ | 129 | 809k | lshift = 29 + a_headrm - b_headrm - Qres; | 130 | 809k | if( lshift < 0 ) { | 131 | 0 | return silk_LSHIFT_SAT32(result, -lshift); | 132 | 809k | } else { | 133 | 809k | if( lshift < 32){ | 134 | 809k | return silk_RSHIFT(result, lshift); | 135 | 809k | } else { | 136 | | /* Avoid undefined result */ | 137 | 20 | return 0; | 138 | 20 | } | 139 | 809k | } | 140 | 809k | } |
Unexecuted instantiation: process_gains_FIX.c:silk_DIV32_varQ Unexecuted instantiation: residual_energy_FIX.c:silk_DIV32_varQ Unexecuted instantiation: warped_autocorrelation_FIX.c:silk_DIV32_varQ Unexecuted instantiation: apply_sine_window_FIX.c:silk_DIV32_varQ Unexecuted instantiation: autocorr_FIX.c:silk_DIV32_varQ Unexecuted instantiation: k2a_FIX.c:silk_DIV32_varQ Unexecuted instantiation: k2a_Q16_FIX.c:silk_DIV32_varQ pitch_analysis_core_FIX.c:silk_DIV32_varQ Line | Count | Source | 102 | 14.1M | { | 103 | 14.1M | opus_int a_headrm, b_headrm, lshift; | 104 | 14.1M | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 105 | | | 106 | 14.1M | silk_assert( b32 != 0 ); | 107 | 14.1M | silk_assert( Qres >= 0 ); | 108 | | | 109 | | /* Compute number of bits head room and normalize inputs */ | 110 | 14.1M | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 111 | 14.1M | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 112 | 14.1M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 113 | 14.1M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 114 | | | 115 | | /* Inverse of b32, with 14 bits of precision */ | 116 | 14.1M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 117 | | | 118 | | /* First approximation */ | 119 | 14.1M | result = silk_SMULWB(a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 120 | | | 121 | | /* Compute residual by subtracting product of denominator and first approximation */ | 122 | | /* It's OK to overflow because the final value of a32_nrm should always be small */ | 123 | 14.1M | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 124 | | | 125 | | /* Refinement */ | 126 | 14.1M | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 127 | | | 128 | | /* Convert to Qres domain */ | 129 | 14.1M | lshift = 29 + a_headrm - b_headrm - Qres; | 130 | 14.1M | if( lshift < 0 ) { | 131 | 0 | return silk_LSHIFT_SAT32(result, -lshift); | 132 | 14.1M | } else { | 133 | 14.1M | if( lshift < 32){ | 134 | 13.2M | return silk_RSHIFT(result, lshift); | 135 | 13.2M | } else { | 136 | | /* Avoid undefined result */ | 137 | 812k | return 0; | 138 | 812k | } | 139 | 14.1M | } | 140 | 14.1M | } |
Unexecuted instantiation: vector_ops_FIX.c:silk_DIV32_varQ schur64_FIX.c:silk_DIV32_varQ Line | Count | Source | 102 | 15.8M | { | 103 | 15.8M | opus_int a_headrm, b_headrm, lshift; | 104 | 15.8M | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 105 | | | 106 | 15.8M | silk_assert( b32 != 0 ); | 107 | 15.8M | silk_assert( Qres >= 0 ); | 108 | | | 109 | | /* Compute number of bits head room and normalize inputs */ | 110 | 15.8M | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 111 | 15.8M | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 112 | 15.8M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 113 | 15.8M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 114 | | | 115 | | /* Inverse of b32, with 14 bits of precision */ | 116 | 15.8M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 117 | | | 118 | | /* First approximation */ | 119 | 15.8M | result = silk_SMULWB(a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 120 | | | 121 | | /* Compute residual by subtracting product of denominator and first approximation */ | 122 | | /* It's OK to overflow because the final value of a32_nrm should always be small */ | 123 | 15.8M | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 124 | | | 125 | | /* Refinement */ | 126 | 15.8M | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 127 | | | 128 | | /* Convert to Qres domain */ | 129 | 15.8M | lshift = 29 + a_headrm - b_headrm - Qres; | 130 | 15.8M | if( lshift < 0 ) { | 131 | 2.46M | return silk_LSHIFT_SAT32(result, -lshift); | 132 | 13.3M | } else { | 133 | 13.3M | if( lshift < 32){ | 134 | 13.3M | return silk_RSHIFT(result, lshift); | 135 | 13.3M | } else { | 136 | | /* Avoid undefined result */ | 137 | 0 | return 0; | 138 | 0 | } | 139 | 13.3M | } | 140 | 15.8M | } |
Unexecuted instantiation: schur_FIX.c:silk_DIV32_varQ Unexecuted instantiation: x86_silk_map.c:silk_DIV32_varQ NSQ_del_dec_avx2.c:silk_DIV32_varQ Line | Count | Source | 102 | 2.24M | { | 103 | 2.24M | opus_int a_headrm, b_headrm, lshift; | 104 | 2.24M | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 105 | | | 106 | 2.24M | silk_assert( b32 != 0 ); | 107 | 2.24M | silk_assert( Qres >= 0 ); | 108 | | | 109 | | /* Compute number of bits head room and normalize inputs */ | 110 | 2.24M | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 111 | 2.24M | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 112 | 2.24M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 113 | 2.24M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 114 | | | 115 | | /* Inverse of b32, with 14 bits of precision */ | 116 | 2.24M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 117 | | | 118 | | /* First approximation */ | 119 | 2.24M | result = silk_SMULWB(a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 120 | | | 121 | | /* Compute residual by subtracting product of denominator and first approximation */ | 122 | | /* It's OK to overflow because the final value of a32_nrm should always be small */ | 123 | 2.24M | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 124 | | | 125 | | /* Refinement */ | 126 | 2.24M | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 127 | | | 128 | | /* Convert to Qres domain */ | 129 | 2.24M | lshift = 29 + a_headrm - b_headrm - Qres; | 130 | 2.24M | if( lshift < 0 ) { | 131 | 0 | return silk_LSHIFT_SAT32(result, -lshift); | 132 | 2.24M | } else { | 133 | 2.24M | if( lshift < 32){ | 134 | 2.24M | return silk_RSHIFT(result, lshift); | 135 | 2.24M | } else { | 136 | | /* Avoid undefined result */ | 137 | 0 | return 0; | 138 | 0 | } | 139 | 2.24M | } | 140 | 2.24M | } |
Unexecuted instantiation: LP_variable_cutoff.c:silk_DIV32_varQ Line | Count | Source | 102 | 509k | { | 103 | 509k | opus_int a_headrm, b_headrm, lshift; | 104 | 509k | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 105 | | | 106 | 509k | silk_assert( b32 != 0 ); | 107 | 509k | silk_assert( Qres >= 0 ); | 108 | | | 109 | | /* Compute number of bits head room and normalize inputs */ | 110 | 509k | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 111 | 509k | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 112 | 509k | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 113 | 509k | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 114 | | | 115 | | /* Inverse of b32, with 14 bits of precision */ | 116 | 509k | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 117 | | | 118 | | /* First approximation */ | 119 | 509k | result = silk_SMULWB(a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 120 | | | 121 | | /* Compute residual by subtracting product of denominator and first approximation */ | 122 | | /* It's OK to overflow because the final value of a32_nrm should always be small */ | 123 | 509k | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 124 | | | 125 | | /* Refinement */ | 126 | 509k | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 127 | | | 128 | | /* Convert to Qres domain */ | 129 | 509k | lshift = 29 + a_headrm - b_headrm - Qres; | 130 | 509k | if( lshift < 0 ) { | 131 | 49 | return silk_LSHIFT_SAT32(result, -lshift); | 132 | 509k | } else { | 133 | 509k | if( lshift < 32){ | 134 | 509k | return silk_RSHIFT(result, lshift); | 135 | 509k | } else { | 136 | | /* Avoid undefined result */ | 137 | 0 | return 0; | 138 | 0 | } | 139 | 509k | } | 140 | 509k | } |
NSQ_del_dec.c:silk_DIV32_varQ Line | Count | Source | 102 | 2.47M | { | 103 | 2.47M | opus_int a_headrm, b_headrm, lshift; | 104 | 2.47M | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 105 | | | 106 | 2.47M | silk_assert( b32 != 0 ); | 107 | 2.47M | silk_assert( Qres >= 0 ); | 108 | | | 109 | | /* Compute number of bits head room and normalize inputs */ | 110 | 2.47M | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 111 | 2.47M | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 112 | 2.47M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 113 | 2.47M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 114 | | | 115 | | /* Inverse of b32, with 14 bits of precision */ | 116 | 2.47M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 117 | | | 118 | | /* First approximation */ | 119 | 2.47M | result = silk_SMULWB(a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 120 | | | 121 | | /* Compute residual by subtracting product of denominator and first approximation */ | 122 | | /* It's OK to overflow because the final value of a32_nrm should always be small */ | 123 | 2.47M | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 124 | | | 125 | | /* Refinement */ | 126 | 2.47M | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 127 | | | 128 | | /* Convert to Qres domain */ | 129 | 2.47M | lshift = 29 + a_headrm - b_headrm - Qres; | 130 | 2.47M | if( lshift < 0 ) { | 131 | 233 | return silk_LSHIFT_SAT32(result, -lshift); | 132 | 2.47M | } else { | 133 | 2.47M | if( lshift < 32){ | 134 | 2.47M | return silk_RSHIFT(result, lshift); | 135 | 2.47M | } else { | 136 | | /* Avoid undefined result */ | 137 | 0 | return 0; | 138 | 0 | } | 139 | 2.47M | } | 140 | 2.47M | } |
Unexecuted instantiation: VAD.c:silk_DIV32_varQ Unexecuted instantiation: control_audio_bandwidth.c:silk_DIV32_varQ Unexecuted instantiation: quant_LTP_gains.c:silk_DIV32_varQ Unexecuted instantiation: VQ_WMat_EC.c:silk_DIV32_varQ Unexecuted instantiation: process_NLSFs.c:silk_DIV32_varQ Unexecuted instantiation: ana_filt_bank_1.c:silk_DIV32_varQ Unexecuted instantiation: biquad_alt.c:silk_DIV32_varQ Unexecuted instantiation: inner_prod_aligned.c:silk_DIV32_varQ Unexecuted instantiation: NLSF_VQ_weights_laroia.c:silk_DIV32_varQ Unexecuted instantiation: resampler_down2_3.c:silk_DIV32_varQ Unexecuted instantiation: resampler_down2.c:silk_DIV32_varQ Unexecuted instantiation: sigm_Q15.c:silk_DIV32_varQ Unexecuted instantiation: LTP_analysis_filter_FIX.c:silk_DIV32_varQ Unexecuted instantiation: LTP_scale_ctrl_FIX.c:silk_DIV32_varQ Unexecuted instantiation: find_LPC_FIX.c:silk_DIV32_varQ Unexecuted instantiation: find_LTP_FIX.c:silk_DIV32_varQ burg_modified_FIX.c:silk_DIV32_varQ Line | Count | Source | 102 | 3.36M | { | 103 | 3.36M | opus_int a_headrm, b_headrm, lshift; | 104 | 3.36M | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 105 | | | 106 | 3.36M | silk_assert( b32 != 0 ); | 107 | 3.36M | silk_assert( Qres >= 0 ); | 108 | | | 109 | | /* Compute number of bits head room and normalize inputs */ | 110 | 3.36M | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 111 | 3.36M | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 112 | 3.36M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 113 | 3.36M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 114 | | | 115 | | /* Inverse of b32, with 14 bits of precision */ | 116 | 3.36M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 117 | | | 118 | | /* First approximation */ | 119 | 3.36M | result = silk_SMULWB(a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 120 | | | 121 | | /* Compute residual by subtracting product of denominator and first approximation */ | 122 | | /* It's OK to overflow because the final value of a32_nrm should always be small */ | 123 | 3.36M | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 124 | | | 125 | | /* Refinement */ | 126 | 3.36M | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 127 | | | 128 | | /* Convert to Qres domain */ | 129 | 3.36M | lshift = 29 + a_headrm - b_headrm - Qres; | 130 | 3.36M | if( lshift < 0 ) { | 131 | 355k | return silk_LSHIFT_SAT32(result, -lshift); | 132 | 3.00M | } else { | 133 | 3.00M | if( lshift < 32){ | 134 | 3.00M | return silk_RSHIFT(result, lshift); | 135 | 3.00M | } else { | 136 | | /* Avoid undefined result */ | 137 | 0 | return 0; | 138 | 0 | } | 139 | 3.00M | } | 140 | 3.36M | } |
NSQ_sse4_1.c:silk_DIV32_varQ Line | Count | Source | 102 | 1.03M | { | 103 | 1.03M | opus_int a_headrm, b_headrm, lshift; | 104 | 1.03M | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 105 | | | 106 | 1.03M | silk_assert( b32 != 0 ); | 107 | 1.03M | silk_assert( Qres >= 0 ); | 108 | | | 109 | | /* Compute number of bits head room and normalize inputs */ | 110 | 1.03M | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 111 | 1.03M | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 112 | 1.03M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 113 | 1.03M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 114 | | | 115 | | /* Inverse of b32, with 14 bits of precision */ | 116 | 1.03M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 117 | | | 118 | | /* First approximation */ | 119 | 1.03M | result = silk_SMULWB(a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 120 | | | 121 | | /* Compute residual by subtracting product of denominator and first approximation */ | 122 | | /* It's OK to overflow because the final value of a32_nrm should always be small */ | 123 | 1.03M | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 124 | | | 125 | | /* Refinement */ | 126 | 1.03M | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 127 | | | 128 | | /* Convert to Qres domain */ | 129 | 1.03M | lshift = 29 + a_headrm - b_headrm - Qres; | 130 | 1.03M | if( lshift < 0 ) { | 131 | 114 | return silk_LSHIFT_SAT32(result, -lshift); | 132 | 1.03M | } else { | 133 | 1.03M | if( lshift < 32){ | 134 | 1.03M | return silk_RSHIFT(result, lshift); | 135 | 1.03M | } else { | 136 | | /* Avoid undefined result */ | 137 | 0 | return 0; | 138 | 0 | } | 139 | 1.03M | } | 140 | 1.03M | } |
Unexecuted instantiation: NSQ_del_dec_sse4_1.c:silk_DIV32_varQ Unexecuted instantiation: VAD_sse4_1.c:silk_DIV32_varQ Unexecuted instantiation: VQ_WMat_EC_sse4_1.c:silk_DIV32_varQ Unexecuted instantiation: vector_ops_FIX_sse4_1.c:silk_DIV32_varQ burg_modified_FIX_sse4_1.c:silk_DIV32_varQ Line | Count | Source | 102 | 3.36M | { | 103 | 3.36M | opus_int a_headrm, b_headrm, lshift; | 104 | 3.36M | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 105 | | | 106 | 3.36M | silk_assert( b32 != 0 ); | 107 | 3.36M | silk_assert( Qres >= 0 ); | 108 | | | 109 | | /* Compute number of bits head room and normalize inputs */ | 110 | 3.36M | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 111 | 3.36M | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 112 | 3.36M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 113 | 3.36M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 114 | | | 115 | | /* Inverse of b32, with 14 bits of precision */ | 116 | 3.36M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 117 | | | 118 | | /* First approximation */ | 119 | 3.36M | result = silk_SMULWB(a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 120 | | | 121 | | /* Compute residual by subtracting product of denominator and first approximation */ | 122 | | /* It's OK to overflow because the final value of a32_nrm should always be small */ | 123 | 3.36M | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 124 | | | 125 | | /* Refinement */ | 126 | 3.36M | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 127 | | | 128 | | /* Convert to Qres domain */ | 129 | 3.36M | lshift = 29 + a_headrm - b_headrm - Qres; | 130 | 3.36M | if( lshift < 0 ) { | 131 | 355k | return silk_LSHIFT_SAT32(result, -lshift); | 132 | 3.00M | } else { | 133 | 3.00M | if( lshift < 32){ | 134 | 3.00M | return silk_RSHIFT(result, lshift); | 135 | 3.00M | } else { | 136 | | /* Avoid undefined result */ | 137 | 0 | return 0; | 138 | 0 | } | 139 | 3.00M | } | 140 | 3.36M | } |
Unexecuted instantiation: interpolate.c:silk_DIV32_varQ NLSF_encode.c:silk_DIV32_varQ Line | Count | Source | 102 | 48.8M | { | 103 | 48.8M | opus_int a_headrm, b_headrm, lshift; | 104 | 48.8M | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 105 | | | 106 | 48.8M | silk_assert( b32 != 0 ); | 107 | 48.8M | silk_assert( Qres >= 0 ); | 108 | | | 109 | | /* Compute number of bits head room and normalize inputs */ | 110 | 48.8M | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 111 | 48.8M | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 112 | 48.8M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 113 | 48.8M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 114 | | | 115 | | /* Inverse of b32, with 14 bits of precision */ | 116 | 48.8M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 117 | | | 118 | | /* First approximation */ | 119 | 48.8M | result = silk_SMULWB(a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 120 | | | 121 | | /* Compute residual by subtracting product of denominator and first approximation */ | 122 | | /* It's OK to overflow because the final value of a32_nrm should always be small */ | 123 | 48.8M | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 124 | | | 125 | | /* Refinement */ | 126 | 48.8M | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 127 | | | 128 | | /* Convert to Qres domain */ | 129 | 48.8M | lshift = 29 + a_headrm - b_headrm - Qres; | 130 | 48.8M | if( lshift < 0 ) { | 131 | 0 | return silk_LSHIFT_SAT32(result, -lshift); | 132 | 48.8M | } else { | 133 | 48.8M | if( lshift < 32){ | 134 | 48.8M | return silk_RSHIFT(result, lshift); | 135 | 48.8M | } else { | 136 | | /* Avoid undefined result */ | 137 | 0 | return 0; | 138 | 0 | } | 139 | 48.8M | } | 140 | 48.8M | } |
Unexecuted instantiation: NLSF_VQ.c:silk_DIV32_varQ Unexecuted instantiation: NLSF_del_dec_quant.c:silk_DIV32_varQ Unexecuted instantiation: A2NLSF.c:silk_DIV32_varQ Unexecuted instantiation: corrMatrix_FIX.c:silk_DIV32_varQ Unexecuted instantiation: encode_frame_FLP.c:silk_DIV32_varQ Unexecuted instantiation: find_pitch_lags_FLP.c:silk_DIV32_varQ Unexecuted instantiation: find_pred_coefs_FLP.c:silk_DIV32_varQ Unexecuted instantiation: LPC_analysis_filter_FLP.c:silk_DIV32_varQ Unexecuted instantiation: LTP_analysis_filter_FLP.c:silk_DIV32_varQ Unexecuted instantiation: LTP_scale_ctrl_FLP.c:silk_DIV32_varQ Unexecuted instantiation: noise_shape_analysis_FLP.c:silk_DIV32_varQ Unexecuted instantiation: process_gains_FLP.c:silk_DIV32_varQ Unexecuted instantiation: residual_energy_FLP.c:silk_DIV32_varQ Unexecuted instantiation: warped_autocorrelation_FLP.c:silk_DIV32_varQ Unexecuted instantiation: wrappers_FLP.c:silk_DIV32_varQ Unexecuted instantiation: autocorrelation_FLP.c:silk_DIV32_varQ Unexecuted instantiation: bwexpander_FLP.c:silk_DIV32_varQ Unexecuted instantiation: energy_FLP.c:silk_DIV32_varQ Unexecuted instantiation: k2a_FLP.c:silk_DIV32_varQ Unexecuted instantiation: pitch_analysis_core_FLP.c:silk_DIV32_varQ Unexecuted instantiation: scale_copy_vector_FLP.c:silk_DIV32_varQ Unexecuted instantiation: schur_FLP.c:silk_DIV32_varQ Unexecuted instantiation: sort_FLP.c:silk_DIV32_varQ Unexecuted instantiation: apply_sine_window_FLP.c:silk_DIV32_varQ Unexecuted instantiation: find_LPC_FLP.c:silk_DIV32_varQ Unexecuted instantiation: find_LTP_FLP.c:silk_DIV32_varQ Unexecuted instantiation: burg_modified_FLP.c:silk_DIV32_varQ Unexecuted instantiation: inner_product_FLP.c:silk_DIV32_varQ Unexecuted instantiation: scale_vector_FLP.c:silk_DIV32_varQ Unexecuted instantiation: inner_product_FLP_avx2.c:silk_DIV32_varQ Unexecuted instantiation: corrMatrix_FLP.c:silk_DIV32_varQ |
141 | | |
142 | | /* Invert int32 value and return result as int32 in a given Q-domain */ |
143 | | static OPUS_INLINE opus_int32 silk_INVERSE32_varQ( /* O returns a good approximation of "(1 << Qres) / b32" */ |
144 | | const opus_int32 b32, /* I denominator (Q0) */ |
145 | | const opus_int Qres /* I Q-domain of result (> 0) */ |
146 | | ) |
147 | 34.8M | { |
148 | 34.8M | opus_int b_headrm, lshift; |
149 | 34.8M | opus_int32 b32_inv, b32_nrm, err_Q32, result; |
150 | | |
151 | 34.8M | silk_assert( b32 != 0 ); |
152 | 34.8M | silk_assert( Qres > 0 ); |
153 | | |
154 | | /* Compute number of bits head room and normalize input */ |
155 | 34.8M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; |
156 | 34.8M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ |
157 | | |
158 | | /* Inverse of b32, with 14 bits of precision */ |
159 | 34.8M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ |
160 | | |
161 | | /* First approximation */ |
162 | 34.8M | result = silk_LSHIFT(b32_inv, 16); /* Q: 61 - b_headrm */ |
163 | | |
164 | | /* Compute residual by subtracting product of denominator and first approximation from one */ |
165 | 34.8M | err_Q32 = silk_LSHIFT( ((opus_int32)1<<29) - silk_SMULWB(b32_nrm, b32_inv), 3 ); /* Q32 */ |
166 | | |
167 | | /* Refinement */ |
168 | 34.8M | result = silk_SMLAWW(result, err_Q32, b32_inv); /* Q: 61 - b_headrm */ |
169 | | |
170 | | /* Convert to Qres domain */ |
171 | 34.8M | lshift = 61 - b_headrm - Qres; |
172 | 34.8M | if( lshift <= 0 ) { |
173 | 25.5M | return silk_LSHIFT_SAT32(result, -lshift); |
174 | 25.5M | } else { |
175 | 9.25M | if( lshift < 32){ |
176 | 9.25M | return silk_RSHIFT(result, lshift); |
177 | 9.25M | }else{ |
178 | | /* Avoid undefined result */ |
179 | 0 | return 0; |
180 | 0 | } |
181 | 9.25M | } |
182 | 34.8M | } Unexecuted instantiation: opus_decoder.c:silk_INVERSE32_varQ Unexecuted instantiation: vq.c:silk_INVERSE32_varQ Unexecuted instantiation: x86cpu.c:silk_INVERSE32_varQ Unexecuted instantiation: dec_API.c:silk_INVERSE32_varQ Unexecuted instantiation: tables_other.c:silk_INVERSE32_varQ Unexecuted instantiation: stereo_MS_to_LR.c:silk_INVERSE32_varQ Unexecuted instantiation: resampler.c:silk_INVERSE32_varQ Unexecuted instantiation: resampler_private_down_FIR.c:silk_INVERSE32_varQ Unexecuted instantiation: resampler_private_IIR_FIR.c:silk_INVERSE32_varQ Unexecuted instantiation: resampler_private_up2_HQ.c:silk_INVERSE32_varQ Unexecuted instantiation: resampler_rom.c:silk_INVERSE32_varQ Unexecuted instantiation: stereo_decode_pred.c:silk_INVERSE32_varQ Unexecuted instantiation: init_decoder.c:silk_INVERSE32_varQ Unexecuted instantiation: decode_frame.c:silk_INVERSE32_varQ Unexecuted instantiation: decode_parameters.c:silk_INVERSE32_varQ Unexecuted instantiation: decode_indices.c:silk_INVERSE32_varQ Unexecuted instantiation: decode_pulses.c:silk_INVERSE32_varQ Unexecuted instantiation: decoder_set_fs.c:silk_INVERSE32_varQ Unexecuted instantiation: gain_quant.c:silk_INVERSE32_varQ Unexecuted instantiation: NLSF_decode.c:silk_INVERSE32_varQ PLC.c:silk_INVERSE32_varQ Line | Count | Source | 147 | 195k | { | 148 | 195k | opus_int b_headrm, lshift; | 149 | 195k | opus_int32 b32_inv, b32_nrm, err_Q32, result; | 150 | | | 151 | 195k | silk_assert( b32 != 0 ); | 152 | 195k | silk_assert( Qres > 0 ); | 153 | | | 154 | | /* Compute number of bits head room and normalize input */ | 155 | 195k | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 156 | 195k | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 157 | | | 158 | | /* Inverse of b32, with 14 bits of precision */ | 159 | 195k | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 160 | | | 161 | | /* First approximation */ | 162 | 195k | result = silk_LSHIFT(b32_inv, 16); /* Q: 61 - b_headrm */ | 163 | | | 164 | | /* Compute residual by subtracting product of denominator and first approximation from one */ | 165 | 195k | err_Q32 = silk_LSHIFT( ((opus_int32)1<<29) - silk_SMULWB(b32_nrm, b32_inv), 3 ); /* Q32 */ | 166 | | | 167 | | /* Refinement */ | 168 | 195k | result = silk_SMLAWW(result, err_Q32, b32_inv); /* Q: 61 - b_headrm */ | 169 | | | 170 | | /* Convert to Qres domain */ | 171 | 195k | lshift = 61 - b_headrm - Qres; | 172 | 195k | if( lshift <= 0 ) { | 173 | 0 | return silk_LSHIFT_SAT32(result, -lshift); | 174 | 195k | } else { | 175 | 195k | if( lshift < 32){ | 176 | 195k | return silk_RSHIFT(result, lshift); | 177 | 195k | }else{ | 178 | | /* Avoid undefined result */ | 179 | 0 | return 0; | 180 | 0 | } | 181 | 195k | } | 182 | 195k | } |
Unexecuted instantiation: shell_coder.c:silk_INVERSE32_varQ Unexecuted instantiation: tables_gain.c:silk_INVERSE32_varQ Unexecuted instantiation: tables_LTP.c:silk_INVERSE32_varQ Unexecuted instantiation: tables_NLSF_CB_NB_MB.c:silk_INVERSE32_varQ Unexecuted instantiation: tables_NLSF_CB_WB.c:silk_INVERSE32_varQ Unexecuted instantiation: tables_pitch_lag.c:silk_INVERSE32_varQ Unexecuted instantiation: tables_pulses_per_block.c:silk_INVERSE32_varQ Unexecuted instantiation: NLSF_unpack.c:silk_INVERSE32_varQ Unexecuted instantiation: bwexpander.c:silk_INVERSE32_varQ Unexecuted instantiation: decode_pitch.c:silk_INVERSE32_varQ Unexecuted instantiation: lin2log.c:silk_INVERSE32_varQ Unexecuted instantiation: log2lin.c:silk_INVERSE32_varQ Unexecuted instantiation: LPC_analysis_filter.c:silk_INVERSE32_varQ LPC_inv_pred_gain.c:silk_INVERSE32_varQ Line | Count | Source | 147 | 24.9M | { | 148 | 24.9M | opus_int b_headrm, lshift; | 149 | 24.9M | opus_int32 b32_inv, b32_nrm, err_Q32, result; | 150 | | | 151 | 24.9M | silk_assert( b32 != 0 ); | 152 | 24.9M | silk_assert( Qres > 0 ); | 153 | | | 154 | | /* Compute number of bits head room and normalize input */ | 155 | 24.9M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 156 | 24.9M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 157 | | | 158 | | /* Inverse of b32, with 14 bits of precision */ | 159 | 24.9M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 160 | | | 161 | | /* First approximation */ | 162 | 24.9M | result = silk_LSHIFT(b32_inv, 16); /* Q: 61 - b_headrm */ | 163 | | | 164 | | /* Compute residual by subtracting product of denominator and first approximation from one */ | 165 | 24.9M | err_Q32 = silk_LSHIFT( ((opus_int32)1<<29) - silk_SMULWB(b32_nrm, b32_inv), 3 ); /* Q32 */ | 166 | | | 167 | | /* Refinement */ | 168 | 24.9M | result = silk_SMLAWW(result, err_Q32, b32_inv); /* Q: 61 - b_headrm */ | 169 | | | 170 | | /* Convert to Qres domain */ | 171 | 24.9M | lshift = 61 - b_headrm - Qres; | 172 | 24.9M | if( lshift <= 0 ) { | 173 | 24.9M | return silk_LSHIFT_SAT32(result, -lshift); | 174 | 24.9M | } else { | 175 | 0 | if( lshift < 32){ | 176 | 0 | return silk_RSHIFT(result, lshift); | 177 | 0 | }else{ | 178 | | /* Avoid undefined result */ | 179 | 0 | return 0; | 180 | 0 | } | 181 | 0 | } | 182 | 24.9M | } |
Unexecuted instantiation: NLSF2A.c:silk_INVERSE32_varQ Unexecuted instantiation: NLSF_stabilize.c:silk_INVERSE32_varQ Unexecuted instantiation: pitch_est_tables.c:silk_INVERSE32_varQ Unexecuted instantiation: resampler_private_AR2.c:silk_INVERSE32_varQ Unexecuted instantiation: sort.c:silk_INVERSE32_varQ Unexecuted instantiation: sum_sqr_shift.c:silk_INVERSE32_varQ Unexecuted instantiation: LPC_fit.c:silk_INVERSE32_varQ Unexecuted instantiation: CNG.c:silk_INVERSE32_varQ Unexecuted instantiation: code_signs.c:silk_INVERSE32_varQ decode_core.c:silk_INVERSE32_varQ Line | Count | Source | 147 | 1.59M | { | 148 | 1.59M | opus_int b_headrm, lshift; | 149 | 1.59M | opus_int32 b32_inv, b32_nrm, err_Q32, result; | 150 | | | 151 | 1.59M | silk_assert( b32 != 0 ); | 152 | 1.59M | silk_assert( Qres > 0 ); | 153 | | | 154 | | /* Compute number of bits head room and normalize input */ | 155 | 1.59M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 156 | 1.59M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 157 | | | 158 | | /* Inverse of b32, with 14 bits of precision */ | 159 | 1.59M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 160 | | | 161 | | /* First approximation */ | 162 | 1.59M | result = silk_LSHIFT(b32_inv, 16); /* Q: 61 - b_headrm */ | 163 | | | 164 | | /* Compute residual by subtracting product of denominator and first approximation from one */ | 165 | 1.59M | err_Q32 = silk_LSHIFT( ((opus_int32)1<<29) - silk_SMULWB(b32_nrm, b32_inv), 3 ); /* Q32 */ | 166 | | | 167 | | /* Refinement */ | 168 | 1.59M | result = silk_SMLAWW(result, err_Q32, b32_inv); /* Q: 61 - b_headrm */ | 169 | | | 170 | | /* Convert to Qres domain */ | 171 | 1.59M | lshift = 61 - b_headrm - Qres; | 172 | 1.59M | if( lshift <= 0 ) { | 173 | 145k | return silk_LSHIFT_SAT32(result, -lshift); | 174 | 1.44M | } else { | 175 | 1.44M | if( lshift < 32){ | 176 | 1.44M | return silk_RSHIFT(result, lshift); | 177 | 1.44M | }else{ | 178 | | /* Avoid undefined result */ | 179 | 0 | return 0; | 180 | 0 | } | 181 | 1.44M | } | 182 | 1.59M | } |
Unexecuted instantiation: bwexpander_32.c:silk_INVERSE32_varQ Unexecuted instantiation: table_LSF_cos.c:silk_INVERSE32_varQ Unexecuted instantiation: opus_encoder.c:silk_INVERSE32_varQ Unexecuted instantiation: enc_API.c:silk_INVERSE32_varQ Unexecuted instantiation: encode_indices.c:silk_INVERSE32_varQ Unexecuted instantiation: encode_pulses.c:silk_INVERSE32_varQ Unexecuted instantiation: HP_variable_cutoff.c:silk_INVERSE32_varQ Unexecuted instantiation: stereo_LR_to_MS.c:silk_INVERSE32_varQ Unexecuted instantiation: check_control_input.c:silk_INVERSE32_varQ Unexecuted instantiation: control_SNR.c:silk_INVERSE32_varQ Unexecuted instantiation: init_encoder.c:silk_INVERSE32_varQ Unexecuted instantiation: control_codec.c:silk_INVERSE32_varQ Unexecuted instantiation: stereo_encode_pred.c:silk_INVERSE32_varQ Unexecuted instantiation: stereo_find_predictor.c:silk_INVERSE32_varQ Unexecuted instantiation: stereo_quant_pred.c:silk_INVERSE32_varQ Unexecuted instantiation: encode_frame_FIX.c:silk_INVERSE32_varQ Unexecuted instantiation: find_pitch_lags_FIX.c:silk_INVERSE32_varQ Unexecuted instantiation: find_pred_coefs_FIX.c:silk_INVERSE32_varQ noise_shape_analysis_FIX.c:silk_INVERSE32_varQ Line | Count | Source | 147 | 568k | { | 148 | 568k | opus_int b_headrm, lshift; | 149 | 568k | opus_int32 b32_inv, b32_nrm, err_Q32, result; | 150 | | | 151 | 568k | silk_assert( b32 != 0 ); | 152 | 568k | silk_assert( Qres > 0 ); | 153 | | | 154 | | /* Compute number of bits head room and normalize input */ | 155 | 568k | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 156 | 568k | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 157 | | | 158 | | /* Inverse of b32, with 14 bits of precision */ | 159 | 568k | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 160 | | | 161 | | /* First approximation */ | 162 | 568k | result = silk_LSHIFT(b32_inv, 16); /* Q: 61 - b_headrm */ | 163 | | | 164 | | /* Compute residual by subtracting product of denominator and first approximation from one */ | 165 | 568k | err_Q32 = silk_LSHIFT( ((opus_int32)1<<29) - silk_SMULWB(b32_nrm, b32_inv), 3 ); /* Q32 */ | 166 | | | 167 | | /* Refinement */ | 168 | 568k | result = silk_SMLAWW(result, err_Q32, b32_inv); /* Q: 61 - b_headrm */ | 169 | | | 170 | | /* Convert to Qres domain */ | 171 | 568k | lshift = 61 - b_headrm - Qres; | 172 | 568k | if( lshift <= 0 ) { | 173 | 0 | return silk_LSHIFT_SAT32(result, -lshift); | 174 | 568k | } else { | 175 | 568k | if( lshift < 32){ | 176 | 568k | return silk_RSHIFT(result, lshift); | 177 | 568k | }else{ | 178 | | /* Avoid undefined result */ | 179 | 0 | return 0; | 180 | 0 | } | 181 | 568k | } | 182 | 568k | } |
Unexecuted instantiation: process_gains_FIX.c:silk_INVERSE32_varQ Unexecuted instantiation: residual_energy_FIX.c:silk_INVERSE32_varQ Unexecuted instantiation: warped_autocorrelation_FIX.c:silk_INVERSE32_varQ Unexecuted instantiation: apply_sine_window_FIX.c:silk_INVERSE32_varQ Unexecuted instantiation: autocorr_FIX.c:silk_INVERSE32_varQ Unexecuted instantiation: k2a_FIX.c:silk_INVERSE32_varQ Unexecuted instantiation: k2a_Q16_FIX.c:silk_INVERSE32_varQ Unexecuted instantiation: pitch_analysis_core_FIX.c:silk_INVERSE32_varQ Unexecuted instantiation: vector_ops_FIX.c:silk_INVERSE32_varQ Unexecuted instantiation: schur64_FIX.c:silk_INVERSE32_varQ Unexecuted instantiation: schur_FIX.c:silk_INVERSE32_varQ Unexecuted instantiation: x86_silk_map.c:silk_INVERSE32_varQ NSQ_del_dec_avx2.c:silk_INVERSE32_varQ Line | Count | Source | 147 | 2.70M | { | 148 | 2.70M | opus_int b_headrm, lshift; | 149 | 2.70M | opus_int32 b32_inv, b32_nrm, err_Q32, result; | 150 | | | 151 | 2.70M | silk_assert( b32 != 0 ); | 152 | 2.70M | silk_assert( Qres > 0 ); | 153 | | | 154 | | /* Compute number of bits head room and normalize input */ | 155 | 2.70M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 156 | 2.70M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 157 | | | 158 | | /* Inverse of b32, with 14 bits of precision */ | 159 | 2.70M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 160 | | | 161 | | /* First approximation */ | 162 | 2.70M | result = silk_LSHIFT(b32_inv, 16); /* Q: 61 - b_headrm */ | 163 | | | 164 | | /* Compute residual by subtracting product of denominator and first approximation from one */ | 165 | 2.70M | err_Q32 = silk_LSHIFT( ((opus_int32)1<<29) - silk_SMULWB(b32_nrm, b32_inv), 3 ); /* Q32 */ | 166 | | | 167 | | /* Refinement */ | 168 | 2.70M | result = silk_SMLAWW(result, err_Q32, b32_inv); /* Q: 61 - b_headrm */ | 169 | | | 170 | | /* Convert to Qres domain */ | 171 | 2.70M | lshift = 61 - b_headrm - Qres; | 172 | 2.70M | if( lshift <= 0 ) { | 173 | 154k | return silk_LSHIFT_SAT32(result, -lshift); | 174 | 2.54M | } else { | 175 | 2.54M | if( lshift < 32){ | 176 | 2.54M | return silk_RSHIFT(result, lshift); | 177 | 2.54M | }else{ | 178 | | /* Avoid undefined result */ | 179 | 0 | return 0; | 180 | 0 | } | 181 | 2.54M | } | 182 | 2.70M | } |
Unexecuted instantiation: LP_variable_cutoff.c:silk_INVERSE32_varQ NSQ.c:silk_INVERSE32_varQ Line | Count | Source | 147 | 587k | { | 148 | 587k | opus_int b_headrm, lshift; | 149 | 587k | opus_int32 b32_inv, b32_nrm, err_Q32, result; | 150 | | | 151 | 587k | silk_assert( b32 != 0 ); | 152 | 587k | silk_assert( Qres > 0 ); | 153 | | | 154 | | /* Compute number of bits head room and normalize input */ | 155 | 587k | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 156 | 587k | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 157 | | | 158 | | /* Inverse of b32, with 14 bits of precision */ | 159 | 587k | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 160 | | | 161 | | /* First approximation */ | 162 | 587k | result = silk_LSHIFT(b32_inv, 16); /* Q: 61 - b_headrm */ | 163 | | | 164 | | /* Compute residual by subtracting product of denominator and first approximation from one */ | 165 | 587k | err_Q32 = silk_LSHIFT( ((opus_int32)1<<29) - silk_SMULWB(b32_nrm, b32_inv), 3 ); /* Q32 */ | 166 | | | 167 | | /* Refinement */ | 168 | 587k | result = silk_SMLAWW(result, err_Q32, b32_inv); /* Q: 61 - b_headrm */ | 169 | | | 170 | | /* Convert to Qres domain */ | 171 | 587k | lshift = 61 - b_headrm - Qres; | 172 | 587k | if( lshift <= 0 ) { | 173 | 36.9k | return silk_LSHIFT_SAT32(result, -lshift); | 174 | 550k | } else { | 175 | 550k | if( lshift < 32){ | 176 | 550k | return silk_RSHIFT(result, lshift); | 177 | 550k | }else{ | 178 | | /* Avoid undefined result */ | 179 | 0 | return 0; | 180 | 0 | } | 181 | 550k | } | 182 | 587k | } |
NSQ_del_dec.c:silk_INVERSE32_varQ Line | Count | Source | 147 | 3.01M | { | 148 | 3.01M | opus_int b_headrm, lshift; | 149 | 3.01M | opus_int32 b32_inv, b32_nrm, err_Q32, result; | 150 | | | 151 | 3.01M | silk_assert( b32 != 0 ); | 152 | 3.01M | silk_assert( Qres > 0 ); | 153 | | | 154 | | /* Compute number of bits head room and normalize input */ | 155 | 3.01M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 156 | 3.01M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 157 | | | 158 | | /* Inverse of b32, with 14 bits of precision */ | 159 | 3.01M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 160 | | | 161 | | /* First approximation */ | 162 | 3.01M | result = silk_LSHIFT(b32_inv, 16); /* Q: 61 - b_headrm */ | 163 | | | 164 | | /* Compute residual by subtracting product of denominator and first approximation from one */ | 165 | 3.01M | err_Q32 = silk_LSHIFT( ((opus_int32)1<<29) - silk_SMULWB(b32_nrm, b32_inv), 3 ); /* Q32 */ | 166 | | | 167 | | /* Refinement */ | 168 | 3.01M | result = silk_SMLAWW(result, err_Q32, b32_inv); /* Q: 61 - b_headrm */ | 169 | | | 170 | | /* Convert to Qres domain */ | 171 | 3.01M | lshift = 61 - b_headrm - Qres; | 172 | 3.01M | if( lshift <= 0 ) { | 173 | 175k | return silk_LSHIFT_SAT32(result, -lshift); | 174 | 2.83M | } else { | 175 | 2.83M | if( lshift < 32){ | 176 | 2.83M | return silk_RSHIFT(result, lshift); | 177 | 2.83M | }else{ | 178 | | /* Avoid undefined result */ | 179 | 0 | return 0; | 180 | 0 | } | 181 | 2.83M | } | 182 | 3.01M | } |
Unexecuted instantiation: VAD.c:silk_INVERSE32_varQ Unexecuted instantiation: control_audio_bandwidth.c:silk_INVERSE32_varQ Unexecuted instantiation: quant_LTP_gains.c:silk_INVERSE32_varQ Unexecuted instantiation: VQ_WMat_EC.c:silk_INVERSE32_varQ Unexecuted instantiation: process_NLSFs.c:silk_INVERSE32_varQ Unexecuted instantiation: ana_filt_bank_1.c:silk_INVERSE32_varQ Unexecuted instantiation: biquad_alt.c:silk_INVERSE32_varQ Unexecuted instantiation: inner_prod_aligned.c:silk_INVERSE32_varQ Unexecuted instantiation: NLSF_VQ_weights_laroia.c:silk_INVERSE32_varQ Unexecuted instantiation: resampler_down2_3.c:silk_INVERSE32_varQ Unexecuted instantiation: resampler_down2.c:silk_INVERSE32_varQ Unexecuted instantiation: sigm_Q15.c:silk_INVERSE32_varQ Unexecuted instantiation: LTP_analysis_filter_FIX.c:silk_INVERSE32_varQ Unexecuted instantiation: LTP_scale_ctrl_FIX.c:silk_INVERSE32_varQ Unexecuted instantiation: find_LPC_FIX.c:silk_INVERSE32_varQ Unexecuted instantiation: find_LTP_FIX.c:silk_INVERSE32_varQ Unexecuted instantiation: burg_modified_FIX.c:silk_INVERSE32_varQ NSQ_sse4_1.c:silk_INVERSE32_varQ Line | Count | Source | 147 | 1.18M | { | 148 | 1.18M | opus_int b_headrm, lshift; | 149 | 1.18M | opus_int32 b32_inv, b32_nrm, err_Q32, result; | 150 | | | 151 | 1.18M | silk_assert( b32 != 0 ); | 152 | 1.18M | silk_assert( Qres > 0 ); | 153 | | | 154 | | /* Compute number of bits head room and normalize input */ | 155 | 1.18M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 156 | 1.18M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 157 | | | 158 | | /* Inverse of b32, with 14 bits of precision */ | 159 | 1.18M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 160 | | | 161 | | /* First approximation */ | 162 | 1.18M | result = silk_LSHIFT(b32_inv, 16); /* Q: 61 - b_headrm */ | 163 | | | 164 | | /* Compute residual by subtracting product of denominator and first approximation from one */ | 165 | 1.18M | err_Q32 = silk_LSHIFT( ((opus_int32)1<<29) - silk_SMULWB(b32_nrm, b32_inv), 3 ); /* Q32 */ | 166 | | | 167 | | /* Refinement */ | 168 | 1.18M | result = silk_SMLAWW(result, err_Q32, b32_inv); /* Q: 61 - b_headrm */ | 169 | | | 170 | | /* Convert to Qres domain */ | 171 | 1.18M | lshift = 61 - b_headrm - Qres; | 172 | 1.18M | if( lshift <= 0 ) { | 173 | 73.0k | return silk_LSHIFT_SAT32(result, -lshift); | 174 | 1.10M | } else { | 175 | 1.10M | if( lshift < 32){ | 176 | 1.10M | return silk_RSHIFT(result, lshift); | 177 | 1.10M | }else{ | 178 | | /* Avoid undefined result */ | 179 | 0 | return 0; | 180 | 0 | } | 181 | 1.10M | } | 182 | 1.18M | } |
Unexecuted instantiation: NSQ_del_dec_sse4_1.c:silk_INVERSE32_varQ Unexecuted instantiation: VAD_sse4_1.c:silk_INVERSE32_varQ Unexecuted instantiation: VQ_WMat_EC_sse4_1.c:silk_INVERSE32_varQ Unexecuted instantiation: vector_ops_FIX_sse4_1.c:silk_INVERSE32_varQ Unexecuted instantiation: burg_modified_FIX_sse4_1.c:silk_INVERSE32_varQ Unexecuted instantiation: interpolate.c:silk_INVERSE32_varQ Unexecuted instantiation: NLSF_encode.c:silk_INVERSE32_varQ Unexecuted instantiation: NLSF_VQ.c:silk_INVERSE32_varQ Unexecuted instantiation: NLSF_del_dec_quant.c:silk_INVERSE32_varQ Unexecuted instantiation: A2NLSF.c:silk_INVERSE32_varQ Unexecuted instantiation: corrMatrix_FIX.c:silk_INVERSE32_varQ Unexecuted instantiation: encode_frame_FLP.c:silk_INVERSE32_varQ Unexecuted instantiation: find_pitch_lags_FLP.c:silk_INVERSE32_varQ Unexecuted instantiation: find_pred_coefs_FLP.c:silk_INVERSE32_varQ Unexecuted instantiation: LPC_analysis_filter_FLP.c:silk_INVERSE32_varQ Unexecuted instantiation: LTP_analysis_filter_FLP.c:silk_INVERSE32_varQ Unexecuted instantiation: LTP_scale_ctrl_FLP.c:silk_INVERSE32_varQ Unexecuted instantiation: noise_shape_analysis_FLP.c:silk_INVERSE32_varQ Unexecuted instantiation: process_gains_FLP.c:silk_INVERSE32_varQ Unexecuted instantiation: residual_energy_FLP.c:silk_INVERSE32_varQ Unexecuted instantiation: warped_autocorrelation_FLP.c:silk_INVERSE32_varQ Unexecuted instantiation: wrappers_FLP.c:silk_INVERSE32_varQ Unexecuted instantiation: autocorrelation_FLP.c:silk_INVERSE32_varQ Unexecuted instantiation: bwexpander_FLP.c:silk_INVERSE32_varQ Unexecuted instantiation: energy_FLP.c:silk_INVERSE32_varQ Unexecuted instantiation: k2a_FLP.c:silk_INVERSE32_varQ Unexecuted instantiation: pitch_analysis_core_FLP.c:silk_INVERSE32_varQ Unexecuted instantiation: scale_copy_vector_FLP.c:silk_INVERSE32_varQ Unexecuted instantiation: schur_FLP.c:silk_INVERSE32_varQ Unexecuted instantiation: sort_FLP.c:silk_INVERSE32_varQ Unexecuted instantiation: apply_sine_window_FLP.c:silk_INVERSE32_varQ Unexecuted instantiation: find_LPC_FLP.c:silk_INVERSE32_varQ Unexecuted instantiation: find_LTP_FLP.c:silk_INVERSE32_varQ Unexecuted instantiation: burg_modified_FLP.c:silk_INVERSE32_varQ Unexecuted instantiation: inner_product_FLP.c:silk_INVERSE32_varQ Unexecuted instantiation: scale_vector_FLP.c:silk_INVERSE32_varQ Unexecuted instantiation: inner_product_FLP_avx2.c:silk_INVERSE32_varQ Unexecuted instantiation: corrMatrix_FLP.c:silk_INVERSE32_varQ |
183 | | |
184 | | #ifdef __cplusplus |
185 | | } |
186 | | #endif |
187 | | |
188 | | #endif /* SILK_FIX_INLINES_H */ |