Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(524)

Side by Side Diff: webrtc/common_audio/signal_processing/min_max_operations_mips.c

Issue 2974613003: base->rtc_base: Update .c, .mm and .java files. (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 /* 11 /*
12 * This file contains the implementation of function 12 * This file contains the implementation of function
13 * WebRtcSpl_MaxAbsValueW16() 13 * WebRtcSpl_MaxAbsValueW16()
14 * 14 *
15 * The description header can be found in signal_processing_library.h. 15 * The description header can be found in signal_processing_library.h.
16 * 16 *
17 */ 17 */
18 18
19 #include "webrtc/base/checks.h" 19 #include "webrtc/rtc_base/checks.h"
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 // Maximum absolute value of word16 vector. 22 // Maximum absolute value of word16 vector.
23 int16_t WebRtcSpl_MaxAbsValueW16_mips(const int16_t* vector, size_t length) { 23 int16_t WebRtcSpl_MaxAbsValueW16_mips(const int16_t* vector, size_t length) {
24 int32_t totMax = 0; 24 int32_t totMax = 0;
25 int32_t tmp32_0, tmp32_1, tmp32_2, tmp32_3; 25 int32_t tmp32_0, tmp32_1, tmp32_2, tmp32_3;
26 size_t i, loop_size; 26 size_t i, loop_size;
27 27
28 RTC_DCHECK_GT(length, 0); 28 RTC_DCHECK_GT(length, 0);
29 29
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 366
367 ".set pop \n\t" 367 ".set pop \n\t"
368 368
369 : [tmp1] "=&r" (tmp1), [minimum] "+r" (minimum), [value] "=&r" (value) 369 : [tmp1] "=&r" (tmp1), [minimum] "+r" (minimum), [value] "=&r" (value)
370 : [vector] "r" (vector), [length] "r" (length) 370 : [vector] "r" (vector), [length] "r" (length)
371 : "memory" 371 : "memory"
372 ); 372 );
373 373
374 return minimum; 374 return minimum;
375 } 375 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698