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

Side by Side Diff: webrtc/common_audio/signal_processing/include/spl_inl.h

Issue 2969623003: Update includes for webrtc/{base => rtc_base} rename (2/3) (Closed)
Patch Set: Rebased onto 224e65939af87443addfc5bb500fbf434728bd1c and restored sorting in clock.cc Created 3 years, 5 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) 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
11 11
12 // This header file includes the inline functions in 12 // This header file includes the inline functions in
13 // the fix point signal processing library. 13 // the fix point signal processing library.
14 14
15 #ifndef WEBRTC_COMMON_AUDIO_SIGNAL_PROCESSING_INCLUDE_SPL_INL_H_ 15 #ifndef WEBRTC_COMMON_AUDIO_SIGNAL_PROCESSING_INCLUDE_SPL_INL_H_
16 #define WEBRTC_COMMON_AUDIO_SIGNAL_PROCESSING_INCLUDE_SPL_INL_H_ 16 #define WEBRTC_COMMON_AUDIO_SIGNAL_PROCESSING_INCLUDE_SPL_INL_H_
17 17
18 #include "webrtc/base/compile_assert_c.h" 18 #include "webrtc/rtc_base/compile_assert_c.h"
19 19
20 extern const int8_t kWebRtcSpl_CountLeadingZeros32_Table[64]; 20 extern const int8_t kWebRtcSpl_CountLeadingZeros32_Table[64];
21 21
22 // Don't call this directly except in tests! 22 // Don't call this directly except in tests!
23 static __inline int WebRtcSpl_CountLeadingZeros32_NotBuiltin(uint32_t n) { 23 static __inline int WebRtcSpl_CountLeadingZeros32_NotBuiltin(uint32_t n) {
24 // Normalize n by rounding up to the nearest number that is a sequence of 0 24 // Normalize n by rounding up to the nearest number that is a sequence of 0
25 // bits followed by a sequence of 1 bits. This number has the same number of 25 // bits followed by a sequence of 1 bits. This number has the same number of
26 // leading zeros as the original n. There are exactly 33 such values. 26 // leading zeros as the original n. There are exactly 33 such values.
27 n |= n >> 1; 27 n |= n >> 1;
28 n |= n >> 2; 28 n |= n >> 2;
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 } 145 }
146 146
147 static __inline int32_t WebRtc_MulAccumW16(int16_t a, int16_t b, int32_t c) { 147 static __inline int32_t WebRtc_MulAccumW16(int16_t a, int16_t b, int32_t c) {
148 return (a * b + c); 148 return (a * b + c);
149 } 149 }
150 #endif // #if !defined(MIPS32_LE) 150 #endif // #if !defined(MIPS32_LE)
151 151
152 #endif // WEBRTC_ARCH_ARM_V7 152 #endif // WEBRTC_ARCH_ARM_V7
153 153
154 #endif // WEBRTC_COMMON_AUDIO_SIGNAL_PROCESSING_INCLUDE_SPL_INL_H_ 154 #endif // WEBRTC_COMMON_AUDIO_SIGNAL_PROCESSING_INCLUDE_SPL_INL_H_
OLDNEW
« no previous file with comments | « webrtc/common_audio/signal_processing/dot_product_with_scale.cc ('k') | webrtc/common_audio/smoothing_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698