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

Side by Side Diff: webrtc/modules/audio_processing/aec/aec_core_neon.cc

Issue 1881153003: Moved the aec_rdft*.c files to be built using C++ (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase with latest master Created 4 years, 8 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) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 * The core AEC algorithm, neon version of speed-critical functions. 12 * The core AEC algorithm, neon version of speed-critical functions.
13 * 13 *
14 * Based on aec_core_sse2.c. 14 * Based on aec_core_sse2.c.
15 */ 15 */
16 16
17 #include <arm_neon.h> 17 #include <arm_neon.h>
18 #include <math.h> 18 #include <math.h>
19 #include <string.h> // memset 19 #include <string.h> // memset
20 20
21 extern "C" { 21 extern "C" {
22 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar y.h" 22 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar y.h"
23 } 23 }
24 #include "webrtc/modules/audio_processing/aec/aec_common.h" 24 #include "webrtc/modules/audio_processing/aec/aec_common.h"
25 #include "webrtc/modules/audio_processing/aec/aec_core_internal.h" 25 #include "webrtc/modules/audio_processing/aec/aec_core_internal.h"
26 extern "C" {
27 #include "webrtc/modules/audio_processing/aec/aec_rdft.h" 26 #include "webrtc/modules/audio_processing/aec/aec_rdft.h"
28 }
29 27
30 namespace webrtc { 28 namespace webrtc {
31 29
32 enum { kShiftExponentIntoTopMantissa = 8 }; 30 enum { kShiftExponentIntoTopMantissa = 8 };
33 enum { kFloatExponentShift = 23 }; 31 enum { kFloatExponentShift = 23 };
34 32
35 __inline static float MulRe(float aRe, float aIm, float bRe, float bIm) { 33 __inline static float MulRe(float aRe, float aIm, float bRe, float bIm) {
36 return aRe * bRe - aIm * bIm; 34 return aRe * bRe - aIm * bIm;
37 } 35 }
38 36
(...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 WebRtcAec_FilterFar = FilterFarNEON; 722 WebRtcAec_FilterFar = FilterFarNEON;
725 WebRtcAec_ScaleErrorSignal = ScaleErrorSignalNEON; 723 WebRtcAec_ScaleErrorSignal = ScaleErrorSignalNEON;
726 WebRtcAec_FilterAdaptation = FilterAdaptationNEON; 724 WebRtcAec_FilterAdaptation = FilterAdaptationNEON;
727 WebRtcAec_OverdriveAndSuppress = OverdriveAndSuppressNEON; 725 WebRtcAec_OverdriveAndSuppress = OverdriveAndSuppressNEON;
728 WebRtcAec_SubbandCoherence = SubbandCoherenceNEON; 726 WebRtcAec_SubbandCoherence = SubbandCoherenceNEON;
729 WebRtcAec_StoreAsComplex = StoreAsComplexNEON; 727 WebRtcAec_StoreAsComplex = StoreAsComplexNEON;
730 WebRtcAec_PartitionDelay = PartitionDelayNEON; 728 WebRtcAec_PartitionDelay = PartitionDelayNEON;
731 WebRtcAec_WindowData = WindowDataNEON; 729 WebRtcAec_WindowData = WindowDataNEON;
732 } 730 }
733 } // namespace webrtc 731 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/aec/aec_core_mips.cc ('k') | webrtc/modules/audio_processing/aec/aec_core_sse2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698