| OLD | NEW |
| 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_optimized_methods.h" |
| 26 #include "webrtc/modules/audio_processing/aec/aec_rdft.h" | 26 #include "webrtc/modules/audio_processing/aec/aec_rdft.h" |
| 27 | 27 |
| 28 namespace webrtc { | 28 namespace webrtc { |
| 29 | 29 |
| 30 enum { kShiftExponentIntoTopMantissa = 8 }; | 30 enum { kShiftExponentIntoTopMantissa = 8 }; |
| 31 enum { kFloatExponentShift = 23 }; | 31 enum { kFloatExponentShift = 23 }; |
| 32 | 32 |
| 33 __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) { |
| 34 return aRe * bRe - aIm * bIm; | 34 return aRe * bRe - aIm * bIm; |
| 35 } | 35 } |
| (...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 727 WebRtcAec_FilterAdaptation = FilterAdaptationNEON; | 727 WebRtcAec_FilterAdaptation = FilterAdaptationNEON; |
| 728 WebRtcAec_Overdrive = OverdriveNEON; | 728 WebRtcAec_Overdrive = OverdriveNEON; |
| 729 WebRtcAec_Suppress = SuppressNEON; | 729 WebRtcAec_Suppress = SuppressNEON; |
| 730 WebRtcAec_ComputeCoherence = ComputeCoherenceNEON; | 730 WebRtcAec_ComputeCoherence = ComputeCoherenceNEON; |
| 731 WebRtcAec_UpdateCoherenceSpectra = UpdateCoherenceSpectraNEON; | 731 WebRtcAec_UpdateCoherenceSpectra = UpdateCoherenceSpectraNEON; |
| 732 WebRtcAec_StoreAsComplex = StoreAsComplexNEON; | 732 WebRtcAec_StoreAsComplex = StoreAsComplexNEON; |
| 733 WebRtcAec_PartitionDelay = PartitionDelayNEON; | 733 WebRtcAec_PartitionDelay = PartitionDelayNEON; |
| 734 WebRtcAec_WindowData = WindowDataNEON; | 734 WebRtcAec_WindowData = WindowDataNEON; |
| 735 } | 735 } |
| 736 } // namespace webrtc | 736 } // namespace webrtc |
| OLD | NEW |