OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 | 150 |
151 --k; | 151 --k; |
152 l = istep; | 152 l = istep; |
153 } | 153 } |
154 } | 154 } |
155 return 0; | 155 return 0; |
156 } | 156 } |
157 | 157 |
158 int WebRtcSpl_ComplexIFFT(int16_t frfi[], int stages, int mode) | 158 int WebRtcSpl_ComplexIFFT(int16_t frfi[], int stages, int mode) |
159 { | 159 { |
160 int i, j, l, k, istep, n, m, scale, shift; | 160 size_t i, j, l, istep, n, m; |
| 161 int k, scale, shift; |
161 int16_t wr, wi; | 162 int16_t wr, wi; |
162 int32_t tr32, ti32, qr32, qi32; | 163 int32_t tr32, ti32, qr32, qi32; |
163 int32_t tmp32, round2; | 164 int32_t tmp32, round2; |
164 | 165 |
165 /* The 1024-value is a constant given from the size of kSinTable1024[], | 166 /* The 1024-value is a constant given from the size of kSinTable1024[], |
166 * and should not be changed depending on the input parameter 'stages' | 167 * and should not be changed depending on the input parameter 'stages' |
167 */ | 168 */ |
168 n = 1 << stages; | 169 n = 1 << stages; |
169 if (n > 1024) | 170 if (n > 1024) |
170 return -1; | 171 return -1; |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 (qi32 + ti32 + round2) >> (shift + CIFFTSFT)); | 289 (qi32 + ti32 + round2) >> (shift + CIFFTSFT)); |
289 } | 290 } |
290 } | 291 } |
291 | 292 |
292 } | 293 } |
293 --k; | 294 --k; |
294 l = istep; | 295 l = istep; |
295 } | 296 } |
296 return scale; | 297 return scale; |
297 } | 298 } |
OLD | NEW |