Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: webrtc/modules/audio_processing/ns/nsx_core_neon.c

Issue 1230503003: Update a ton of audio code to use size_t more correctly and in general reduce (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Resync Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/ns/nsx_core_mips.c ('k') | webrtc/modules/audio_processing/rms_level.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698