| 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 |
| 11 /* | 11 /* |
| 12 * The core AEC algorithm, SSE2 version of speed-critical functions. | 12 * The core AEC algorithm, SSE2 version of speed-critical functions. |
| 13 */ | 13 */ |
| 14 | 14 |
| 15 #include <emmintrin.h> | 15 #include <emmintrin.h> |
| 16 #include <math.h> | 16 #include <math.h> |
| 17 #include <string.h> // memset | 17 #include <string.h> // memset |
| 18 | 18 |
| 19 extern "C" { | 19 extern "C" { |
| 20 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar
y.h" | 20 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar
y.h" |
| 21 } | 21 } |
| 22 #include "webrtc/modules/audio_processing/aec/aec_common.h" | 22 #include "webrtc/modules/audio_processing/aec/aec_common.h" |
| 23 #include "webrtc/modules/audio_processing/aec/aec_core_internal.h" | 23 #include "webrtc/modules/audio_processing/aec/aec_core_optimized_methods.h" |
| 24 #include "webrtc/modules/audio_processing/aec/aec_rdft.h" | 24 #include "webrtc/modules/audio_processing/aec/aec_rdft.h" |
| 25 | 25 |
| 26 namespace webrtc { | 26 namespace webrtc { |
| 27 | 27 |
| 28 __inline static float MulRe(float aRe, float aIm, float bRe, float bIm) { | 28 __inline static float MulRe(float aRe, float aIm, float bRe, float bIm) { |
| 29 return aRe * bRe - aIm * bIm; | 29 return aRe * bRe - aIm * bIm; |
| 30 } | 30 } |
| 31 | 31 |
| 32 __inline static float MulIm(float aRe, float aIm, float bRe, float bIm) { | 32 __inline static float MulIm(float aRe, float aIm, float bRe, float bIm) { |
| 33 return aRe * bIm + aIm * bRe; | 33 return aRe * bIm + aIm * bRe; |
| (...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 741 WebRtcAec_FilterAdaptation = FilterAdaptationSSE2; | 741 WebRtcAec_FilterAdaptation = FilterAdaptationSSE2; |
| 742 WebRtcAec_Overdrive = OverdriveSSE2; | 742 WebRtcAec_Overdrive = OverdriveSSE2; |
| 743 WebRtcAec_Suppress = SuppressSSE2; | 743 WebRtcAec_Suppress = SuppressSSE2; |
| 744 WebRtcAec_ComputeCoherence = ComputeCoherenceSSE2; | 744 WebRtcAec_ComputeCoherence = ComputeCoherenceSSE2; |
| 745 WebRtcAec_UpdateCoherenceSpectra = UpdateCoherenceSpectraSSE2; | 745 WebRtcAec_UpdateCoherenceSpectra = UpdateCoherenceSpectraSSE2; |
| 746 WebRtcAec_StoreAsComplex = StoreAsComplexSSE2; | 746 WebRtcAec_StoreAsComplex = StoreAsComplexSSE2; |
| 747 WebRtcAec_PartitionDelay = PartitionDelaySSE2; | 747 WebRtcAec_PartitionDelay = PartitionDelaySSE2; |
| 748 WebRtcAec_WindowData = WindowDataSSE2; | 748 WebRtcAec_WindowData = WindowDataSSE2; |
| 749 } | 749 } |
| 750 } // namespace webrtc | 750 } // namespace webrtc |
| OLD | NEW |