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 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 vst1_lane_s32(cross_correlation, vreinterpret_s32_s64(sum2), 0); | 67 vst1_lane_s32(cross_correlation, vreinterpret_s32_s64(sum2), 0); |
68 #endif | 68 #endif |
69 } | 69 } |
70 | 70 |
71 /* NEON version of WebRtcSpl_CrossCorrelation() for ARM32/64 platforms. */ | 71 /* NEON version of WebRtcSpl_CrossCorrelation() for ARM32/64 platforms. */ |
72 void WebRtcSpl_CrossCorrelationNeon(int32_t* cross_correlation, | 72 void WebRtcSpl_CrossCorrelationNeon(int32_t* cross_correlation, |
73 const int16_t* seq1, | 73 const int16_t* seq1, |
74 const int16_t* seq2, | 74 const int16_t* seq2, |
75 int16_t dim_seq, | 75 int16_t dim_seq, |
76 int16_t dim_cross_correlation, | 76 int16_t dim_cross_correlation, |
77 int16_t right_shifts, | 77 int right_shifts, |
78 int16_t step_seq2) { | 78 int step_seq2) { |
79 int i = 0; | 79 int i = 0; |
80 | 80 |
81 for (i = 0; i < dim_cross_correlation; i++) { | 81 for (i = 0; i < dim_cross_correlation; i++) { |
82 const int16_t* seq1_ptr = seq1; | 82 const int16_t* seq1_ptr = seq1; |
83 const int16_t* seq2_ptr = seq2 + (step_seq2 * i); | 83 const int16_t* seq2_ptr = seq2 + (step_seq2 * i); |
84 | 84 |
85 DotProductWithScaleNeon(cross_correlation, | 85 DotProductWithScaleNeon(cross_correlation, |
86 seq1_ptr, | 86 seq1_ptr, |
87 seq2_ptr, | 87 seq2_ptr, |
88 dim_seq, | 88 dim_seq, |
89 right_shifts); | 89 right_shifts); |
90 cross_correlation++; | 90 cross_correlation++; |
91 } | 91 } |
92 } | 92 } |
OLD | NEW |