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

Side by Side Diff: webrtc/modules/audio_coding/codecs/isac/fix/source/pitch_filter_armv6.S

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
11 @ Contains the core loop routine for the pitch filter function in iSAC, 11 @ Contains the core loop routine for the pitch filter function in iSAC,
12 @ optimized for ARMv7 platforms. 12 @ optimized for ARMv7 platforms.
13 @ 13 @
14 @ Output is bit-exact with the reference C code in pitch_filter.c. 14 @ Output is bit-exact with the reference C code in pitch_filter.c.
15 15
16 #include "webrtc/system_wrappers/interface/asm_defines.h" 16 #include "webrtc/system_wrappers/interface/asm_defines.h"
17 #include "settings.h" 17 #include "settings.h"
18 18
19 GLOBAL_FUNCTION WebRtcIsacfix_PitchFilterCore 19 GLOBAL_FUNCTION WebRtcIsacfix_PitchFilterCore
20 .align 2 20 .align 2
21 21
22 @ void WebRtcIsacfix_PitchFilterCore(int loopNumber, 22 @ void WebRtcIsacfix_PitchFilterCore(int loopNumber,
23 @ int16_t gain, 23 @ int16_t gain,
24 @ int index, 24 @ size_t index,
25 @ int16_t sign, 25 @ int16_t sign,
26 @ int16_t* inputState, 26 @ int16_t* inputState,
27 @ int16_t* outputBuf2, 27 @ int16_t* outputBuf2,
28 @ const int16_t* coefficient, 28 @ const int16_t* coefficient,
29 @ int16_t* inputBuf, 29 @ int16_t* inputBuf,
30 @ int16_t* outputBuf, 30 @ int16_t* outputBuf,
31 @ int* index2) { 31 @ int* index2) {
32 DEFINE_FUNCTION WebRtcIsacfix_PitchFilterCore 32 DEFINE_FUNCTION WebRtcIsacfix_PitchFilterCore
33 push {r4-r11} 33 push {r4-r11}
34 sub sp, #8 34 sub sp, #8
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 strh r2, [r6], #2 @ outputBuff2[*index2 + PITCH_BUFFSIZE] 134 strh r2, [r6], #2 @ outputBuff2[*index2 + PITCH_BUFFSIZE]
135 bgt LOOP 135 bgt LOOP
136 136
137 add sp, #8 137 add sp, #8
138 pop {r4-r11} 138 pop {r4-r11}
139 bx lr 139 bx lr
140 140
141 .align 2 141 .align 2
142 kDampFilter: 142 kDampFilter:
143 .short -2294, 8192, 20972, 8192, -2294 143 .short -2294, 8192, 20972, 8192, -2294
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698