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 | | |
36 | | /* count leading zeros of opus_int64 */ |
37 | | static OPUS_INLINE opus_int32 silk_CLZ64( opus_int64 in ) |
38 | 142M | { |
39 | 142M | opus_int32 in_upper; |
40 | | |
41 | 142M | in_upper = (opus_int32)silk_RSHIFT64(in, 32); |
42 | 142M | if (in_upper == 0) { |
43 | | /* Search in the lower 32 bits */ |
44 | 140M | return 32 + silk_CLZ32( (opus_int32) in ); |
45 | 140M | } else { |
46 | | /* Search in the upper 32 bits */ |
47 | 1.56M | return silk_CLZ32( in_upper ); |
48 | 1.56M | } |
49 | 142M | } 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 | 38 | 41.8M | { | 39 | 41.8M | opus_int32 in_upper; | 40 | | | 41 | 41.8M | in_upper = (opus_int32)silk_RSHIFT64(in, 32); | 42 | 41.8M | if (in_upper == 0) { | 43 | | /* Search in the lower 32 bits */ | 44 | 40.2M | return 32 + silk_CLZ32( (opus_int32) in ); | 45 | 40.2M | } else { | 46 | | /* Search in the upper 32 bits */ | 47 | 1.56M | return silk_CLZ32( in_upper ); | 48 | 1.56M | } | 49 | 41.8M | } |
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 | 38 | 50.2M | { | 39 | 50.2M | opus_int32 in_upper; | 40 | | | 41 | 50.2M | in_upper = (opus_int32)silk_RSHIFT64(in, 32); | 42 | 50.2M | if (in_upper == 0) { | 43 | | /* Search in the lower 32 bits */ | 44 | 50.2M | return 32 + silk_CLZ32( (opus_int32) in ); | 45 | 50.2M | } else { | 46 | | /* Search in the upper 32 bits */ | 47 | 2.12k | return silk_CLZ32( in_upper ); | 48 | 2.12k | } | 49 | 50.2M | } |
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 | 38 | 50.2M | { | 39 | 50.2M | opus_int32 in_upper; | 40 | | | 41 | 50.2M | in_upper = (opus_int32)silk_RSHIFT64(in, 32); | 42 | 50.2M | if (in_upper == 0) { | 43 | | /* Search in the lower 32 bits */ | 44 | 50.2M | return 32 + silk_CLZ32( (opus_int32) in ); | 45 | 50.2M | } else { | 46 | | /* Search in the upper 32 bits */ | 47 | 2.12k | return silk_CLZ32( in_upper ); | 48 | 2.12k | } | 49 | 50.2M | } |
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 |
50 | | |
51 | | /* get number of leading zeros and fractional part (the bits right after the leading one */ |
52 | | static OPUS_INLINE void silk_CLZ_FRAC( |
53 | | opus_int32 in, /* I input */ |
54 | | opus_int32 *lz, /* O number of leading zeros */ |
55 | | opus_int32 *frac_Q7 /* O the 7 bits right after the leading one */ |
56 | | ) |
57 | 3.64G | { |
58 | 3.64G | opus_int32 lzeros = silk_CLZ32(in); |
59 | | |
60 | 3.64G | * lz = lzeros; |
61 | 3.64G | * frac_Q7 = silk_ROR32(in, 24 - lzeros) & 0x7f; |
62 | 3.64G | } 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 | 57 | 10.7k | { | 58 | 10.7k | opus_int32 lzeros = silk_CLZ32(in); | 59 | | | 60 | 10.7k | * lz = lzeros; | 61 | 10.7k | * frac_Q7 = silk_ROR32(in, 24 - lzeros) & 0x7f; | 62 | 10.7k | } |
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 | 57 | 3.30G | { | 58 | 3.30G | opus_int32 lzeros = silk_CLZ32(in); | 59 | | | 60 | 3.30G | * lz = lzeros; | 61 | 3.30G | * frac_Q7 = silk_ROR32(in, 24 - lzeros) & 0x7f; | 62 | 3.30G | } |
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 | 57 | 62.1k | { | 58 | 62.1k | opus_int32 lzeros = silk_CLZ32(in); | 59 | | | 60 | 62.1k | * lz = lzeros; | 61 | 62.1k | * frac_Q7 = silk_ROR32(in, 24 - lzeros) & 0x7f; | 62 | 62.1k | } |
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 | 57 | 38.8M | { | 58 | 38.8M | opus_int32 lzeros = silk_CLZ32(in); | 59 | | | 60 | 38.8M | * lz = lzeros; | 61 | 38.8M | * frac_Q7 = silk_ROR32(in, 24 - lzeros) & 0x7f; | 62 | 38.8M | } |
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 | 57 | 145M | { | 58 | 145M | opus_int32 lzeros = silk_CLZ32(in); | 59 | | | 60 | 145M | * lz = lzeros; | 61 | 145M | * frac_Q7 = silk_ROR32(in, 24 - lzeros) & 0x7f; | 62 | 145M | } |
process_gains_FIX.c:silk_CLZ_FRAC Line | Count | Source | 57 | 145M | { | 58 | 145M | opus_int32 lzeros = silk_CLZ32(in); | 59 | | | 60 | 145M | * lz = lzeros; | 61 | 145M | * frac_Q7 = silk_ROR32(in, 24 - lzeros) & 0x7f; | 62 | 145M | } |
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 | 57 | 2.71M | { | 58 | 2.71M | opus_int32 lzeros = silk_CLZ32(in); | 59 | | | 60 | 2.71M | * lz = lzeros; | 61 | 2.71M | * frac_Q7 = silk_ROR32(in, 24 - lzeros) & 0x7f; | 62 | 2.71M | } |
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 | 57 | 1.81M | { | 58 | 1.81M | opus_int32 lzeros = silk_CLZ32(in); | 59 | | | 60 | 1.81M | * lz = lzeros; | 61 | 1.81M | * frac_Q7 = silk_ROR32(in, 24 - lzeros) & 0x7f; | 62 | 1.81M | } |
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 | 57 | 7.21M | { | 58 | 7.21M | opus_int32 lzeros = silk_CLZ32(in); | 59 | | | 60 | 7.21M | * lz = lzeros; | 61 | 7.21M | * frac_Q7 = silk_ROR32(in, 24 - lzeros) & 0x7f; | 62 | 7.21M | } |
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 | 57 | 1.81M | { | 58 | 1.81M | opus_int32 lzeros = silk_CLZ32(in); | 59 | | | 60 | 1.81M | * lz = lzeros; | 61 | 1.81M | * frac_Q7 = silk_ROR32(in, 24 - lzeros) & 0x7f; | 62 | 1.81M | } |
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 |
63 | | |
64 | | /* Approximation of square root */ |
65 | | /* Accuracy: < +/- 10% for output values > 15 */ |
66 | | /* < +/- 2.5% for output values > 120 */ |
67 | | static OPUS_INLINE opus_int32 silk_SQRT_APPROX( opus_int32 x ) |
68 | 529M | { |
69 | 529M | opus_int32 y, lz, frac_Q7; |
70 | | |
71 | 529M | if( x <= 0 ) { |
72 | 185M | return 0; |
73 | 185M | } |
74 | | |
75 | 343M | silk_CLZ_FRAC(x, &lz, &frac_Q7); |
76 | | |
77 | 343M | if( lz & 1 ) { |
78 | 317M | y = 32768; |
79 | 317M | } else { |
80 | 26.1M | y = 46214; /* 46214 = sqrt(2) * 32768 */ |
81 | 26.1M | } |
82 | | |
83 | | /* get scaling right */ |
84 | 343M | y >>= silk_RSHIFT(lz, 1); |
85 | | |
86 | | /* increment using fractional part of input */ |
87 | 343M | y = silk_SMLAWB(y, y, silk_SMULBB(213, frac_Q7)); |
88 | | |
89 | 343M | return y; |
90 | 529M | } 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 | 68 | 18.3k | { | 69 | 18.3k | opus_int32 y, lz, frac_Q7; | 70 | | | 71 | 18.3k | if( x <= 0 ) { | 72 | 7.52k | return 0; | 73 | 7.52k | } | 74 | | | 75 | 10.7k | silk_CLZ_FRAC(x, &lz, &frac_Q7); | 76 | | | 77 | 10.7k | if( lz & 1 ) { | 78 | 3.94k | y = 32768; | 79 | 6.84k | } else { | 80 | 6.84k | y = 46214; /* 46214 = sqrt(2) * 32768 */ | 81 | 6.84k | } | 82 | | | 83 | | /* get scaling right */ | 84 | 10.7k | y >>= silk_RSHIFT(lz, 1); | 85 | | | 86 | | /* increment using fractional part of input */ | 87 | 10.7k | y = silk_SMLAWB(y, y, silk_SMULBB(213, frac_Q7)); | 88 | | | 89 | 10.7k | return y; | 90 | 18.3k | } |
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 | 68 | 221k | { | 69 | 221k | opus_int32 y, lz, frac_Q7; | 70 | | | 71 | 221k | if( x <= 0 ) { | 72 | 158k | return 0; | 73 | 158k | } | 74 | | | 75 | 62.1k | silk_CLZ_FRAC(x, &lz, &frac_Q7); | 76 | | | 77 | 62.1k | if( lz & 1 ) { | 78 | 31.1k | y = 32768; | 79 | 31.1k | } else { | 80 | 31.0k | y = 46214; /* 46214 = sqrt(2) * 32768 */ | 81 | 31.0k | } | 82 | | | 83 | | /* get scaling right */ | 84 | 62.1k | y >>= silk_RSHIFT(lz, 1); | 85 | | | 86 | | /* increment using fractional part of input */ | 87 | 62.1k | y = silk_SMLAWB(y, y, silk_SMULBB(213, frac_Q7)); | 88 | | | 89 | 62.1k | return y; | 90 | 221k | } |
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 | 68 | 75.9M | { | 69 | 75.9M | opus_int32 y, lz, frac_Q7; | 70 | | | 71 | 75.9M | if( x <= 0 ) { | 72 | 37.0M | return 0; | 73 | 37.0M | } | 74 | | | 75 | 38.8M | silk_CLZ_FRAC(x, &lz, &frac_Q7); | 76 | | | 77 | 38.8M | if( lz & 1 ) { | 78 | 37.9M | y = 32768; | 79 | 37.9M | } else { | 80 | 977k | y = 46214; /* 46214 = sqrt(2) * 32768 */ | 81 | 977k | } | 82 | | | 83 | | /* get scaling right */ | 84 | 38.8M | y >>= silk_RSHIFT(lz, 1); | 85 | | | 86 | | /* increment using fractional part of input */ | 87 | 38.8M | y = silk_SMLAWB(y, y, silk_SMULBB(213, frac_Q7)); | 88 | | | 89 | 38.8M | return y; | 90 | 75.9M | } |
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 | 68 | 145M | { | 69 | 145M | opus_int32 y, lz, frac_Q7; | 70 | | | 71 | 145M | if( x <= 0 ) { | 72 | 0 | return 0; | 73 | 0 | } | 74 | | | 75 | 145M | silk_CLZ_FRAC(x, &lz, &frac_Q7); | 76 | | | 77 | 145M | if( lz & 1 ) { | 78 | 140M | y = 32768; | 79 | 140M | } else { | 80 | 5.06M | y = 46214; /* 46214 = sqrt(2) * 32768 */ | 81 | 5.06M | } | 82 | | | 83 | | /* get scaling right */ | 84 | 145M | y >>= silk_RSHIFT(lz, 1); | 85 | | | 86 | | /* increment using fractional part of input */ | 87 | 145M | y = silk_SMLAWB(y, y, silk_SMULBB(213, frac_Q7)); | 88 | | | 89 | 145M | return y; | 90 | 145M | } |
process_gains_FIX.c:silk_SQRT_APPROX Line | Count | Source | 68 | 145M | { | 69 | 145M | opus_int32 y, lz, frac_Q7; | 70 | | | 71 | 145M | if( x <= 0 ) { | 72 | 0 | return 0; | 73 | 0 | } | 74 | | | 75 | 145M | silk_CLZ_FRAC(x, &lz, &frac_Q7); | 76 | | | 77 | 145M | if( lz & 1 ) { | 78 | 134M | y = 32768; | 79 | 134M | } else { | 80 | 11.1M | y = 46214; /* 46214 = sqrt(2) * 32768 */ | 81 | 11.1M | } | 82 | | | 83 | | /* get scaling right */ | 84 | 145M | y >>= silk_RSHIFT(lz, 1); | 85 | | | 86 | | /* increment using fractional part of input */ | 87 | 145M | y = silk_SMLAWB(y, y, silk_SMULBB(213, frac_Q7)); | 88 | | | 89 | 145M | return y; | 90 | 145M | } |
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 | 68 | 44.9M | { | 69 | 44.9M | opus_int32 y, lz, frac_Q7; | 70 | | | 71 | 44.9M | if( x <= 0 ) { | 72 | 42.2M | return 0; | 73 | 42.2M | } | 74 | | | 75 | 2.71M | silk_CLZ_FRAC(x, &lz, &frac_Q7); | 76 | | | 77 | 2.71M | if( lz & 1 ) { | 78 | 1.27M | y = 32768; | 79 | 1.44M | } else { | 80 | 1.44M | y = 46214; /* 46214 = sqrt(2) * 32768 */ | 81 | 1.44M | } | 82 | | | 83 | | /* get scaling right */ | 84 | 2.71M | y >>= silk_RSHIFT(lz, 1); | 85 | | | 86 | | /* increment using fractional part of input */ | 87 | 2.71M | y = silk_SMLAWB(y, y, silk_SMULBB(213, frac_Q7)); | 88 | | | 89 | 2.71M | return y; | 90 | 44.9M | } |
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 | 68 | 1.81M | { | 69 | 1.81M | opus_int32 y, lz, frac_Q7; | 70 | | | 71 | 1.81M | if( x <= 0 ) { | 72 | 0 | return 0; | 73 | 0 | } | 74 | | | 75 | 1.81M | silk_CLZ_FRAC(x, &lz, &frac_Q7); | 76 | | | 77 | 1.81M | if( lz & 1 ) { | 78 | 19.2k | y = 32768; | 79 | 1.79M | } else { | 80 | 1.79M | y = 46214; /* 46214 = sqrt(2) * 32768 */ | 81 | 1.79M | } | 82 | | | 83 | | /* get scaling right */ | 84 | 1.81M | y >>= silk_RSHIFT(lz, 1); | 85 | | | 86 | | /* increment using fractional part of input */ | 87 | 1.81M | y = silk_SMLAWB(y, y, silk_SMULBB(213, frac_Q7)); | 88 | | | 89 | 1.81M | return y; | 90 | 1.81M | } |
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 | 68 | 113M | { | 69 | 113M | opus_int32 y, lz, frac_Q7; | 70 | | | 71 | 113M | if( x <= 0 ) { | 72 | 106M | return 0; | 73 | 106M | } | 74 | | | 75 | 7.21M | silk_CLZ_FRAC(x, &lz, &frac_Q7); | 76 | | | 77 | 7.21M | if( lz & 1 ) { | 78 | 3.34M | y = 32768; | 79 | 3.86M | } else { | 80 | 3.86M | y = 46214; /* 46214 = sqrt(2) * 32768 */ | 81 | 3.86M | } | 82 | | | 83 | | /* get scaling right */ | 84 | 7.21M | y >>= silk_RSHIFT(lz, 1); | 85 | | | 86 | | /* increment using fractional part of input */ | 87 | 7.21M | y = silk_SMLAWB(y, y, silk_SMULBB(213, frac_Q7)); | 88 | | | 89 | 7.21M | return y; | 90 | 113M | } |
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 | 68 | 1.81M | { | 69 | 1.81M | opus_int32 y, lz, frac_Q7; | 70 | | | 71 | 1.81M | if( x <= 0 ) { | 72 | 0 | return 0; | 73 | 0 | } | 74 | | | 75 | 1.81M | silk_CLZ_FRAC(x, &lz, &frac_Q7); | 76 | | | 77 | 1.81M | if( lz & 1 ) { | 78 | 19.2k | y = 32768; | 79 | 1.79M | } else { | 80 | 1.79M | y = 46214; /* 46214 = sqrt(2) * 32768 */ | 81 | 1.79M | } | 82 | | | 83 | | /* get scaling right */ | 84 | 1.81M | y >>= silk_RSHIFT(lz, 1); | 85 | | | 86 | | /* increment using fractional part of input */ | 87 | 1.81M | y = silk_SMLAWB(y, y, silk_SMULBB(213, frac_Q7)); | 88 | | | 89 | 1.81M | return y; | 90 | 1.81M | } |
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 |
91 | | |
92 | | /* Divide two int32 values and return result as int32 in a given Q-domain */ |
93 | | static OPUS_INLINE opus_int32 silk_DIV32_varQ( /* O returns a good approximation of "(a32 << Qres) / b32" */ |
94 | | const opus_int32 a32, /* I numerator (Q0) */ |
95 | | const opus_int32 b32, /* I denominator (Q0) */ |
96 | | const opus_int Qres /* I Q-domain of result (>= 0) */ |
97 | | ) |
98 | 9.34G | { |
99 | 9.34G | opus_int a_headrm, b_headrm, lshift; |
100 | 9.34G | opus_int32 b32_inv, a32_nrm, b32_nrm, result; |
101 | | |
102 | 9.34G | silk_assert( b32 != 0 ); |
103 | 9.34G | silk_assert( Qres >= 0 ); |
104 | | |
105 | | /* Compute number of bits head room and normalize inputs */ |
106 | 9.34G | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; |
107 | 9.34G | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ |
108 | 9.34G | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; |
109 | 9.34G | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ |
110 | | |
111 | | /* Inverse of b32, with 14 bits of precision */ |
112 | 9.34G | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ |
113 | | |
114 | | /* First approximation */ |
115 | 9.34G | result = silk_SMULWB(a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ |
116 | | |
117 | | /* Compute residual by subtracting product of denominator and first approximation */ |
118 | | /* It's OK to overflow because the final value of a32_nrm should always be small */ |
119 | 9.34G | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ |
120 | | |
121 | | /* Refinement */ |
122 | 9.34G | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ |
123 | | |
124 | | /* Convert to Qres domain */ |
125 | 9.34G | lshift = 29 + a_headrm - b_headrm - Qres; |
126 | 9.34G | if( lshift < 0 ) { |
127 | 759M | return silk_LSHIFT_SAT32(result, -lshift); |
128 | 8.58G | } else { |
129 | 8.58G | if( lshift < 32){ |
130 | 8.58G | return silk_RSHIFT(result, lshift); |
131 | 8.58G | } else { |
132 | | /* Avoid undefined result */ |
133 | 2.61M | return 0; |
134 | 2.61M | } |
135 | 8.58G | } |
136 | 9.34G | } 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 | 98 | 891k | { | 99 | 891k | opus_int a_headrm, b_headrm, lshift; | 100 | 891k | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 101 | | | 102 | 891k | silk_assert( b32 != 0 ); | 103 | 891k | silk_assert( Qres >= 0 ); | 104 | | | 105 | | /* Compute number of bits head room and normalize inputs */ | 106 | 891k | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 107 | 891k | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 108 | 891k | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 109 | 891k | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 110 | | | 111 | | /* Inverse of b32, with 14 bits of precision */ | 112 | 891k | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 113 | | | 114 | | /* First approximation */ | 115 | 891k | result = silk_SMULWB(a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 116 | | | 117 | | /* Compute residual by subtracting product of denominator and first approximation */ | 118 | | /* It's OK to overflow because the final value of a32_nrm should always be small */ | 119 | 891k | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 120 | | | 121 | | /* Refinement */ | 122 | 891k | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 123 | | | 124 | | /* Convert to Qres domain */ | 125 | 891k | lshift = 29 + a_headrm - b_headrm - Qres; | 126 | 891k | if( lshift < 0 ) { | 127 | 815 | return silk_LSHIFT_SAT32(result, -lshift); | 128 | 891k | } else { | 129 | 891k | if( lshift < 32){ | 130 | 891k | return silk_RSHIFT(result, lshift); | 131 | 891k | } else { | 132 | | /* Avoid undefined result */ | 133 | 0 | return 0; | 134 | 0 | } | 135 | 891k | } | 136 | 891k | } |
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 | 98 | 19.0M | { | 99 | 19.0M | opus_int a_headrm, b_headrm, lshift; | 100 | 19.0M | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 101 | | | 102 | 19.0M | silk_assert( b32 != 0 ); | 103 | 19.0M | silk_assert( Qres >= 0 ); | 104 | | | 105 | | /* Compute number of bits head room and normalize inputs */ | 106 | 19.0M | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 107 | 19.0M | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 108 | 19.0M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 109 | 19.0M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 110 | | | 111 | | /* Inverse of b32, with 14 bits of precision */ | 112 | 19.0M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 113 | | | 114 | | /* First approximation */ | 115 | 19.0M | result = silk_SMULWB(a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 116 | | | 117 | | /* Compute residual by subtracting product of denominator and first approximation */ | 118 | | /* It's OK to overflow because the final value of a32_nrm should always be small */ | 119 | 19.0M | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 120 | | | 121 | | /* Refinement */ | 122 | 19.0M | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 123 | | | 124 | | /* Convert to Qres domain */ | 125 | 19.0M | lshift = 29 + a_headrm - b_headrm - Qres; | 126 | 19.0M | if( lshift < 0 ) { | 127 | 0 | return silk_LSHIFT_SAT32(result, -lshift); | 128 | 19.0M | } else { | 129 | 19.0M | if( lshift < 32){ | 130 | 19.0M | return silk_RSHIFT(result, lshift); | 131 | 19.0M | } else { | 132 | | /* Avoid undefined result */ | 133 | 0 | return 0; | 134 | 0 | } | 135 | 19.0M | } | 136 | 19.0M | } |
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 | 98 | 75.9M | { | 99 | 75.9M | opus_int a_headrm, b_headrm, lshift; | 100 | 75.9M | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 101 | | | 102 | 75.9M | silk_assert( b32 != 0 ); | 103 | 75.9M | silk_assert( Qres >= 0 ); | 104 | | | 105 | | /* Compute number of bits head room and normalize inputs */ | 106 | 75.9M | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 107 | 75.9M | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 108 | 75.9M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 109 | 75.9M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 110 | | | 111 | | /* Inverse of b32, with 14 bits of precision */ | 112 | 75.9M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 113 | | | 114 | | /* First approximation */ | 115 | 75.9M | result = silk_SMULWB(a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 116 | | | 117 | | /* Compute residual by subtracting product of denominator and first approximation */ | 118 | | /* It's OK to overflow because the final value of a32_nrm should always be small */ | 119 | 75.9M | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 120 | | | 121 | | /* Refinement */ | 122 | 75.9M | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 123 | | | 124 | | /* Convert to Qres domain */ | 125 | 75.9M | lshift = 29 + a_headrm - b_headrm - Qres; | 126 | 75.9M | if( lshift < 0 ) { | 127 | 236 | return silk_LSHIFT_SAT32(result, -lshift); | 128 | 75.9M | } else { | 129 | 75.9M | if( lshift < 32){ | 130 | 75.9M | return silk_RSHIFT(result, lshift); | 131 | 75.9M | } else { | 132 | | /* Avoid undefined result */ | 133 | 37.8k | return 0; | 134 | 37.8k | } | 135 | 75.9M | } | 136 | 75.9M | } |
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 | 98 | 43.3M | { | 99 | 43.3M | opus_int a_headrm, b_headrm, lshift; | 100 | 43.3M | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 101 | | | 102 | 43.3M | silk_assert( b32 != 0 ); | 103 | 43.3M | silk_assert( Qres >= 0 ); | 104 | | | 105 | | /* Compute number of bits head room and normalize inputs */ | 106 | 43.3M | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 107 | 43.3M | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 108 | 43.3M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 109 | 43.3M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 110 | | | 111 | | /* Inverse of b32, with 14 bits of precision */ | 112 | 43.3M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 113 | | | 114 | | /* First approximation */ | 115 | 43.3M | result = silk_SMULWB(a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 116 | | | 117 | | /* Compute residual by subtracting product of denominator and first approximation */ | 118 | | /* It's OK to overflow because the final value of a32_nrm should always be small */ | 119 | 43.3M | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 120 | | | 121 | | /* Refinement */ | 122 | 43.3M | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 123 | | | 124 | | /* Convert to Qres domain */ | 125 | 43.3M | lshift = 29 + a_headrm - b_headrm - Qres; | 126 | 43.3M | if( lshift < 0 ) { | 127 | 0 | return silk_LSHIFT_SAT32(result, -lshift); | 128 | 43.3M | } else { | 129 | 43.3M | if( lshift < 32){ | 130 | 43.3M | return silk_RSHIFT(result, lshift); | 131 | 43.3M | } else { | 132 | | /* Avoid undefined result */ | 133 | 0 | return 0; | 134 | 0 | } | 135 | 43.3M | } | 136 | 43.3M | } |
find_pred_coefs_FIX.c:silk_DIV32_varQ Line | Count | Source | 98 | 178M | { | 99 | 178M | opus_int a_headrm, b_headrm, lshift; | 100 | 178M | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 101 | | | 102 | 178M | silk_assert( b32 != 0 ); | 103 | 178M | silk_assert( Qres >= 0 ); | 104 | | | 105 | | /* Compute number of bits head room and normalize inputs */ | 106 | 178M | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 107 | 178M | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 108 | 178M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 109 | 178M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 110 | | | 111 | | /* Inverse of b32, with 14 bits of precision */ | 112 | 178M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 113 | | | 114 | | /* First approximation */ | 115 | 178M | result = silk_SMULWB(a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 116 | | | 117 | | /* Compute residual by subtracting product of denominator and first approximation */ | 118 | | /* It's OK to overflow because the final value of a32_nrm should always be small */ | 119 | 178M | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 120 | | | 121 | | /* Refinement */ | 122 | 178M | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 123 | | | 124 | | /* Convert to Qres domain */ | 125 | 178M | lshift = 29 + a_headrm - b_headrm - Qres; | 126 | 178M | if( lshift < 0 ) { | 127 | 0 | return silk_LSHIFT_SAT32(result, -lshift); | 128 | 178M | } else { | 129 | 178M | if( lshift < 32){ | 130 | 178M | return silk_RSHIFT(result, lshift); | 131 | 178M | } else { | 132 | | /* Avoid undefined result */ | 133 | 0 | return 0; | 134 | 0 | } | 135 | 178M | } | 136 | 178M | } |
noise_shape_analysis_FIX.c:silk_DIV32_varQ Line | Count | Source | 98 | 85.1M | { | 99 | 85.1M | opus_int a_headrm, b_headrm, lshift; | 100 | 85.1M | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 101 | | | 102 | 85.1M | silk_assert( b32 != 0 ); | 103 | 85.1M | silk_assert( Qres >= 0 ); | 104 | | | 105 | | /* Compute number of bits head room and normalize inputs */ | 106 | 85.1M | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 107 | 85.1M | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 108 | 85.1M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 109 | 85.1M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 110 | | | 111 | | /* Inverse of b32, with 14 bits of precision */ | 112 | 85.1M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 113 | | | 114 | | /* First approximation */ | 115 | 85.1M | result = silk_SMULWB(a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 116 | | | 117 | | /* Compute residual by subtracting product of denominator and first approximation */ | 118 | | /* It's OK to overflow because the final value of a32_nrm should always be small */ | 119 | 85.1M | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 120 | | | 121 | | /* Refinement */ | 122 | 85.1M | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 123 | | | 124 | | /* Convert to Qres domain */ | 125 | 85.1M | lshift = 29 + a_headrm - b_headrm - Qres; | 126 | 85.1M | if( lshift < 0 ) { | 127 | 0 | return silk_LSHIFT_SAT32(result, -lshift); | 128 | 85.1M | } else { | 129 | 85.1M | if( lshift < 32){ | 130 | 85.1M | return silk_RSHIFT(result, lshift); | 131 | 85.1M | } else { | 132 | | /* Avoid undefined result */ | 133 | 14 | return 0; | 134 | 14 | } | 135 | 85.1M | } | 136 | 85.1M | } |
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 | 98 | 103M | { | 99 | 103M | opus_int a_headrm, b_headrm, lshift; | 100 | 103M | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 101 | | | 102 | 103M | silk_assert( b32 != 0 ); | 103 | 103M | silk_assert( Qres >= 0 ); | 104 | | | 105 | | /* Compute number of bits head room and normalize inputs */ | 106 | 103M | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 107 | 103M | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 108 | 103M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 109 | 103M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 110 | | | 111 | | /* Inverse of b32, with 14 bits of precision */ | 112 | 103M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 113 | | | 114 | | /* First approximation */ | 115 | 103M | result = silk_SMULWB(a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 116 | | | 117 | | /* Compute residual by subtracting product of denominator and first approximation */ | 118 | | /* It's OK to overflow because the final value of a32_nrm should always be small */ | 119 | 103M | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 120 | | | 121 | | /* Refinement */ | 122 | 103M | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 123 | | | 124 | | /* Convert to Qres domain */ | 125 | 103M | lshift = 29 + a_headrm - b_headrm - Qres; | 126 | 103M | if( lshift < 0 ) { | 127 | 0 | return silk_LSHIFT_SAT32(result, -lshift); | 128 | 103M | } else { | 129 | 103M | if( lshift < 32){ | 130 | 100M | return silk_RSHIFT(result, lshift); | 131 | 100M | } else { | 132 | | /* Avoid undefined result */ | 133 | 2.57M | return 0; | 134 | 2.57M | } | 135 | 103M | } | 136 | 103M | } |
Unexecuted instantiation: vector_ops_FIX.c:silk_DIV32_varQ schur64_FIX.c:silk_DIV32_varQ Line | Count | Source | 98 | 2.10G | { | 99 | 2.10G | opus_int a_headrm, b_headrm, lshift; | 100 | 2.10G | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 101 | | | 102 | 2.10G | silk_assert( b32 != 0 ); | 103 | 2.10G | silk_assert( Qres >= 0 ); | 104 | | | 105 | | /* Compute number of bits head room and normalize inputs */ | 106 | 2.10G | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 107 | 2.10G | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 108 | 2.10G | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 109 | 2.10G | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 110 | | | 111 | | /* Inverse of b32, with 14 bits of precision */ | 112 | 2.10G | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 113 | | | 114 | | /* First approximation */ | 115 | 2.10G | result = silk_SMULWB(a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 116 | | | 117 | | /* Compute residual by subtracting product of denominator and first approximation */ | 118 | | /* It's OK to overflow because the final value of a32_nrm should always be small */ | 119 | 2.10G | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 120 | | | 121 | | /* Refinement */ | 122 | 2.10G | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 123 | | | 124 | | /* Convert to Qres domain */ | 125 | 2.10G | lshift = 29 + a_headrm - b_headrm - Qres; | 126 | 2.10G | if( lshift < 0 ) { | 127 | 751M | return silk_LSHIFT_SAT32(result, -lshift); | 128 | 1.35G | } else { | 129 | 1.35G | if( lshift < 32){ | 130 | 1.35G | return silk_RSHIFT(result, lshift); | 131 | 1.35G | } else { | 132 | | /* Avoid undefined result */ | 133 | 0 | return 0; | 134 | 0 | } | 135 | 1.35G | } | 136 | 2.10G | } |
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 | 98 | 6.48M | { | 99 | 6.48M | opus_int a_headrm, b_headrm, lshift; | 100 | 6.48M | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 101 | | | 102 | 6.48M | silk_assert( b32 != 0 ); | 103 | 6.48M | silk_assert( Qres >= 0 ); | 104 | | | 105 | | /* Compute number of bits head room and normalize inputs */ | 106 | 6.48M | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 107 | 6.48M | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 108 | 6.48M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 109 | 6.48M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 110 | | | 111 | | /* Inverse of b32, with 14 bits of precision */ | 112 | 6.48M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 113 | | | 114 | | /* First approximation */ | 115 | 6.48M | result = silk_SMULWB(a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 116 | | | 117 | | /* Compute residual by subtracting product of denominator and first approximation */ | 118 | | /* It's OK to overflow because the final value of a32_nrm should always be small */ | 119 | 6.48M | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 120 | | | 121 | | /* Refinement */ | 122 | 6.48M | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 123 | | | 124 | | /* Convert to Qres domain */ | 125 | 6.48M | lshift = 29 + a_headrm - b_headrm - Qres; | 126 | 6.48M | if( lshift < 0 ) { | 127 | 11 | return silk_LSHIFT_SAT32(result, -lshift); | 128 | 6.48M | } else { | 129 | 6.48M | if( lshift < 32){ | 130 | 6.48M | return silk_RSHIFT(result, lshift); | 131 | 6.48M | } else { | 132 | | /* Avoid undefined result */ | 133 | 0 | return 0; | 134 | 0 | } | 135 | 6.48M | } | 136 | 6.48M | } |
Unexecuted instantiation: LP_variable_cutoff.c:silk_DIV32_varQ Line | Count | Source | 98 | 3.95M | { | 99 | 3.95M | opus_int a_headrm, b_headrm, lshift; | 100 | 3.95M | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 101 | | | 102 | 3.95M | silk_assert( b32 != 0 ); | 103 | 3.95M | silk_assert( Qres >= 0 ); | 104 | | | 105 | | /* Compute number of bits head room and normalize inputs */ | 106 | 3.95M | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 107 | 3.95M | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 108 | 3.95M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 109 | 3.95M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 110 | | | 111 | | /* Inverse of b32, with 14 bits of precision */ | 112 | 3.95M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 113 | | | 114 | | /* First approximation */ | 115 | 3.95M | result = silk_SMULWB(a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 116 | | | 117 | | /* Compute residual by subtracting product of denominator and first approximation */ | 118 | | /* It's OK to overflow because the final value of a32_nrm should always be small */ | 119 | 3.95M | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 120 | | | 121 | | /* Refinement */ | 122 | 3.95M | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 123 | | | 124 | | /* Convert to Qres domain */ | 125 | 3.95M | lshift = 29 + a_headrm - b_headrm - Qres; | 126 | 3.95M | if( lshift < 0 ) { | 127 | 51 | return silk_LSHIFT_SAT32(result, -lshift); | 128 | 3.95M | } else { | 129 | 3.95M | if( lshift < 32){ | 130 | 3.95M | return silk_RSHIFT(result, lshift); | 131 | 3.95M | } else { | 132 | | /* Avoid undefined result */ | 133 | 0 | return 0; | 134 | 0 | } | 135 | 3.95M | } | 136 | 3.95M | } |
NSQ_del_dec.c:silk_DIV32_varQ Line | Count | Source | 98 | 9.54M | { | 99 | 9.54M | opus_int a_headrm, b_headrm, lshift; | 100 | 9.54M | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 101 | | | 102 | 9.54M | silk_assert( b32 != 0 ); | 103 | 9.54M | silk_assert( Qres >= 0 ); | 104 | | | 105 | | /* Compute number of bits head room and normalize inputs */ | 106 | 9.54M | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 107 | 9.54M | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 108 | 9.54M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 109 | 9.54M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 110 | | | 111 | | /* Inverse of b32, with 14 bits of precision */ | 112 | 9.54M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 113 | | | 114 | | /* First approximation */ | 115 | 9.54M | result = silk_SMULWB(a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 116 | | | 117 | | /* Compute residual by subtracting product of denominator and first approximation */ | 118 | | /* It's OK to overflow because the final value of a32_nrm should always be small */ | 119 | 9.54M | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 120 | | | 121 | | /* Refinement */ | 122 | 9.54M | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 123 | | | 124 | | /* Convert to Qres domain */ | 125 | 9.54M | lshift = 29 + a_headrm - b_headrm - Qres; | 126 | 9.54M | if( lshift < 0 ) { | 127 | 225 | return silk_LSHIFT_SAT32(result, -lshift); | 128 | 9.54M | } else { | 129 | 9.54M | if( lshift < 32){ | 130 | 9.54M | return silk_RSHIFT(result, lshift); | 131 | 9.54M | } else { | 132 | | /* Avoid undefined result */ | 133 | 0 | return 0; | 134 | 0 | } | 135 | 9.54M | } | 136 | 9.54M | } |
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 | 98 | 515M | { | 99 | 515M | opus_int a_headrm, b_headrm, lshift; | 100 | 515M | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 101 | | | 102 | 515M | silk_assert( b32 != 0 ); | 103 | 515M | silk_assert( Qres >= 0 ); | 104 | | | 105 | | /* Compute number of bits head room and normalize inputs */ | 106 | 515M | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 107 | 515M | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 108 | 515M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 109 | 515M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 110 | | | 111 | | /* Inverse of b32, with 14 bits of precision */ | 112 | 515M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 113 | | | 114 | | /* First approximation */ | 115 | 515M | result = silk_SMULWB(a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 116 | | | 117 | | /* Compute residual by subtracting product of denominator and first approximation */ | 118 | | /* It's OK to overflow because the final value of a32_nrm should always be small */ | 119 | 515M | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 120 | | | 121 | | /* Refinement */ | 122 | 515M | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 123 | | | 124 | | /* Convert to Qres domain */ | 125 | 515M | lshift = 29 + a_headrm - b_headrm - Qres; | 126 | 515M | if( lshift < 0 ) { | 127 | 3.75M | return silk_LSHIFT_SAT32(result, -lshift); | 128 | 512M | } else { | 129 | 512M | if( lshift < 32){ | 130 | 512M | return silk_RSHIFT(result, lshift); | 131 | 512M | } else { | 132 | | /* Avoid undefined result */ | 133 | 0 | return 0; | 134 | 0 | } | 135 | 512M | } | 136 | 515M | } |
NSQ_sse4_1.c:silk_DIV32_varQ Line | Count | Source | 98 | 9.50M | { | 99 | 9.50M | opus_int a_headrm, b_headrm, lshift; | 100 | 9.50M | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 101 | | | 102 | 9.50M | silk_assert( b32 != 0 ); | 103 | 9.50M | silk_assert( Qres >= 0 ); | 104 | | | 105 | | /* Compute number of bits head room and normalize inputs */ | 106 | 9.50M | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 107 | 9.50M | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 108 | 9.50M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 109 | 9.50M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 110 | | | 111 | | /* Inverse of b32, with 14 bits of precision */ | 112 | 9.50M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 113 | | | 114 | | /* First approximation */ | 115 | 9.50M | result = silk_SMULWB(a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 116 | | | 117 | | /* Compute residual by subtracting product of denominator and first approximation */ | 118 | | /* It's OK to overflow because the final value of a32_nrm should always be small */ | 119 | 9.50M | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 120 | | | 121 | | /* Refinement */ | 122 | 9.50M | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 123 | | | 124 | | /* Convert to Qres domain */ | 125 | 9.50M | lshift = 29 + a_headrm - b_headrm - Qres; | 126 | 9.50M | if( lshift < 0 ) { | 127 | 108 | return silk_LSHIFT_SAT32(result, -lshift); | 128 | 9.50M | } else { | 129 | 9.50M | if( lshift < 32){ | 130 | 9.50M | return silk_RSHIFT(result, lshift); | 131 | 9.50M | } else { | 132 | | /* Avoid undefined result */ | 133 | 0 | return 0; | 134 | 0 | } | 135 | 9.50M | } | 136 | 9.50M | } |
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 | 98 | 515M | { | 99 | 515M | opus_int a_headrm, b_headrm, lshift; | 100 | 515M | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 101 | | | 102 | 515M | silk_assert( b32 != 0 ); | 103 | 515M | silk_assert( Qres >= 0 ); | 104 | | | 105 | | /* Compute number of bits head room and normalize inputs */ | 106 | 515M | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 107 | 515M | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 108 | 515M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 109 | 515M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 110 | | | 111 | | /* Inverse of b32, with 14 bits of precision */ | 112 | 515M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 113 | | | 114 | | /* First approximation */ | 115 | 515M | result = silk_SMULWB(a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 116 | | | 117 | | /* Compute residual by subtracting product of denominator and first approximation */ | 118 | | /* It's OK to overflow because the final value of a32_nrm should always be small */ | 119 | 515M | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 120 | | | 121 | | /* Refinement */ | 122 | 515M | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 123 | | | 124 | | /* Convert to Qres domain */ | 125 | 515M | lshift = 29 + a_headrm - b_headrm - Qres; | 126 | 515M | if( lshift < 0 ) { | 127 | 3.75M | return silk_LSHIFT_SAT32(result, -lshift); | 128 | 512M | } else { | 129 | 512M | if( lshift < 32){ | 130 | 512M | return silk_RSHIFT(result, lshift); | 131 | 512M | } else { | 132 | | /* Avoid undefined result */ | 133 | 0 | return 0; | 134 | 0 | } | 135 | 512M | } | 136 | 515M | } |
Unexecuted instantiation: interpolate.c:silk_DIV32_varQ NLSF_encode.c:silk_DIV32_varQ Line | Count | Source | 98 | 5.67G | { | 99 | 5.67G | opus_int a_headrm, b_headrm, lshift; | 100 | 5.67G | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 101 | | | 102 | 5.67G | silk_assert( b32 != 0 ); | 103 | 5.67G | silk_assert( Qres >= 0 ); | 104 | | | 105 | | /* Compute number of bits head room and normalize inputs */ | 106 | 5.67G | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 107 | 5.67G | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 108 | 5.67G | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 109 | 5.67G | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 110 | | | 111 | | /* Inverse of b32, with 14 bits of precision */ | 112 | 5.67G | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 113 | | | 114 | | /* First approximation */ | 115 | 5.67G | result = silk_SMULWB(a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 116 | | | 117 | | /* Compute residual by subtracting product of denominator and first approximation */ | 118 | | /* It's OK to overflow because the final value of a32_nrm should always be small */ | 119 | 5.67G | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 120 | | | 121 | | /* Refinement */ | 122 | 5.67G | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 123 | | | 124 | | /* Convert to Qres domain */ | 125 | 5.67G | lshift = 29 + a_headrm - b_headrm - Qres; | 126 | 5.67G | if( lshift < 0 ) { | 127 | 0 | return silk_LSHIFT_SAT32(result, -lshift); | 128 | 5.67G | } else { | 129 | 5.67G | if( lshift < 32){ | 130 | 5.67G | return silk_RSHIFT(result, lshift); | 131 | 5.67G | } else { | 132 | | /* Avoid undefined result */ | 133 | 0 | return 0; | 134 | 0 | } | 135 | 5.67G | } | 136 | 5.67G | } |
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 |
137 | | |
138 | | /* Invert int32 value and return result as int32 in a given Q-domain */ |
139 | | static OPUS_INLINE opus_int32 silk_INVERSE32_varQ( /* O returns a good approximation of "(1 << Qres) / b32" */ |
140 | | const opus_int32 b32, /* I denominator (Q0) */ |
141 | | const opus_int Qres /* I Q-domain of result (> 0) */ |
142 | | ) |
143 | 2.22G | { |
144 | 2.22G | opus_int b_headrm, lshift; |
145 | 2.22G | opus_int32 b32_inv, b32_nrm, err_Q32, result; |
146 | | |
147 | 2.22G | silk_assert( b32 != 0 ); |
148 | 2.22G | silk_assert( Qres > 0 ); |
149 | | |
150 | | /* Compute number of bits head room and normalize input */ |
151 | 2.22G | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; |
152 | 2.22G | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ |
153 | | |
154 | | /* Inverse of b32, with 14 bits of precision */ |
155 | 2.22G | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ |
156 | | |
157 | | /* First approximation */ |
158 | 2.22G | result = silk_LSHIFT(b32_inv, 16); /* Q: 61 - b_headrm */ |
159 | | |
160 | | /* Compute residual by subtracting product of denominator and first approximation from one */ |
161 | 2.22G | err_Q32 = silk_LSHIFT( ((opus_int32)1<<29) - silk_SMULWB(b32_nrm, b32_inv), 3 ); /* Q32 */ |
162 | | |
163 | | /* Refinement */ |
164 | 2.22G | result = silk_SMLAWW(result, err_Q32, b32_inv); /* Q: 61 - b_headrm */ |
165 | | |
166 | | /* Convert to Qres domain */ |
167 | 2.22G | lshift = 61 - b_headrm - Qres; |
168 | 2.22G | if( lshift <= 0 ) { |
169 | 2.13G | return silk_LSHIFT_SAT32(result, -lshift); |
170 | 2.13G | } else { |
171 | 85.3M | if( lshift < 32){ |
172 | 85.3M | return silk_RSHIFT(result, lshift); |
173 | 85.3M | }else{ |
174 | | /* Avoid undefined result */ |
175 | 0 | return 0; |
176 | 0 | } |
177 | 85.3M | } |
178 | 2.22G | } 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 | 143 | 221k | { | 144 | 221k | opus_int b_headrm, lshift; | 145 | 221k | opus_int32 b32_inv, b32_nrm, err_Q32, result; | 146 | | | 147 | 221k | silk_assert( b32 != 0 ); | 148 | 221k | silk_assert( Qres > 0 ); | 149 | | | 150 | | /* Compute number of bits head room and normalize input */ | 151 | 221k | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 152 | 221k | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 153 | | | 154 | | /* Inverse of b32, with 14 bits of precision */ | 155 | 221k | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 156 | | | 157 | | /* First approximation */ | 158 | 221k | result = silk_LSHIFT(b32_inv, 16); /* Q: 61 - b_headrm */ | 159 | | | 160 | | /* Compute residual by subtracting product of denominator and first approximation from one */ | 161 | 221k | err_Q32 = silk_LSHIFT( ((opus_int32)1<<29) - silk_SMULWB(b32_nrm, b32_inv), 3 ); /* Q32 */ | 162 | | | 163 | | /* Refinement */ | 164 | 221k | result = silk_SMLAWW(result, err_Q32, b32_inv); /* Q: 61 - b_headrm */ | 165 | | | 166 | | /* Convert to Qres domain */ | 167 | 221k | lshift = 61 - b_headrm - Qres; | 168 | 221k | if( lshift <= 0 ) { | 169 | 0 | return silk_LSHIFT_SAT32(result, -lshift); | 170 | 221k | } else { | 171 | 221k | if( lshift < 32){ | 172 | 221k | return silk_RSHIFT(result, lshift); | 173 | 221k | }else{ | 174 | | /* Avoid undefined result */ | 175 | 0 | return 0; | 176 | 0 | } | 177 | 221k | } | 178 | 221k | } |
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 | 143 | 1.64G | { | 144 | 1.64G | opus_int b_headrm, lshift; | 145 | 1.64G | opus_int32 b32_inv, b32_nrm, err_Q32, result; | 146 | | | 147 | 1.64G | silk_assert( b32 != 0 ); | 148 | 1.64G | silk_assert( Qres > 0 ); | 149 | | | 150 | | /* Compute number of bits head room and normalize input */ | 151 | 1.64G | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 152 | 1.64G | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 153 | | | 154 | | /* Inverse of b32, with 14 bits of precision */ | 155 | 1.64G | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 156 | | | 157 | | /* First approximation */ | 158 | 1.64G | result = silk_LSHIFT(b32_inv, 16); /* Q: 61 - b_headrm */ | 159 | | | 160 | | /* Compute residual by subtracting product of denominator and first approximation from one */ | 161 | 1.64G | err_Q32 = silk_LSHIFT( ((opus_int32)1<<29) - silk_SMULWB(b32_nrm, b32_inv), 3 ); /* Q32 */ | 162 | | | 163 | | /* Refinement */ | 164 | 1.64G | result = silk_SMLAWW(result, err_Q32, b32_inv); /* Q: 61 - b_headrm */ | 165 | | | 166 | | /* Convert to Qres domain */ | 167 | 1.64G | lshift = 61 - b_headrm - Qres; | 168 | 1.64G | if( lshift <= 0 ) { | 169 | 1.64G | return silk_LSHIFT_SAT32(result, -lshift); | 170 | 1.64G | } else { | 171 | 0 | if( lshift < 32){ | 172 | 0 | return silk_RSHIFT(result, lshift); | 173 | 0 | }else{ | 174 | | /* Avoid undefined result */ | 175 | 0 | return 0; | 176 | 0 | } | 177 | 0 | } | 178 | 1.64G | } |
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 | 143 | 1.69M | { | 144 | 1.69M | opus_int b_headrm, lshift; | 145 | 1.69M | opus_int32 b32_inv, b32_nrm, err_Q32, result; | 146 | | | 147 | 1.69M | silk_assert( b32 != 0 ); | 148 | 1.69M | silk_assert( Qres > 0 ); | 149 | | | 150 | | /* Compute number of bits head room and normalize input */ | 151 | 1.69M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 152 | 1.69M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 153 | | | 154 | | /* Inverse of b32, with 14 bits of precision */ | 155 | 1.69M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 156 | | | 157 | | /* First approximation */ | 158 | 1.69M | result = silk_LSHIFT(b32_inv, 16); /* Q: 61 - b_headrm */ | 159 | | | 160 | | /* Compute residual by subtracting product of denominator and first approximation from one */ | 161 | 1.69M | err_Q32 = silk_LSHIFT( ((opus_int32)1<<29) - silk_SMULWB(b32_nrm, b32_inv), 3 ); /* Q32 */ | 162 | | | 163 | | /* Refinement */ | 164 | 1.69M | result = silk_SMLAWW(result, err_Q32, b32_inv); /* Q: 61 - b_headrm */ | 165 | | | 166 | | /* Convert to Qres domain */ | 167 | 1.69M | lshift = 61 - b_headrm - Qres; | 168 | 1.69M | if( lshift <= 0 ) { | 169 | 161k | return silk_LSHIFT_SAT32(result, -lshift); | 170 | 1.53M | } else { | 171 | 1.53M | if( lshift < 32){ | 172 | 1.53M | return silk_RSHIFT(result, lshift); | 173 | 1.53M | }else{ | 174 | | /* Avoid undefined result */ | 175 | 0 | return 0; | 176 | 0 | } | 177 | 1.53M | } | 178 | 1.69M | } |
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 | 143 | 41.8M | { | 144 | 41.8M | opus_int b_headrm, lshift; | 145 | 41.8M | opus_int32 b32_inv, b32_nrm, err_Q32, result; | 146 | | | 147 | 41.8M | silk_assert( b32 != 0 ); | 148 | 41.8M | silk_assert( Qres > 0 ); | 149 | | | 150 | | /* Compute number of bits head room and normalize input */ | 151 | 41.8M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 152 | 41.8M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 153 | | | 154 | | /* Inverse of b32, with 14 bits of precision */ | 155 | 41.8M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 156 | | | 157 | | /* First approximation */ | 158 | 41.8M | result = silk_LSHIFT(b32_inv, 16); /* Q: 61 - b_headrm */ | 159 | | | 160 | | /* Compute residual by subtracting product of denominator and first approximation from one */ | 161 | 41.8M | err_Q32 = silk_LSHIFT( ((opus_int32)1<<29) - silk_SMULWB(b32_nrm, b32_inv), 3 ); /* Q32 */ | 162 | | | 163 | | /* Refinement */ | 164 | 41.8M | result = silk_SMLAWW(result, err_Q32, b32_inv); /* Q: 61 - b_headrm */ | 165 | | | 166 | | /* Convert to Qres domain */ | 167 | 41.8M | lshift = 61 - b_headrm - Qres; | 168 | 41.8M | if( lshift <= 0 ) { | 169 | 0 | return silk_LSHIFT_SAT32(result, -lshift); | 170 | 41.8M | } else { | 171 | 41.8M | if( lshift < 32){ | 172 | 41.8M | return silk_RSHIFT(result, lshift); | 173 | 41.8M | }else{ | 174 | | /* Avoid undefined result */ | 175 | 0 | return 0; | 176 | 0 | } | 177 | 41.8M | } | 178 | 41.8M | } |
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 | 143 | 89.0M | { | 144 | 89.0M | opus_int b_headrm, lshift; | 145 | 89.0M | opus_int32 b32_inv, b32_nrm, err_Q32, result; | 146 | | | 147 | 89.0M | silk_assert( b32 != 0 ); | 148 | 89.0M | silk_assert( Qres > 0 ); | 149 | | | 150 | | /* Compute number of bits head room and normalize input */ | 151 | 89.0M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 152 | 89.0M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 153 | | | 154 | | /* Inverse of b32, with 14 bits of precision */ | 155 | 89.0M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 156 | | | 157 | | /* First approximation */ | 158 | 89.0M | result = silk_LSHIFT(b32_inv, 16); /* Q: 61 - b_headrm */ | 159 | | | 160 | | /* Compute residual by subtracting product of denominator and first approximation from one */ | 161 | 89.0M | err_Q32 = silk_LSHIFT( ((opus_int32)1<<29) - silk_SMULWB(b32_nrm, b32_inv), 3 ); /* Q32 */ | 162 | | | 163 | | /* Refinement */ | 164 | 89.0M | result = silk_SMLAWW(result, err_Q32, b32_inv); /* Q: 61 - b_headrm */ | 165 | | | 166 | | /* Convert to Qres domain */ | 167 | 89.0M | lshift = 61 - b_headrm - Qres; | 168 | 89.0M | if( lshift <= 0 ) { | 169 | 79.6M | return silk_LSHIFT_SAT32(result, -lshift); | 170 | 79.6M | } else { | 171 | 9.35M | if( lshift < 32){ | 172 | 9.35M | return silk_RSHIFT(result, lshift); | 173 | 9.35M | }else{ | 174 | | /* Avoid undefined result */ | 175 | 0 | return 0; | 176 | 0 | } | 177 | 9.35M | } | 178 | 89.0M | } |
Unexecuted instantiation: LP_variable_cutoff.c:silk_INVERSE32_varQ NSQ.c:silk_INVERSE32_varQ Line | Count | Source | 143 | 81.4M | { | 144 | 81.4M | opus_int b_headrm, lshift; | 145 | 81.4M | opus_int32 b32_inv, b32_nrm, err_Q32, result; | 146 | | | 147 | 81.4M | silk_assert( b32 != 0 ); | 148 | 81.4M | silk_assert( Qres > 0 ); | 149 | | | 150 | | /* Compute number of bits head room and normalize input */ | 151 | 81.4M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 152 | 81.4M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 153 | | | 154 | | /* Inverse of b32, with 14 bits of precision */ | 155 | 81.4M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 156 | | | 157 | | /* First approximation */ | 158 | 81.4M | result = silk_LSHIFT(b32_inv, 16); /* Q: 61 - b_headrm */ | 159 | | | 160 | | /* Compute residual by subtracting product of denominator and first approximation from one */ | 161 | 81.4M | err_Q32 = silk_LSHIFT( ((opus_int32)1<<29) - silk_SMULWB(b32_nrm, b32_inv), 3 ); /* Q32 */ | 162 | | | 163 | | /* Refinement */ | 164 | 81.4M | result = silk_SMLAWW(result, err_Q32, b32_inv); /* Q: 61 - b_headrm */ | 165 | | | 166 | | /* Convert to Qres domain */ | 167 | 81.4M | lshift = 61 - b_headrm - Qres; | 168 | 81.4M | if( lshift <= 0 ) { | 169 | 75.9M | return silk_LSHIFT_SAT32(result, -lshift); | 170 | 75.9M | } else { | 171 | 5.46M | if( lshift < 32){ | 172 | 5.46M | return silk_RSHIFT(result, lshift); | 173 | 5.46M | }else{ | 174 | | /* Avoid undefined result */ | 175 | 0 | return 0; | 176 | 0 | } | 177 | 5.46M | } | 178 | 81.4M | } |
NSQ_del_dec.c:silk_INVERSE32_varQ Line | Count | Source | 143 | 197M | { | 144 | 197M | opus_int b_headrm, lshift; | 145 | 197M | opus_int32 b32_inv, b32_nrm, err_Q32, result; | 146 | | | 147 | 197M | silk_assert( b32 != 0 ); | 148 | 197M | silk_assert( Qres > 0 ); | 149 | | | 150 | | /* Compute number of bits head room and normalize input */ | 151 | 197M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 152 | 197M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 153 | | | 154 | | /* Inverse of b32, with 14 bits of precision */ | 155 | 197M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 156 | | | 157 | | /* First approximation */ | 158 | 197M | result = silk_LSHIFT(b32_inv, 16); /* Q: 61 - b_headrm */ | 159 | | | 160 | | /* Compute residual by subtracting product of denominator and first approximation from one */ | 161 | 197M | err_Q32 = silk_LSHIFT( ((opus_int32)1<<29) - silk_SMULWB(b32_nrm, b32_inv), 3 ); /* Q32 */ | 162 | | | 163 | | /* Refinement */ | 164 | 197M | result = silk_SMLAWW(result, err_Q32, b32_inv); /* Q: 61 - b_headrm */ | 165 | | | 166 | | /* Convert to Qres domain */ | 167 | 197M | lshift = 61 - b_headrm - Qres; | 168 | 197M | if( lshift <= 0 ) { | 169 | 183M | return silk_LSHIFT_SAT32(result, -lshift); | 170 | 183M | } else { | 171 | 13.8M | if( lshift < 32){ | 172 | 13.8M | return silk_RSHIFT(result, lshift); | 173 | 13.8M | }else{ | 174 | | /* Avoid undefined result */ | 175 | 0 | return 0; | 176 | 0 | } | 177 | 13.8M | } | 178 | 197M | } |
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 | 143 | 168M | { | 144 | 168M | opus_int b_headrm, lshift; | 145 | 168M | opus_int32 b32_inv, b32_nrm, err_Q32, result; | 146 | | | 147 | 168M | silk_assert( b32 != 0 ); | 148 | 168M | silk_assert( Qres > 0 ); | 149 | | | 150 | | /* Compute number of bits head room and normalize input */ | 151 | 168M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 152 | 168M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 153 | | | 154 | | /* Inverse of b32, with 14 bits of precision */ | 155 | 168M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 156 | | | 157 | | /* First approximation */ | 158 | 168M | result = silk_LSHIFT(b32_inv, 16); /* Q: 61 - b_headrm */ | 159 | | | 160 | | /* Compute residual by subtracting product of denominator and first approximation from one */ | 161 | 168M | err_Q32 = silk_LSHIFT( ((opus_int32)1<<29) - silk_SMULWB(b32_nrm, b32_inv), 3 ); /* Q32 */ | 162 | | | 163 | | /* Refinement */ | 164 | 168M | result = silk_SMLAWW(result, err_Q32, b32_inv); /* Q: 61 - b_headrm */ | 165 | | | 166 | | /* Convert to Qres domain */ | 167 | 168M | lshift = 61 - b_headrm - Qres; | 168 | 168M | if( lshift <= 0 ) { | 169 | 155M | return silk_LSHIFT_SAT32(result, -lshift); | 170 | 155M | } else { | 171 | 13.1M | if( lshift < 32){ | 172 | 13.1M | return silk_RSHIFT(result, lshift); | 173 | 13.1M | }else{ | 174 | | /* Avoid undefined result */ | 175 | 0 | return 0; | 176 | 0 | } | 177 | 13.1M | } | 178 | 168M | } |
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 |
179 | | |
180 | | #endif /* SILK_FIX_INLINES_H */ |