| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 void WebRtcNsx_NoiseEstimationNeon(NoiseSuppressionFixedC* inst, | 134 void WebRtcNsx_NoiseEstimationNeon(NoiseSuppressionFixedC* inst, |
| 135 uint16_t* magn, | 135 uint16_t* magn, |
| 136 uint32_t* noise, | 136 uint32_t* noise, |
| 137 int16_t* q_noise) { | 137 int16_t* q_noise) { |
| 138 int16_t lmagn[HALF_ANAL_BLOCKL], counter, countDiv; | 138 int16_t lmagn[HALF_ANAL_BLOCKL], counter, countDiv; |
| 139 int16_t countProd, delta, zeros, frac; | 139 int16_t countProd, delta, zeros, frac; |
| 140 int16_t log2, tabind, logval, tmp16, tmp16no1, tmp16no2; | 140 int16_t log2, tabind, logval, tmp16, tmp16no1, tmp16no2; |
| 141 const int16_t log2_const = 22713; | 141 const int16_t log2_const = 22713; |
| 142 const int16_t width_factor = 21845; | 142 const int16_t width_factor = 21845; |
| 143 | 143 |
| 144 int i, s, offset; | 144 size_t i, s, offset; |
| 145 | 145 |
| 146 tabind = inst->stages - inst->normData; | 146 tabind = inst->stages - inst->normData; |
| 147 assert(tabind < 9); | 147 assert(tabind < 9); |
| 148 assert(tabind > -9); | 148 assert(tabind > -9); |
| 149 if (tabind < 0) { | 149 if (tabind < 0) { |
| 150 logval = -WebRtcNsx_kLogTable[-tabind]; | 150 logval = -WebRtcNsx_kLogTable[-tabind]; |
| 151 } else { | 151 } else { |
| 152 logval = WebRtcNsx_kLogTable[tabind]; | 152 logval = WebRtcNsx_kLogTable[tabind]; |
| 153 } | 153 } |
| 154 | 154 |
| (...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 589 | 589 |
| 590 int16x4_t result_low = vrshrn_n_s32(tmp32_low, 14); | 590 int16x4_t result_low = vrshrn_n_s32(tmp32_low, 14); |
| 591 int16x4_t result_high = vrshrn_n_s32(tmp32_high, 14); | 591 int16x4_t result_high = vrshrn_n_s32(tmp32_high, 14); |
| 592 vst1q_s16(p_start_out, vcombine_s16(result_low, result_high)); | 592 vst1q_s16(p_start_out, vcombine_s16(result_low, result_high)); |
| 593 | 593 |
| 594 p_start_buffer += 8; | 594 p_start_buffer += 8; |
| 595 p_start_window += 8; | 595 p_start_window += 8; |
| 596 p_start_out += 8; | 596 p_start_out += 8; |
| 597 } | 597 } |
| 598 } | 598 } |
| OLD | NEW |