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 | 136M | { |
39 | 136M | opus_int32 in_upper; |
40 | | |
41 | 136M | in_upper = (opus_int32)silk_RSHIFT64(in, 32); |
42 | 136M | if (in_upper == 0) { |
43 | | /* Search in the lower 32 bits */ |
44 | 135M | return 32 + silk_CLZ32( (opus_int32) in ); |
45 | 135M | } else { |
46 | | /* Search in the upper 32 bits */ |
47 | 1.24M | return silk_CLZ32( in_upper ); |
48 | 1.24M | } |
49 | 136M | } 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 | 38.5M | { | 39 | 38.5M | opus_int32 in_upper; | 40 | | | 41 | 38.5M | in_upper = (opus_int32)silk_RSHIFT64(in, 32); | 42 | 38.5M | if (in_upper == 0) { | 43 | | /* Search in the lower 32 bits */ | 44 | 37.2M | return 32 + silk_CLZ32( (opus_int32) in ); | 45 | 37.2M | } else { | 46 | | /* Search in the upper 32 bits */ | 47 | 1.23M | return silk_CLZ32( in_upper ); | 48 | 1.23M | } | 49 | 38.5M | } |
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 | 48.9M | { | 39 | 48.9M | opus_int32 in_upper; | 40 | | | 41 | 48.9M | in_upper = (opus_int32)silk_RSHIFT64(in, 32); | 42 | 48.9M | if (in_upper == 0) { | 43 | | /* Search in the lower 32 bits */ | 44 | 48.9M | return 32 + silk_CLZ32( (opus_int32) in ); | 45 | 48.9M | } else { | 46 | | /* Search in the upper 32 bits */ | 47 | 5.97k | return silk_CLZ32( in_upper ); | 48 | 5.97k | } | 49 | 48.9M | } |
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 | 48.9M | { | 39 | 48.9M | opus_int32 in_upper; | 40 | | | 41 | 48.9M | in_upper = (opus_int32)silk_RSHIFT64(in, 32); | 42 | 48.9M | if (in_upper == 0) { | 43 | | /* Search in the lower 32 bits */ | 44 | 48.9M | return 32 + silk_CLZ32( (opus_int32) in ); | 45 | 48.9M | } else { | 46 | | /* Search in the upper 32 bits */ | 47 | 5.97k | return silk_CLZ32( in_upper ); | 48 | 5.97k | } | 49 | 48.9M | } |
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 | 1.99G | { |
58 | 1.99G | opus_int32 lzeros = silk_CLZ32(in); |
59 | | |
60 | 1.99G | * lz = lzeros; |
61 | 1.99G | * frac_Q7 = silk_ROR32(in, 24 - lzeros) & 0x7f; |
62 | 1.99G | } 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 | 9.71k | { | 58 | 9.71k | opus_int32 lzeros = silk_CLZ32(in); | 59 | | | 60 | 9.71k | * lz = lzeros; | 61 | 9.71k | * frac_Q7 = silk_ROR32(in, 24 - lzeros) & 0x7f; | 62 | 9.71k | } |
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 | 1.69G | { | 58 | 1.69G | opus_int32 lzeros = silk_CLZ32(in); | 59 | | | 60 | 1.69G | * lz = lzeros; | 61 | 1.69G | * frac_Q7 = silk_ROR32(in, 24 - lzeros) & 0x7f; | 62 | 1.69G | } |
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 | 56.9k | { | 58 | 56.9k | opus_int32 lzeros = silk_CLZ32(in); | 59 | | | 60 | 56.9k | * lz = lzeros; | 61 | 56.9k | * frac_Q7 = silk_ROR32(in, 24 - lzeros) & 0x7f; | 62 | 56.9k | } |
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 | 11.2M | { | 58 | 11.2M | opus_int32 lzeros = silk_CLZ32(in); | 59 | | | 60 | 11.2M | * lz = lzeros; | 61 | 11.2M | * frac_Q7 = silk_ROR32(in, 24 - lzeros) & 0x7f; | 62 | 11.2M | } |
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 | 143M | { | 58 | 143M | opus_int32 lzeros = silk_CLZ32(in); | 59 | | | 60 | 143M | * lz = lzeros; | 61 | 143M | * frac_Q7 = silk_ROR32(in, 24 - lzeros) & 0x7f; | 62 | 143M | } |
process_gains_FIX.c:silk_CLZ_FRAC Line | Count | Source | 57 | 143M | { | 58 | 143M | opus_int32 lzeros = silk_CLZ32(in); | 59 | | | 60 | 143M | * lz = lzeros; | 61 | 143M | * frac_Q7 = silk_ROR32(in, 24 - lzeros) & 0x7f; | 62 | 143M | } |
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.58M | { | 58 | 2.58M | opus_int32 lzeros = silk_CLZ32(in); | 59 | | | 60 | 2.58M | * lz = lzeros; | 61 | 2.58M | * frac_Q7 = silk_ROR32(in, 24 - lzeros) & 0x7f; | 62 | 2.58M | } |
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.57M | { | 58 | 1.57M | opus_int32 lzeros = silk_CLZ32(in); | 59 | | | 60 | 1.57M | * lz = lzeros; | 61 | 1.57M | * frac_Q7 = silk_ROR32(in, 24 - lzeros) & 0x7f; | 62 | 1.57M | } |
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 | 3.13M | { | 58 | 3.13M | opus_int32 lzeros = silk_CLZ32(in); | 59 | | | 60 | 3.13M | * lz = lzeros; | 61 | 3.13M | * frac_Q7 = silk_ROR32(in, 24 - lzeros) & 0x7f; | 62 | 3.13M | } |
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.57M | { | 58 | 1.57M | opus_int32 lzeros = silk_CLZ32(in); | 59 | | | 60 | 1.57M | * lz = lzeros; | 61 | 1.57M | * frac_Q7 = silk_ROR32(in, 24 - lzeros) & 0x7f; | 62 | 1.57M | } |
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 | 400M | { |
69 | 400M | opus_int32 y, lz, frac_Q7; |
70 | | |
71 | 400M | if( x <= 0 ) { |
72 | 93.5M | return 0; |
73 | 93.5M | } |
74 | | |
75 | 306M | silk_CLZ_FRAC(x, &lz, &frac_Q7); |
76 | | |
77 | 306M | if( lz & 1 ) { |
78 | 285M | y = 32768; |
79 | 285M | } else { |
80 | 21.2M | y = 46214; /* 46214 = sqrt(2) * 32768 */ |
81 | 21.2M | } |
82 | | |
83 | | /* get scaling right */ |
84 | 306M | y >>= silk_RSHIFT(lz, 1); |
85 | | |
86 | | /* increment using fractional part of input */ |
87 | 306M | y = silk_SMLAWB(y, y, silk_SMULBB(213, frac_Q7)); |
88 | | |
89 | 306M | return y; |
90 | 400M | } 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 | 17.1k | { | 69 | 17.1k | opus_int32 y, lz, frac_Q7; | 70 | | | 71 | 17.1k | if( x <= 0 ) { | 72 | 7.39k | return 0; | 73 | 7.39k | } | 74 | | | 75 | 9.71k | silk_CLZ_FRAC(x, &lz, &frac_Q7); | 76 | | | 77 | 9.71k | if( lz & 1 ) { | 78 | 3.68k | y = 32768; | 79 | 6.02k | } else { | 80 | 6.02k | y = 46214; /* 46214 = sqrt(2) * 32768 */ | 81 | 6.02k | } | 82 | | | 83 | | /* get scaling right */ | 84 | 9.71k | y >>= silk_RSHIFT(lz, 1); | 85 | | | 86 | | /* increment using fractional part of input */ | 87 | 9.71k | y = silk_SMLAWB(y, y, silk_SMULBB(213, frac_Q7)); | 88 | | | 89 | 9.71k | return y; | 90 | 17.1k | } |
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 | 207k | { | 69 | 207k | opus_int32 y, lz, frac_Q7; | 70 | | | 71 | 207k | if( x <= 0 ) { | 72 | 151k | return 0; | 73 | 151k | } | 74 | | | 75 | 56.9k | silk_CLZ_FRAC(x, &lz, &frac_Q7); | 76 | | | 77 | 56.9k | if( lz & 1 ) { | 78 | 29.1k | y = 32768; | 79 | 29.1k | } else { | 80 | 27.8k | y = 46214; /* 46214 = sqrt(2) * 32768 */ | 81 | 27.8k | } | 82 | | | 83 | | /* get scaling right */ | 84 | 56.9k | y >>= silk_RSHIFT(lz, 1); | 85 | | | 86 | | /* increment using fractional part of input */ | 87 | 56.9k | y = silk_SMLAWB(y, y, silk_SMULBB(213, frac_Q7)); | 88 | | | 89 | 56.9k | return y; | 90 | 207k | } |
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 | 21.7M | { | 69 | 21.7M | opus_int32 y, lz, frac_Q7; | 70 | | | 71 | 21.7M | if( x <= 0 ) { | 72 | 10.4M | return 0; | 73 | 10.4M | } | 74 | | | 75 | 11.2M | silk_CLZ_FRAC(x, &lz, &frac_Q7); | 76 | | | 77 | 11.2M | if( lz & 1 ) { | 78 | 10.7M | y = 32768; | 79 | 10.7M | } else { | 80 | 493k | y = 46214; /* 46214 = sqrt(2) * 32768 */ | 81 | 493k | } | 82 | | | 83 | | /* get scaling right */ | 84 | 11.2M | y >>= silk_RSHIFT(lz, 1); | 85 | | | 86 | | /* increment using fractional part of input */ | 87 | 11.2M | y = silk_SMLAWB(y, y, silk_SMULBB(213, frac_Q7)); | 88 | | | 89 | 11.2M | return y; | 90 | 21.7M | } |
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 | 143M | { | 69 | 143M | opus_int32 y, lz, frac_Q7; | 70 | | | 71 | 143M | if( x <= 0 ) { | 72 | 0 | return 0; | 73 | 0 | } | 74 | | | 75 | 143M | silk_CLZ_FRAC(x, &lz, &frac_Q7); | 76 | | | 77 | 143M | if( lz & 1 ) { | 78 | 138M | y = 32768; | 79 | 138M | } else { | 80 | 4.44M | y = 46214; /* 46214 = sqrt(2) * 32768 */ | 81 | 4.44M | } | 82 | | | 83 | | /* get scaling right */ | 84 | 143M | y >>= silk_RSHIFT(lz, 1); | 85 | | | 86 | | /* increment using fractional part of input */ | 87 | 143M | y = silk_SMLAWB(y, y, silk_SMULBB(213, frac_Q7)); | 88 | | | 89 | 143M | return y; | 90 | 143M | } |
process_gains_FIX.c:silk_SQRT_APPROX Line | Count | Source | 68 | 143M | { | 69 | 143M | opus_int32 y, lz, frac_Q7; | 70 | | | 71 | 143M | if( x <= 0 ) { | 72 | 0 | return 0; | 73 | 0 | } | 74 | | | 75 | 143M | silk_CLZ_FRAC(x, &lz, &frac_Q7); | 76 | | | 77 | 143M | if( lz & 1 ) { | 78 | 132M | y = 32768; | 79 | 132M | } else { | 80 | 10.1M | y = 46214; /* 46214 = sqrt(2) * 32768 */ | 81 | 10.1M | } | 82 | | | 83 | | /* get scaling right */ | 84 | 143M | y >>= silk_RSHIFT(lz, 1); | 85 | | | 86 | | /* increment using fractional part of input */ | 87 | 143M | y = silk_SMLAWB(y, y, silk_SMULBB(213, frac_Q7)); | 88 | | | 89 | 143M | return y; | 90 | 143M | } |
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.0M | { | 69 | 44.0M | opus_int32 y, lz, frac_Q7; | 70 | | | 71 | 44.0M | if( x <= 0 ) { | 72 | 41.4M | return 0; | 73 | 41.4M | } | 74 | | | 75 | 2.58M | silk_CLZ_FRAC(x, &lz, &frac_Q7); | 76 | | | 77 | 2.58M | if( lz & 1 ) { | 78 | 1.20M | y = 32768; | 79 | 1.37M | } else { | 80 | 1.37M | y = 46214; /* 46214 = sqrt(2) * 32768 */ | 81 | 1.37M | } | 82 | | | 83 | | /* get scaling right */ | 84 | 2.58M | y >>= silk_RSHIFT(lz, 1); | 85 | | | 86 | | /* increment using fractional part of input */ | 87 | 2.58M | y = silk_SMLAWB(y, y, silk_SMULBB(213, frac_Q7)); | 88 | | | 89 | 2.58M | return y; | 90 | 44.0M | } |
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.57M | { | 69 | 1.57M | opus_int32 y, lz, frac_Q7; | 70 | | | 71 | 1.57M | if( x <= 0 ) { | 72 | 0 | return 0; | 73 | 0 | } | 74 | | | 75 | 1.57M | silk_CLZ_FRAC(x, &lz, &frac_Q7); | 76 | | | 77 | 1.57M | if( lz & 1 ) { | 78 | 20.1k | y = 32768; | 79 | 1.55M | } else { | 80 | 1.55M | y = 46214; /* 46214 = sqrt(2) * 32768 */ | 81 | 1.55M | } | 82 | | | 83 | | /* get scaling right */ | 84 | 1.57M | y >>= silk_RSHIFT(lz, 1); | 85 | | | 86 | | /* increment using fractional part of input */ | 87 | 1.57M | y = silk_SMLAWB(y, y, silk_SMULBB(213, frac_Q7)); | 88 | | | 89 | 1.57M | return y; | 90 | 1.57M | } |
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 | 44.6M | { | 69 | 44.6M | opus_int32 y, lz, frac_Q7; | 70 | | | 71 | 44.6M | if( x <= 0 ) { | 72 | 41.5M | return 0; | 73 | 41.5M | } | 74 | | | 75 | 3.13M | silk_CLZ_FRAC(x, &lz, &frac_Q7); | 76 | | | 77 | 3.13M | if( lz & 1 ) { | 78 | 1.47M | y = 32768; | 79 | 1.65M | } else { | 80 | 1.65M | y = 46214; /* 46214 = sqrt(2) * 32768 */ | 81 | 1.65M | } | 82 | | | 83 | | /* get scaling right */ | 84 | 3.13M | y >>= silk_RSHIFT(lz, 1); | 85 | | | 86 | | /* increment using fractional part of input */ | 87 | 3.13M | y = silk_SMLAWB(y, y, silk_SMULBB(213, frac_Q7)); | 88 | | | 89 | 3.13M | return y; | 90 | 44.6M | } |
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.57M | { | 69 | 1.57M | opus_int32 y, lz, frac_Q7; | 70 | | | 71 | 1.57M | if( x <= 0 ) { | 72 | 0 | return 0; | 73 | 0 | } | 74 | | | 75 | 1.57M | silk_CLZ_FRAC(x, &lz, &frac_Q7); | 76 | | | 77 | 1.57M | if( lz & 1 ) { | 78 | 20.1k | y = 32768; | 79 | 1.55M | } else { | 80 | 1.55M | y = 46214; /* 46214 = sqrt(2) * 32768 */ | 81 | 1.55M | } | 82 | | | 83 | | /* get scaling right */ | 84 | 1.57M | y >>= silk_RSHIFT(lz, 1); | 85 | | | 86 | | /* increment using fractional part of input */ | 87 | 1.57M | y = silk_SMLAWB(y, y, silk_SMULBB(213, frac_Q7)); | 88 | | | 89 | 1.57M | return y; | 90 | 1.57M | } |
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 | 5.28G | { |
99 | 5.28G | opus_int a_headrm, b_headrm, lshift; |
100 | 5.28G | opus_int32 b32_inv, a32_nrm, b32_nrm, result; |
101 | | |
102 | 5.28G | silk_assert( b32 != 0 ); |
103 | 5.28G | silk_assert( Qres >= 0 ); |
104 | | |
105 | | /* Compute number of bits head room and normalize inputs */ |
106 | 5.28G | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; |
107 | 5.28G | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ |
108 | 5.28G | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; |
109 | 5.28G | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ |
110 | | |
111 | | /* Inverse of b32, with 14 bits of precision */ |
112 | 5.28G | 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.28G | 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.28G | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ |
120 | | |
121 | | /* Refinement */ |
122 | 5.28G | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ |
123 | | |
124 | | /* Convert to Qres domain */ |
125 | 5.28G | lshift = 29 + a_headrm - b_headrm - Qres; |
126 | 5.28G | if( lshift < 0 ) { |
127 | 710M | return silk_LSHIFT_SAT32(result, -lshift); |
128 | 4.57G | } else { |
129 | 4.57G | if( lshift < 32){ |
130 | 4.57G | return silk_RSHIFT(result, lshift); |
131 | 4.57G | } else { |
132 | | /* Avoid undefined result */ |
133 | 3.22M | return 0; |
134 | 3.22M | } |
135 | 4.57G | } |
136 | 5.28G | } 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 | 858k | { | 99 | 858k | opus_int a_headrm, b_headrm, lshift; | 100 | 858k | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 101 | | | 102 | 858k | silk_assert( b32 != 0 ); | 103 | 858k | silk_assert( Qres >= 0 ); | 104 | | | 105 | | /* Compute number of bits head room and normalize inputs */ | 106 | 858k | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 107 | 858k | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 108 | 858k | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 109 | 858k | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 110 | | | 111 | | /* Inverse of b32, with 14 bits of precision */ | 112 | 858k | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 113 | | | 114 | | /* First approximation */ | 115 | 858k | 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 | 858k | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 120 | | | 121 | | /* Refinement */ | 122 | 858k | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 123 | | | 124 | | /* Convert to Qres domain */ | 125 | 858k | lshift = 29 + a_headrm - b_headrm - Qres; | 126 | 858k | if( lshift < 0 ) { | 127 | 673 | return silk_LSHIFT_SAT32(result, -lshift); | 128 | 857k | } else { | 129 | 857k | if( lshift < 32){ | 130 | 857k | return silk_RSHIFT(result, lshift); | 131 | 857k | } else { | 132 | | /* Avoid undefined result */ | 133 | 0 | return 0; | 134 | 0 | } | 135 | 857k | } | 136 | 858k | } |
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 | 5.46M | { | 99 | 5.46M | opus_int a_headrm, b_headrm, lshift; | 100 | 5.46M | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 101 | | | 102 | 5.46M | silk_assert( b32 != 0 ); | 103 | 5.46M | silk_assert( Qres >= 0 ); | 104 | | | 105 | | /* Compute number of bits head room and normalize inputs */ | 106 | 5.46M | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 107 | 5.46M | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 108 | 5.46M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 109 | 5.46M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 110 | | | 111 | | /* Inverse of b32, with 14 bits of precision */ | 112 | 5.46M | 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.46M | 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.46M | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 120 | | | 121 | | /* Refinement */ | 122 | 5.46M | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 123 | | | 124 | | /* Convert to Qres domain */ | 125 | 5.46M | lshift = 29 + a_headrm - b_headrm - Qres; | 126 | 5.46M | if( lshift < 0 ) { | 127 | 0 | return silk_LSHIFT_SAT32(result, -lshift); | 128 | 5.46M | } else { | 129 | 5.46M | if( lshift < 32){ | 130 | 5.46M | return silk_RSHIFT(result, lshift); | 131 | 5.46M | } else { | 132 | | /* Avoid undefined result */ | 133 | 0 | return 0; | 134 | 0 | } | 135 | 5.46M | } | 136 | 5.46M | } |
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 | 21.7M | { | 99 | 21.7M | opus_int a_headrm, b_headrm, lshift; | 100 | 21.7M | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 101 | | | 102 | 21.7M | silk_assert( b32 != 0 ); | 103 | 21.7M | silk_assert( Qres >= 0 ); | 104 | | | 105 | | /* Compute number of bits head room and normalize inputs */ | 106 | 21.7M | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 107 | 21.7M | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 108 | 21.7M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 109 | 21.7M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 110 | | | 111 | | /* Inverse of b32, with 14 bits of precision */ | 112 | 21.7M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 113 | | | 114 | | /* First approximation */ | 115 | 21.7M | 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 | 21.7M | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 120 | | | 121 | | /* Refinement */ | 122 | 21.7M | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 123 | | | 124 | | /* Convert to Qres domain */ | 125 | 21.7M | lshift = 29 + a_headrm - b_headrm - Qres; | 126 | 21.7M | if( lshift < 0 ) { | 127 | 129 | return silk_LSHIFT_SAT32(result, -lshift); | 128 | 21.7M | } else { | 129 | 21.7M | if( lshift < 32){ | 130 | 21.7M | return silk_RSHIFT(result, lshift); | 131 | 21.7M | } else { | 132 | | /* Avoid undefined result */ | 133 | 6.64k | return 0; | 134 | 6.64k | } | 135 | 21.7M | } | 136 | 21.7M | } |
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 | 42.4M | { | 99 | 42.4M | opus_int a_headrm, b_headrm, lshift; | 100 | 42.4M | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 101 | | | 102 | 42.4M | silk_assert( b32 != 0 ); | 103 | 42.4M | silk_assert( Qres >= 0 ); | 104 | | | 105 | | /* Compute number of bits head room and normalize inputs */ | 106 | 42.4M | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 107 | 42.4M | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 108 | 42.4M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 109 | 42.4M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 110 | | | 111 | | /* Inverse of b32, with 14 bits of precision */ | 112 | 42.4M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 113 | | | 114 | | /* First approximation */ | 115 | 42.4M | 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 | 42.4M | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 120 | | | 121 | | /* Refinement */ | 122 | 42.4M | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 123 | | | 124 | | /* Convert to Qres domain */ | 125 | 42.4M | lshift = 29 + a_headrm - b_headrm - Qres; | 126 | 42.4M | if( lshift < 0 ) { | 127 | 0 | return silk_LSHIFT_SAT32(result, -lshift); | 128 | 42.4M | } else { | 129 | 42.4M | if( lshift < 32){ | 130 | 42.4M | return silk_RSHIFT(result, lshift); | 131 | 42.4M | } else { | 132 | | /* Avoid undefined result */ | 133 | 0 | return 0; | 134 | 0 | } | 135 | 42.4M | } | 136 | 42.4M | } |
find_pred_coefs_FIX.c:silk_DIV32_varQ Line | Count | Source | 98 | 175M | { | 99 | 175M | opus_int a_headrm, b_headrm, lshift; | 100 | 175M | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 101 | | | 102 | 175M | silk_assert( b32 != 0 ); | 103 | 175M | silk_assert( Qres >= 0 ); | 104 | | | 105 | | /* Compute number of bits head room and normalize inputs */ | 106 | 175M | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 107 | 175M | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 108 | 175M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 109 | 175M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 110 | | | 111 | | /* Inverse of b32, with 14 bits of precision */ | 112 | 175M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 113 | | | 114 | | /* First approximation */ | 115 | 175M | 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 | 175M | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 120 | | | 121 | | /* Refinement */ | 122 | 175M | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 123 | | | 124 | | /* Convert to Qres domain */ | 125 | 175M | lshift = 29 + a_headrm - b_headrm - Qres; | 126 | 175M | if( lshift < 0 ) { | 127 | 0 | return silk_LSHIFT_SAT32(result, -lshift); | 128 | 175M | } else { | 129 | 175M | if( lshift < 32){ | 130 | 175M | return silk_RSHIFT(result, lshift); | 131 | 175M | } else { | 132 | | /* Avoid undefined result */ | 133 | 0 | return 0; | 134 | 0 | } | 135 | 175M | } | 136 | 175M | } |
noise_shape_analysis_FIX.c:silk_DIV32_varQ Line | Count | Source | 98 | 81.0M | { | 99 | 81.0M | opus_int a_headrm, b_headrm, lshift; | 100 | 81.0M | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 101 | | | 102 | 81.0M | silk_assert( b32 != 0 ); | 103 | 81.0M | silk_assert( Qres >= 0 ); | 104 | | | 105 | | /* Compute number of bits head room and normalize inputs */ | 106 | 81.0M | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 107 | 81.0M | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 108 | 81.0M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 109 | 81.0M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 110 | | | 111 | | /* Inverse of b32, with 14 bits of precision */ | 112 | 81.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 | 81.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 | 81.0M | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 120 | | | 121 | | /* Refinement */ | 122 | 81.0M | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 123 | | | 124 | | /* Convert to Qres domain */ | 125 | 81.0M | lshift = 29 + a_headrm - b_headrm - Qres; | 126 | 81.0M | if( lshift < 0 ) { | 127 | 0 | return silk_LSHIFT_SAT32(result, -lshift); | 128 | 81.0M | } else { | 129 | 81.0M | if( lshift < 32){ | 130 | 81.0M | return silk_RSHIFT(result, lshift); | 131 | 81.0M | } else { | 132 | | /* Avoid undefined result */ | 133 | 12 | return 0; | 134 | 12 | } | 135 | 81.0M | } | 136 | 81.0M | } |
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 | 101M | { | 99 | 101M | opus_int a_headrm, b_headrm, lshift; | 100 | 101M | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 101 | | | 102 | 101M | silk_assert( b32 != 0 ); | 103 | 101M | silk_assert( Qres >= 0 ); | 104 | | | 105 | | /* Compute number of bits head room and normalize inputs */ | 106 | 101M | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 107 | 101M | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 108 | 101M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 109 | 101M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 110 | | | 111 | | /* Inverse of b32, with 14 bits of precision */ | 112 | 101M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 113 | | | 114 | | /* First approximation */ | 115 | 101M | 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 | 101M | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 120 | | | 121 | | /* Refinement */ | 122 | 101M | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 123 | | | 124 | | /* Convert to Qres domain */ | 125 | 101M | lshift = 29 + a_headrm - b_headrm - Qres; | 126 | 101M | if( lshift < 0 ) { | 127 | 0 | return silk_LSHIFT_SAT32(result, -lshift); | 128 | 101M | } else { | 129 | 101M | if( lshift < 32){ | 130 | 98.4M | return silk_RSHIFT(result, lshift); | 131 | 98.4M | } else { | 132 | | /* Avoid undefined result */ | 133 | 3.22M | return 0; | 134 | 3.22M | } | 135 | 101M | } | 136 | 101M | } |
Unexecuted instantiation: vector_ops_FIX.c:silk_DIV32_varQ schur64_FIX.c:silk_DIV32_varQ Line | Count | Source | 98 | 2.05G | { | 99 | 2.05G | opus_int a_headrm, b_headrm, lshift; | 100 | 2.05G | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 101 | | | 102 | 2.05G | silk_assert( b32 != 0 ); | 103 | 2.05G | silk_assert( Qres >= 0 ); | 104 | | | 105 | | /* Compute number of bits head room and normalize inputs */ | 106 | 2.05G | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 107 | 2.05G | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 108 | 2.05G | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 109 | 2.05G | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 110 | | | 111 | | /* Inverse of b32, with 14 bits of precision */ | 112 | 2.05G | 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.05G | 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.05G | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 120 | | | 121 | | /* Refinement */ | 122 | 2.05G | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 123 | | | 124 | | /* Convert to Qres domain */ | 125 | 2.05G | lshift = 29 + a_headrm - b_headrm - Qres; | 126 | 2.05G | if( lshift < 0 ) { | 127 | 703M | 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.05G | } |
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 | 2.95M | { | 99 | 2.95M | opus_int a_headrm, b_headrm, lshift; | 100 | 2.95M | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 101 | | | 102 | 2.95M | silk_assert( b32 != 0 ); | 103 | 2.95M | silk_assert( Qres >= 0 ); | 104 | | | 105 | | /* Compute number of bits head room and normalize inputs */ | 106 | 2.95M | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 107 | 2.95M | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 108 | 2.95M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 109 | 2.95M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 110 | | | 111 | | /* Inverse of b32, with 14 bits of precision */ | 112 | 2.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 | 2.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 | 2.95M | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 120 | | | 121 | | /* Refinement */ | 122 | 2.95M | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 123 | | | 124 | | /* Convert to Qres domain */ | 125 | 2.95M | lshift = 29 + a_headrm - b_headrm - Qres; | 126 | 2.95M | if( lshift < 0 ) { | 127 | 0 | return silk_LSHIFT_SAT32(result, -lshift); | 128 | 2.95M | } else { | 129 | 2.95M | if( lshift < 32){ | 130 | 2.95M | return silk_RSHIFT(result, lshift); | 131 | 2.95M | } else { | 132 | | /* Avoid undefined result */ | 133 | 0 | return 0; | 134 | 0 | } | 135 | 2.95M | } | 136 | 2.95M | } |
Unexecuted instantiation: LP_variable_cutoff.c:silk_DIV32_varQ Line | Count | Source | 98 | 4.34M | { | 99 | 4.34M | opus_int a_headrm, b_headrm, lshift; | 100 | 4.34M | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 101 | | | 102 | 4.34M | silk_assert( b32 != 0 ); | 103 | 4.34M | silk_assert( Qres >= 0 ); | 104 | | | 105 | | /* Compute number of bits head room and normalize inputs */ | 106 | 4.34M | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 107 | 4.34M | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 108 | 4.34M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 109 | 4.34M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 110 | | | 111 | | /* Inverse of b32, with 14 bits of precision */ | 112 | 4.34M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 113 | | | 114 | | /* First approximation */ | 115 | 4.34M | 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 | 4.34M | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 120 | | | 121 | | /* Refinement */ | 122 | 4.34M | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 123 | | | 124 | | /* Convert to Qres domain */ | 125 | 4.34M | lshift = 29 + a_headrm - b_headrm - Qres; | 126 | 4.34M | if( lshift < 0 ) { | 127 | 53 | return silk_LSHIFT_SAT32(result, -lshift); | 128 | 4.34M | } else { | 129 | 4.34M | if( lshift < 32){ | 130 | 4.34M | return silk_RSHIFT(result, lshift); | 131 | 4.34M | } else { | 132 | | /* Avoid undefined result */ | 133 | 0 | return 0; | 134 | 0 | } | 135 | 4.34M | } | 136 | 4.34M | } |
NSQ_del_dec.c:silk_DIV32_varQ Line | Count | Source | 98 | 5.82M | { | 99 | 5.82M | opus_int a_headrm, b_headrm, lshift; | 100 | 5.82M | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 101 | | | 102 | 5.82M | silk_assert( b32 != 0 ); | 103 | 5.82M | silk_assert( Qres >= 0 ); | 104 | | | 105 | | /* Compute number of bits head room and normalize inputs */ | 106 | 5.82M | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 107 | 5.82M | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 108 | 5.82M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 109 | 5.82M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 110 | | | 111 | | /* Inverse of b32, with 14 bits of precision */ | 112 | 5.82M | 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.82M | 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.82M | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 120 | | | 121 | | /* Refinement */ | 122 | 5.82M | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 123 | | | 124 | | /* Convert to Qres domain */ | 125 | 5.82M | lshift = 29 + a_headrm - b_headrm - Qres; | 126 | 5.82M | if( lshift < 0 ) { | 127 | 247 | return silk_LSHIFT_SAT32(result, -lshift); | 128 | 5.82M | } else { | 129 | 5.82M | if( lshift < 32){ | 130 | 5.82M | return silk_RSHIFT(result, lshift); | 131 | 5.82M | } else { | 132 | | /* Avoid undefined result */ | 133 | 0 | return 0; | 134 | 0 | } | 135 | 5.82M | } | 136 | 5.82M | } |
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 | 498M | { | 99 | 498M | opus_int a_headrm, b_headrm, lshift; | 100 | 498M | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 101 | | | 102 | 498M | silk_assert( b32 != 0 ); | 103 | 498M | silk_assert( Qres >= 0 ); | 104 | | | 105 | | /* Compute number of bits head room and normalize inputs */ | 106 | 498M | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 107 | 498M | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 108 | 498M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 109 | 498M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 110 | | | 111 | | /* Inverse of b32, with 14 bits of precision */ | 112 | 498M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 113 | | | 114 | | /* First approximation */ | 115 | 498M | 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 | 498M | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 120 | | | 121 | | /* Refinement */ | 122 | 498M | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 123 | | | 124 | | /* Convert to Qres domain */ | 125 | 498M | lshift = 29 + a_headrm - b_headrm - Qres; | 126 | 498M | if( lshift < 0 ) { | 127 | 3.58M | return silk_LSHIFT_SAT32(result, -lshift); | 128 | 494M | } else { | 129 | 494M | if( lshift < 32){ | 130 | 494M | return silk_RSHIFT(result, lshift); | 131 | 494M | } else { | 132 | | /* Avoid undefined result */ | 133 | 0 | return 0; | 134 | 0 | } | 135 | 494M | } | 136 | 498M | } |
NSQ_sse4_1.c:silk_DIV32_varQ Line | Count | Source | 98 | 4.84M | { | 99 | 4.84M | opus_int a_headrm, b_headrm, lshift; | 100 | 4.84M | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 101 | | | 102 | 4.84M | silk_assert( b32 != 0 ); | 103 | 4.84M | silk_assert( Qres >= 0 ); | 104 | | | 105 | | /* Compute number of bits head room and normalize inputs */ | 106 | 4.84M | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 107 | 4.84M | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 108 | 4.84M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 109 | 4.84M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 110 | | | 111 | | /* Inverse of b32, with 14 bits of precision */ | 112 | 4.84M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 113 | | | 114 | | /* First approximation */ | 115 | 4.84M | 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 | 4.84M | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 120 | | | 121 | | /* Refinement */ | 122 | 4.84M | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 123 | | | 124 | | /* Convert to Qres domain */ | 125 | 4.84M | lshift = 29 + a_headrm - b_headrm - Qres; | 126 | 4.84M | if( lshift < 0 ) { | 127 | 103 | return silk_LSHIFT_SAT32(result, -lshift); | 128 | 4.84M | } else { | 129 | 4.84M | if( lshift < 32){ | 130 | 4.84M | return silk_RSHIFT(result, lshift); | 131 | 4.84M | } else { | 132 | | /* Avoid undefined result */ | 133 | 0 | return 0; | 134 | 0 | } | 135 | 4.84M | } | 136 | 4.84M | } |
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 | 498M | { | 99 | 498M | opus_int a_headrm, b_headrm, lshift; | 100 | 498M | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 101 | | | 102 | 498M | silk_assert( b32 != 0 ); | 103 | 498M | silk_assert( Qres >= 0 ); | 104 | | | 105 | | /* Compute number of bits head room and normalize inputs */ | 106 | 498M | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 107 | 498M | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 108 | 498M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 109 | 498M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 110 | | | 111 | | /* Inverse of b32, with 14 bits of precision */ | 112 | 498M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 113 | | | 114 | | /* First approximation */ | 115 | 498M | 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 | 498M | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 120 | | | 121 | | /* Refinement */ | 122 | 498M | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 123 | | | 124 | | /* Convert to Qres domain */ | 125 | 498M | lshift = 29 + a_headrm - b_headrm - Qres; | 126 | 498M | if( lshift < 0 ) { | 127 | 3.58M | return silk_LSHIFT_SAT32(result, -lshift); | 128 | 494M | } else { | 129 | 494M | if( lshift < 32){ | 130 | 494M | return silk_RSHIFT(result, lshift); | 131 | 494M | } else { | 132 | | /* Avoid undefined result */ | 133 | 0 | return 0; | 134 | 0 | } | 135 | 494M | } | 136 | 498M | } |
Unexecuted instantiation: interpolate.c:silk_DIV32_varQ NLSF_encode.c:silk_DIV32_varQ Line | Count | Source | 98 | 1.78G | { | 99 | 1.78G | opus_int a_headrm, b_headrm, lshift; | 100 | 1.78G | opus_int32 b32_inv, a32_nrm, b32_nrm, result; | 101 | | | 102 | 1.78G | silk_assert( b32 != 0 ); | 103 | 1.78G | silk_assert( Qres >= 0 ); | 104 | | | 105 | | /* Compute number of bits head room and normalize inputs */ | 106 | 1.78G | a_headrm = silk_CLZ32( silk_abs(a32) ) - 1; | 107 | 1.78G | a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm */ | 108 | 1.78G | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 109 | 1.78G | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 110 | | | 111 | | /* Inverse of b32, with 14 bits of precision */ | 112 | 1.78G | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 113 | | | 114 | | /* First approximation */ | 115 | 1.78G | 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 | 1.78G | a32_nrm = silk_SUB32_ovflw(a32_nrm, silk_LSHIFT_ovflw( silk_SMMUL(b32_nrm, result), 3 )); /* Q: a_headrm */ | 120 | | | 121 | | /* Refinement */ | 122 | 1.78G | result = silk_SMLAWB(result, a32_nrm, b32_inv); /* Q: 29 + a_headrm - b_headrm */ | 123 | | | 124 | | /* Convert to Qres domain */ | 125 | 1.78G | lshift = 29 + a_headrm - b_headrm - Qres; | 126 | 1.78G | if( lshift < 0 ) { | 127 | 0 | return silk_LSHIFT_SAT32(result, -lshift); | 128 | 1.78G | } else { | 129 | 1.78G | if( lshift < 32){ | 130 | 1.78G | return silk_RSHIFT(result, lshift); | 131 | 1.78G | } else { | 132 | | /* Avoid undefined result */ | 133 | 0 | return 0; | 134 | 0 | } | 135 | 1.78G | } | 136 | 1.78G | } |
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 | 1.00G | { |
144 | 1.00G | opus_int b_headrm, lshift; |
145 | 1.00G | opus_int32 b32_inv, b32_nrm, err_Q32, result; |
146 | | |
147 | 1.00G | silk_assert( b32 != 0 ); |
148 | 1.00G | silk_assert( Qres > 0 ); |
149 | | |
150 | | /* Compute number of bits head room and normalize input */ |
151 | 1.00G | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; |
152 | 1.00G | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ |
153 | | |
154 | | /* Inverse of b32, with 14 bits of precision */ |
155 | 1.00G | 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.00G | 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.00G | err_Q32 = silk_LSHIFT( ((opus_int32)1<<29) - silk_SMULWB(b32_nrm, b32_inv), 3 ); /* Q32 */ |
162 | | |
163 | | /* Refinement */ |
164 | 1.00G | result = silk_SMLAWW(result, err_Q32, b32_inv); /* Q: 61 - b_headrm */ |
165 | | |
166 | | /* Convert to Qres domain */ |
167 | 1.00G | lshift = 61 - b_headrm - Qres; |
168 | 1.00G | if( lshift <= 0 ) { |
169 | 942M | return silk_LSHIFT_SAT32(result, -lshift); |
170 | 942M | } else { |
171 | 64.1M | if( lshift < 32){ |
172 | 64.1M | return silk_RSHIFT(result, lshift); |
173 | 64.1M | }else{ |
174 | | /* Avoid undefined result */ |
175 | 0 | return 0; |
176 | 0 | } |
177 | 64.1M | } |
178 | 1.00G | } 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 | 207k | { | 144 | 207k | opus_int b_headrm, lshift; | 145 | 207k | opus_int32 b32_inv, b32_nrm, err_Q32, result; | 146 | | | 147 | 207k | silk_assert( b32 != 0 ); | 148 | 207k | silk_assert( Qres > 0 ); | 149 | | | 150 | | /* Compute number of bits head room and normalize input */ | 151 | 207k | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 152 | 207k | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 153 | | | 154 | | /* Inverse of b32, with 14 bits of precision */ | 155 | 207k | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 156 | | | 157 | | /* First approximation */ | 158 | 207k | 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 | 207k | err_Q32 = silk_LSHIFT( ((opus_int32)1<<29) - silk_SMULWB(b32_nrm, b32_inv), 3 ); /* Q32 */ | 162 | | | 163 | | /* Refinement */ | 164 | 207k | result = silk_SMLAWW(result, err_Q32, b32_inv); /* Q: 61 - b_headrm */ | 165 | | | 166 | | /* Convert to Qres domain */ | 167 | 207k | lshift = 61 - b_headrm - Qres; | 168 | 207k | if( lshift <= 0 ) { | 169 | 0 | return silk_LSHIFT_SAT32(result, -lshift); | 170 | 207k | } else { | 171 | 207k | if( lshift < 32){ | 172 | 207k | return silk_RSHIFT(result, lshift); | 173 | 207k | }else{ | 174 | | /* Avoid undefined result */ | 175 | 0 | return 0; | 176 | 0 | } | 177 | 207k | } | 178 | 207k | } |
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 | 664M | { | 144 | 664M | opus_int b_headrm, lshift; | 145 | 664M | opus_int32 b32_inv, b32_nrm, err_Q32, result; | 146 | | | 147 | 664M | silk_assert( b32 != 0 ); | 148 | 664M | silk_assert( Qres > 0 ); | 149 | | | 150 | | /* Compute number of bits head room and normalize input */ | 151 | 664M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 152 | 664M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 153 | | | 154 | | /* Inverse of b32, with 14 bits of precision */ | 155 | 664M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 156 | | | 157 | | /* First approximation */ | 158 | 664M | 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 | 664M | err_Q32 = silk_LSHIFT( ((opus_int32)1<<29) - silk_SMULWB(b32_nrm, b32_inv), 3 ); /* Q32 */ | 162 | | | 163 | | /* Refinement */ | 164 | 664M | result = silk_SMLAWW(result, err_Q32, b32_inv); /* Q: 61 - b_headrm */ | 165 | | | 166 | | /* Convert to Qres domain */ | 167 | 664M | lshift = 61 - b_headrm - Qres; | 168 | 664M | if( lshift <= 0 ) { | 169 | 664M | return silk_LSHIFT_SAT32(result, -lshift); | 170 | 664M | } 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 | 664M | } |
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.62M | { | 144 | 1.62M | opus_int b_headrm, lshift; | 145 | 1.62M | opus_int32 b32_inv, b32_nrm, err_Q32, result; | 146 | | | 147 | 1.62M | silk_assert( b32 != 0 ); | 148 | 1.62M | silk_assert( Qres > 0 ); | 149 | | | 150 | | /* Compute number of bits head room and normalize input */ | 151 | 1.62M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 152 | 1.62M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 153 | | | 154 | | /* Inverse of b32, with 14 bits of precision */ | 155 | 1.62M | 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.62M | 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.62M | err_Q32 = silk_LSHIFT( ((opus_int32)1<<29) - silk_SMULWB(b32_nrm, b32_inv), 3 ); /* Q32 */ | 162 | | | 163 | | /* Refinement */ | 164 | 1.62M | result = silk_SMLAWW(result, err_Q32, b32_inv); /* Q: 61 - b_headrm */ | 165 | | | 166 | | /* Convert to Qres domain */ | 167 | 1.62M | lshift = 61 - b_headrm - Qres; | 168 | 1.62M | if( lshift <= 0 ) { | 169 | 146k | return silk_LSHIFT_SAT32(result, -lshift); | 170 | 1.47M | } else { | 171 | 1.47M | if( lshift < 32){ | 172 | 1.47M | return silk_RSHIFT(result, lshift); | 173 | 1.47M | }else{ | 174 | | /* Avoid undefined result */ | 175 | 0 | return 0; | 176 | 0 | } | 177 | 1.47M | } | 178 | 1.62M | } |
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 | 38.5M | { | 144 | 38.5M | opus_int b_headrm, lshift; | 145 | 38.5M | opus_int32 b32_inv, b32_nrm, err_Q32, result; | 146 | | | 147 | 38.5M | silk_assert( b32 != 0 ); | 148 | 38.5M | silk_assert( Qres > 0 ); | 149 | | | 150 | | /* Compute number of bits head room and normalize input */ | 151 | 38.5M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 152 | 38.5M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 153 | | | 154 | | /* Inverse of b32, with 14 bits of precision */ | 155 | 38.5M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 156 | | | 157 | | /* First approximation */ | 158 | 38.5M | 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 | 38.5M | err_Q32 = silk_LSHIFT( ((opus_int32)1<<29) - silk_SMULWB(b32_nrm, b32_inv), 3 ); /* Q32 */ | 162 | | | 163 | | /* Refinement */ | 164 | 38.5M | result = silk_SMLAWW(result, err_Q32, b32_inv); /* Q: 61 - b_headrm */ | 165 | | | 166 | | /* Convert to Qres domain */ | 167 | 38.5M | lshift = 61 - b_headrm - Qres; | 168 | 38.5M | if( lshift <= 0 ) { | 169 | 0 | return silk_LSHIFT_SAT32(result, -lshift); | 170 | 38.5M | } else { | 171 | 38.5M | if( lshift < 32){ | 172 | 38.5M | return silk_RSHIFT(result, lshift); | 173 | 38.5M | }else{ | 174 | | /* Avoid undefined result */ | 175 | 0 | return 0; | 176 | 0 | } | 177 | 38.5M | } | 178 | 38.5M | } |
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 | 26.9M | { | 144 | 26.9M | opus_int b_headrm, lshift; | 145 | 26.9M | opus_int32 b32_inv, b32_nrm, err_Q32, result; | 146 | | | 147 | 26.9M | silk_assert( b32 != 0 ); | 148 | 26.9M | silk_assert( Qres > 0 ); | 149 | | | 150 | | /* Compute number of bits head room and normalize input */ | 151 | 26.9M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 152 | 26.9M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 153 | | | 154 | | /* Inverse of b32, with 14 bits of precision */ | 155 | 26.9M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 156 | | | 157 | | /* First approximation */ | 158 | 26.9M | 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 | 26.9M | err_Q32 = silk_LSHIFT( ((opus_int32)1<<29) - silk_SMULWB(b32_nrm, b32_inv), 3 ); /* Q32 */ | 162 | | | 163 | | /* Refinement */ | 164 | 26.9M | result = silk_SMLAWW(result, err_Q32, b32_inv); /* Q: 61 - b_headrm */ | 165 | | | 166 | | /* Convert to Qres domain */ | 167 | 26.9M | lshift = 61 - b_headrm - Qres; | 168 | 26.9M | if( lshift <= 0 ) { | 169 | 23.2M | return silk_LSHIFT_SAT32(result, -lshift); | 170 | 23.2M | } else { | 171 | 3.67M | if( lshift < 32){ | 172 | 3.67M | return silk_RSHIFT(result, lshift); | 173 | 3.67M | }else{ | 174 | | /* Avoid undefined result */ | 175 | 0 | return 0; | 176 | 0 | } | 177 | 3.67M | } | 178 | 26.9M | } |
Unexecuted instantiation: LP_variable_cutoff.c:silk_INVERSE32_varQ NSQ.c:silk_INVERSE32_varQ Line | Count | Source | 143 | 86.4M | { | 144 | 86.4M | opus_int b_headrm, lshift; | 145 | 86.4M | opus_int32 b32_inv, b32_nrm, err_Q32, result; | 146 | | | 147 | 86.4M | silk_assert( b32 != 0 ); | 148 | 86.4M | silk_assert( Qres > 0 ); | 149 | | | 150 | | /* Compute number of bits head room and normalize input */ | 151 | 86.4M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 152 | 86.4M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 153 | | | 154 | | /* Inverse of b32, with 14 bits of precision */ | 155 | 86.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 | 86.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 | 86.4M | err_Q32 = silk_LSHIFT( ((opus_int32)1<<29) - silk_SMULWB(b32_nrm, b32_inv), 3 ); /* Q32 */ | 162 | | | 163 | | /* Refinement */ | 164 | 86.4M | result = silk_SMLAWW(result, err_Q32, b32_inv); /* Q: 61 - b_headrm */ | 165 | | | 166 | | /* Convert to Qres domain */ | 167 | 86.4M | lshift = 61 - b_headrm - Qres; | 168 | 86.4M | if( lshift <= 0 ) { | 169 | 80.5M | return silk_LSHIFT_SAT32(result, -lshift); | 170 | 80.5M | } else { | 171 | 5.89M | if( lshift < 32){ | 172 | 5.89M | return silk_RSHIFT(result, lshift); | 173 | 5.89M | }else{ | 174 | | /* Avoid undefined result */ | 175 | 0 | return 0; | 176 | 0 | } | 177 | 5.89M | } | 178 | 86.4M | } |
NSQ_del_dec.c:silk_INVERSE32_varQ Line | Count | Source | 143 | 101M | { | 144 | 101M | opus_int b_headrm, lshift; | 145 | 101M | opus_int32 b32_inv, b32_nrm, err_Q32, result; | 146 | | | 147 | 101M | silk_assert( b32 != 0 ); | 148 | 101M | silk_assert( Qres > 0 ); | 149 | | | 150 | | /* Compute number of bits head room and normalize input */ | 151 | 101M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 152 | 101M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 153 | | | 154 | | /* Inverse of b32, with 14 bits of precision */ | 155 | 101M | b32_inv = silk_DIV32_16( silk_int32_MAX >> 2, silk_RSHIFT(b32_nrm, 16) ); /* Q: 29 + 16 - b_headrm */ | 156 | | | 157 | | /* First approximation */ | 158 | 101M | 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 | 101M | err_Q32 = silk_LSHIFT( ((opus_int32)1<<29) - silk_SMULWB(b32_nrm, b32_inv), 3 ); /* Q32 */ | 162 | | | 163 | | /* Refinement */ | 164 | 101M | result = silk_SMLAWW(result, err_Q32, b32_inv); /* Q: 61 - b_headrm */ | 165 | | | 166 | | /* Convert to Qres domain */ | 167 | 101M | lshift = 61 - b_headrm - Qres; | 168 | 101M | if( lshift <= 0 ) { | 169 | 93.9M | return silk_LSHIFT_SAT32(result, -lshift); | 170 | 93.9M | } else { | 171 | 7.92M | if( lshift < 32){ | 172 | 7.92M | return silk_RSHIFT(result, lshift); | 173 | 7.92M | }else{ | 174 | | /* Avoid undefined result */ | 175 | 0 | return 0; | 176 | 0 | } | 177 | 7.92M | } | 178 | 101M | } |
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 | 87.0M | { | 144 | 87.0M | opus_int b_headrm, lshift; | 145 | 87.0M | opus_int32 b32_inv, b32_nrm, err_Q32, result; | 146 | | | 147 | 87.0M | silk_assert( b32 != 0 ); | 148 | 87.0M | silk_assert( Qres > 0 ); | 149 | | | 150 | | /* Compute number of bits head room and normalize input */ | 151 | 87.0M | b_headrm = silk_CLZ32( silk_abs(b32) ) - 1; | 152 | 87.0M | b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm */ | 153 | | | 154 | | /* Inverse of b32, with 14 bits of precision */ | 155 | 87.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 | 87.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 | 87.0M | err_Q32 = silk_LSHIFT( ((opus_int32)1<<29) - silk_SMULWB(b32_nrm, b32_inv), 3 ); /* Q32 */ | 162 | | | 163 | | /* Refinement */ | 164 | 87.0M | result = silk_SMLAWW(result, err_Q32, b32_inv); /* Q: 61 - b_headrm */ | 165 | | | 166 | | /* Convert to Qres domain */ | 167 | 87.0M | lshift = 61 - b_headrm - Qres; | 168 | 87.0M | if( lshift <= 0 ) { | 169 | 80.6M | return silk_LSHIFT_SAT32(result, -lshift); | 170 | 80.6M | } else { | 171 | 6.42M | if( lshift < 32){ | 172 | 6.42M | return silk_RSHIFT(result, lshift); | 173 | 6.42M | }else{ | 174 | | /* Avoid undefined result */ | 175 | 0 | return 0; | 176 | 0 | } | 177 | 6.42M | } | 178 | 87.0M | } |
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 */ |