| 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  | 
|   11 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar
     y.h" |   11 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar
     y.h" | 
|   12  |   12  | 
|   13 void WebRtcSpl_CrossCorrelation_mips(int32_t* cross_correlation, |   13 void WebRtcSpl_CrossCorrelation_mips(int32_t* cross_correlation, | 
|   14                                      const int16_t* seq1, |   14                                      const int16_t* seq1, | 
|   15                                      const int16_t* seq2, |   15                                      const int16_t* seq2, | 
|   16                                      int16_t dim_seq, |   16                                      int16_t dim_seq, | 
|   17                                      int16_t dim_cross_correlation, |   17                                      int16_t dim_cross_correlation, | 
|   18                                      int right_shifts, |   18                                      int16_t right_shifts, | 
|   19                                      int step_seq2) { |   19                                      int16_t step_seq2) { | 
|   20  |   20  | 
|   21   int32_t t0 = 0, t1 = 0, t2 = 0, t3 = 0, sum = 0; |   21   int32_t t0 = 0, t1 = 0, t2 = 0, t3 = 0, sum = 0; | 
|   22   int16_t *pseq2 = NULL; |   22   int16_t *pseq2 = NULL; | 
|   23   int16_t *pseq1 = NULL; |   23   int16_t *pseq1 = NULL; | 
|   24   int16_t *pseq1_0 = (int16_t*)&seq1[0]; |   24   int16_t *pseq1_0 = (int16_t*)&seq1[0]; | 
|   25   int16_t *pseq2_0 = (int16_t*)&seq2[0]; |   25   int16_t *pseq2_0 = (int16_t*)&seq2[0]; | 
|   26   int k = 0; |   26   int k = 0; | 
|   27  |   27  | 
|   28   __asm __volatile ( |   28   __asm __volatile ( | 
|   29     ".set        push                                           \n\t" |   29     ".set        push                                           \n\t" | 
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   95     ".set        pop                                            \n\t" |   95     ".set        pop                                            \n\t" | 
|   96     : [step_seq2] "+r" (step_seq2), [t0] "=&r" (t0), [t1] "=&r" (t1), |   96     : [step_seq2] "+r" (step_seq2), [t0] "=&r" (t0), [t1] "=&r" (t1), | 
|   97       [t2] "=&r" (t2), [t3] "=&r" (t3), [pseq1] "=&r" (pseq1), |   97       [t2] "=&r" (t2), [t3] "=&r" (t3), [pseq1] "=&r" (pseq1), | 
|   98       [pseq2] "=&r" (pseq2), [pseq1_0] "+r" (pseq1_0), [pseq2_0] "+r" (pseq2_0), |   98       [pseq2] "=&r" (pseq2), [pseq1_0] "+r" (pseq1_0), [pseq2_0] "+r" (pseq2_0), | 
|   99       [k] "=&r" (k), [dim_cc] "+r" (dim_cross_correlation), [sum] "=&r" (sum), |   99       [k] "=&r" (k), [dim_cc] "+r" (dim_cross_correlation), [sum] "=&r" (sum), | 
|  100       [cc] "+r" (cross_correlation) |  100       [cc] "+r" (cross_correlation) | 
|  101     : [dim_seq] "r" (dim_seq), [right_shifts] "r" (right_shifts) |  101     : [dim_seq] "r" (dim_seq), [right_shifts] "r" (right_shifts) | 
|  102     : "hi", "lo", "memory" |  102     : "hi", "lo", "memory" | 
|  103   ); |  103   ); | 
|  104 } |  104 } | 
| OLD | NEW |