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

Side by Side Diff: webrtc/modules/audio_coding/codecs/isac/fix/source/lattice.c

Issue 2947383002: Put attribute before function name instead of after, as required by GCC (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « webrtc/modules/audio_coding/codecs/isac/fix/source/entropy_coding.c ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/codecs/isac/fix/source/entropy_coding.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698