| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 644 | 644 |
| 645 void WebRtcAec_OverdriveAndSuppress_mips(AecCore* aec, | 645 void WebRtcAec_OverdriveAndSuppress_mips(AecCore* aec, |
| 646 float hNl[PART_LEN1], | 646 float hNl[PART_LEN1], |
| 647 const float hNlFb, | 647 const float hNlFb, |
| 648 float efw[2][PART_LEN1]) { | 648 float efw[2][PART_LEN1]) { |
| 649 int i; | 649 int i; |
| 650 const float one = 1.0; | 650 const float one = 1.0; |
| 651 float* p_hNl; | 651 float* p_hNl; |
| 652 float* p_efw0; | 652 float* p_efw0; |
| 653 float* p_efw1; | 653 float* p_efw1; |
| 654 float* p_WebRtcAec_wC; | 654 const float* p_WebRtcAec_wC; |
| 655 float temp1, temp2, temp3, temp4; | 655 float temp1, temp2, temp3, temp4; |
| 656 | 656 |
| 657 p_hNl = &hNl[0]; | 657 p_hNl = &hNl[0]; |
| 658 p_efw0 = &efw[0][0]; | 658 p_efw0 = &efw[0][0]; |
| 659 p_efw1 = &efw[1][0]; | 659 p_efw1 = &efw[1][0]; |
| 660 p_WebRtcAec_wC = reinterpret_cast<float*>(&WebRtcAec_weightCurve[0]); | 660 p_WebRtcAec_wC = &WebRtcAec_weightCurve[0]; |
| 661 | 661 |
| 662 for (i = 0; i < PART_LEN1; i++) { | 662 for (i = 0; i < PART_LEN1; i++) { |
| 663 // Weight subbands | 663 // Weight subbands |
| 664 __asm __volatile( | 664 __asm __volatile( |
| 665 ".set push \n\t" | 665 ".set push \n\t" |
| 666 ".set noreorder \n\t" | 666 ".set noreorder \n\t" |
| 667 "lwc1 %[temp1], 0(%[p_hNl]) \n\t" | 667 "lwc1 %[temp1], 0(%[p_hNl]) \n\t" |
| 668 "lwc1 %[temp2], 0(%[p_wC]) \n\t" | 668 "lwc1 %[temp2], 0(%[p_wC]) \n\t" |
| 669 "c.lt.s %[hNlFb], %[temp1] \n\t" | 669 "c.lt.s %[hNlFb], %[temp1] \n\t" |
| 670 "bc1f 1f \n\t" | 670 "bc1f 1f \n\t" |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 774 : "memory"); | 774 : "memory"); |
| 775 } | 775 } |
| 776 | 776 |
| 777 void WebRtcAec_InitAec_mips(void) { | 777 void WebRtcAec_InitAec_mips(void) { |
| 778 WebRtcAec_FilterFar = WebRtcAec_FilterFar_mips; | 778 WebRtcAec_FilterFar = WebRtcAec_FilterFar_mips; |
| 779 WebRtcAec_FilterAdaptation = WebRtcAec_FilterAdaptation_mips; | 779 WebRtcAec_FilterAdaptation = WebRtcAec_FilterAdaptation_mips; |
| 780 WebRtcAec_ScaleErrorSignal = WebRtcAec_ScaleErrorSignal_mips; | 780 WebRtcAec_ScaleErrorSignal = WebRtcAec_ScaleErrorSignal_mips; |
| 781 WebRtcAec_ComfortNoise = WebRtcAec_ComfortNoise_mips; | 781 WebRtcAec_ComfortNoise = WebRtcAec_ComfortNoise_mips; |
| 782 WebRtcAec_OverdriveAndSuppress = WebRtcAec_OverdriveAndSuppress_mips; | 782 WebRtcAec_OverdriveAndSuppress = WebRtcAec_OverdriveAndSuppress_mips; |
| 783 } | 783 } |
| OLD | NEW |