| 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 } | 202 } |
| 203 //process next frame | 203 //process next frame |
| 204 } | 204 } |
| 205 | 205 |
| 206 return; | 206 return; |
| 207 } | 207 } |
| 208 | 208 |
| 209 // Left shift of an int32_t that's allowed to overflow. (It's still undefined | 209 // Left shift of an int32_t that's allowed to overflow. (It's still undefined |
| 210 // behavior, so not a good idea; this just makes UBSan ignore the violation, so | 210 // behavior, so not a good idea; this just makes UBSan ignore the violation, so |
| 211 // that our old code can continue to do what it's always been doing.) | 211 // that our old code can continue to do what it's always been doing.) |
| 212 static inline int32_t OverflowingLShiftS32(int32_t x, int shift) | 212 static inline int32_t RTC_NO_SANITIZE("shift") |
| 213 RTC_NO_SANITIZE("shift") { | 213 OverflowingLShiftS32(int32_t x, int shift) { |
| 214 return x << shift; | 214 return x << shift; |
| 215 } | 215 } |
| 216 | 216 |
| 217 /* ----------------AR filter-------------------------*/ | 217 /* ----------------AR filter-------------------------*/ |
| 218 /* filter the signal using normalized lattice filter */ | 218 /* filter the signal using normalized lattice filter */ |
| 219 void WebRtcIsacfix_NormLatticeFilterAr(size_t orderCoef, | 219 void WebRtcIsacfix_NormLatticeFilterAr(size_t orderCoef, |
| 220 int16_t *stateGQ0, | 220 int16_t *stateGQ0, |
| 221 int32_t *lat_inQ25, | 221 int32_t *lat_inQ25, |
| 222 int16_t *filt_coefQ15, | 222 int16_t *filt_coefQ15, |
| 223 int32_t *gain_lo_hiQ17, | 223 int32_t *gain_lo_hiQ17, |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 /* cannot use memcpy in the following */ | 313 /* cannot use memcpy in the following */ |
| 314 | 314 |
| 315 for (i=0;i<ord_1;i++) | 315 for (i=0;i<ord_1;i++) |
| 316 { | 316 { |
| 317 stateGQ0[i] = ARgQ0vec[i]; | 317 stateGQ0[i] = ARgQ0vec[i]; |
| 318 } | 318 } |
| 319 } | 319 } |
| 320 | 320 |
| 321 return; | 321 return; |
| 322 } | 322 } |
| OLD | NEW |