OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 #include <assert.h> | 10 #include <assert.h> |
11 | 11 |
12 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar
y.h" | 12 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar
y.h" |
13 | 13 |
14 void WebRtcSpl_FilterARFastQ12(const int16_t* data_in, | 14 void WebRtcSpl_FilterARFastQ12(const int16_t* data_in, |
15 int16_t* data_out, | 15 int16_t* data_out, |
16 const int16_t* __restrict coefficients, | 16 const int16_t* __restrict coefficients, |
17 int coefficients_length, | 17 size_t coefficients_length, |
18 int data_length) { | 18 size_t data_length) { |
19 int r0, r1, r2, r3; | 19 int r0, r1, r2, r3; |
20 int coef0, offset; | 20 int coef0, offset; |
21 int i, j, k; | 21 int i, j, k; |
22 int coefptr, outptr, tmpout, inptr; | 22 int coefptr, outptr, tmpout, inptr; |
23 #if !defined(MIPS_DSP_R1_LE) | 23 #if !defined(MIPS_DSP_R1_LE) |
24 int max16 = 0x7FFF; | 24 int max16 = 0x7FFF; |
25 int min16 = 0xFFFF8000; | 25 int min16 = 0xFFFF8000; |
26 #endif // #if !defined(MIPS_DSP_R1_LE) | 26 #endif // #if !defined(MIPS_DSP_R1_LE) |
27 | 27 |
28 assert(data_length > 0); | 28 assert(data_length > 0); |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 : [coefficients] "r" (coefficients), [data_length] "r" (data_length), | 131 : [coefficients] "r" (coefficients), [data_length] "r" (data_length), |
132 [coefficients_length] "r" (coefficients_length), | 132 [coefficients_length] "r" (coefficients_length), |
133 #if !defined(MIPS_DSP_R1_LE) | 133 #if !defined(MIPS_DSP_R1_LE) |
134 [max16] "r" (max16), [min16] "r" (min16), | 134 [max16] "r" (max16), [min16] "r" (min16), |
135 #endif | 135 #endif |
136 [data_out] "r" (data_out), [data_in] "r" (data_in) | 136 [data_out] "r" (data_out), [data_in] "r" (data_in) |
137 : "hi", "lo", "memory" | 137 : "hi", "lo", "memory" |
138 ); | 138 ); |
139 } | 139 } |
140 | 140 |
OLD | NEW |