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

Unified Diff: webrtc/common_audio/signal_processing/include/spl_inl_mips.h

Issue 2739143002: Revert of Enable cpplint and fix cpplint errors in webrtc/*audio (Closed)
Patch Set: Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/common_audio/signal_processing/include/spl_inl_mips.h
diff --git a/webrtc/common_audio/signal_processing/include/spl_inl_mips.h b/webrtc/common_audio/signal_processing/include/spl_inl_mips.h
index 90fa07a1fe2caf9d5bd0b1eff7608c3b9e8dfa60..cd04bddcfaac5b86be1aadbf6b2615b422affd37 100644
--- a/webrtc/common_audio/signal_processing/include/spl_inl_mips.h
+++ b/webrtc/common_audio/signal_processing/include/spl_inl_mips.h
@@ -12,8 +12,8 @@
// This header file includes the inline functions in
// the fix point signal processing library.
-#ifndef WEBRTC_COMMON_AUDIO_SIGNAL_PROCESSING_INCLUDE_SPL_INL_MIPS_H_
-#define WEBRTC_COMMON_AUDIO_SIGNAL_PROCESSING_INCLUDE_SPL_INL_MIPS_H_
+#ifndef WEBRTC_SPL_SPL_INL_MIPS_H_
+#define WEBRTC_SPL_SPL_INL_MIPS_H_
static __inline int32_t WEBRTC_SPL_MUL_16_16(int32_t a,
int32_t b) {
@@ -33,7 +33,8 @@
"mul %[value32], %[a1], %[b1] \n\t"
: [value32] "=r" (value32), [a1] "=&r" (a1), [b1] "=&r" (b1)
: [a] "r" (a), [b] "r" (b)
- : "hi", "lo");
+ : "hi", "lo"
+ );
return value32;
}
@@ -60,7 +61,8 @@
: [value32] "=&r" (value32), [b1] "=&r" (b1), [b2] "=&r" (b2),
[a1] "=&r" (a1)
: [a] "r" (a), [b] "r" (b)
- : "hi", "lo");
+ : "hi", "lo"
+ );
return value32;
}
@@ -70,7 +72,8 @@
"shll_s.w %[value32], %[value32], 16 \n\t"
"sra %[value32], %[value32], 16 \n\t"
: [value32] "+r" (value32)
- :);
+ :
+ );
int16_t out16 = (int16_t)value32;
return out16;
}
@@ -81,7 +84,8 @@
__asm __volatile(
"addq_s.ph %[value32], %[a], %[b] \n\t"
: [value32] "=r" (value32)
- : [a] "r" (a), [b] "r" (b) );
+ : [a] "r" (a), [b] "r" (b)
+ );
return (int16_t)value32;
}
@@ -91,7 +95,8 @@
__asm __volatile(
"addq_s.w %[l_sum], %[l_var1], %[l_var2] \n\t"
: [l_sum] "=r" (l_sum)
- : [l_var1] "r" (l_var1), [l_var2] "r" (l_var2) );
+ : [l_var1] "r" (l_var1), [l_var2] "r" (l_var2)
+ );
return l_sum;
}
@@ -102,7 +107,8 @@
__asm __volatile(
"subq_s.ph %[value32], %[var1], %[var2] \n\t"
: [value32] "=r" (value32)
- : [var1] "r" (var1), [var2] "r" (var2) );
+ : [var1] "r" (var1), [var2] "r" (var2)
+ );
return (int16_t)value32;
}
@@ -113,7 +119,8 @@
__asm __volatile(
"subq_s.w %[l_diff], %[l_var1], %[l_var2] \n\t"
: [l_diff] "=r" (l_diff)
- : [l_var1] "r" (l_var1), [l_var2] "r" (l_var2) );
+ : [l_var1] "r" (l_var1), [l_var2] "r" (l_var2)
+ );
return l_diff;
}
@@ -127,7 +134,8 @@
"clz %[bits], %[n] \n\t"
"subu %[bits], %[i32], %[bits] \n\t"
: [bits] "=&r" (bits)
- : [n] "r" (n), [i32] "r" (i32) );
+ : [n] "r" (n), [i32] "r" (i32)
+ );
return (int16_t)bits;
}
@@ -149,7 +157,8 @@
"2: \n\t"
".set pop \n\t"
: [zeros]"=&r"(zeros)
- : [a] "r" (a) );
+ : [a] "r" (a)
+ );
return (int16_t)zeros;
}
@@ -160,7 +169,8 @@
__asm __volatile(
"clz %[zeros], %[a] \n\t"
: [zeros] "=r" (zeros)
- : [a] "r" (a) );
+ : [a] "r" (a)
+ );
return (int16_t)(zeros & 0x1f);
}
@@ -183,7 +193,8 @@
"2: \n\t"
".set pop \n\t"
: [zeros]"=&r"(zeros)
- : [a0] "r" (a0) );
+ : [a0] "r" (a0)
+ );
return (int16_t)zeros;
}
@@ -206,8 +217,9 @@
"addu %[c1], %[c], %[res] \n\t"
: [c1] "=r" (c1), [res] "=&r" (res)
: [a] "r" (a), [b] "r" (b), [c] "r" (c)
- : "hi", "lo");
+ : "hi", "lo"
+ );
return (c1);
}
-#endif // WEBRTC_COMMON_AUDIO_SIGNAL_PROCESSING_INCLUDE_SPL_INL_MIPS_H_
+#endif // WEBRTC_SPL_SPL_INL_MIPS_H_

Powered by Google App Engine
This is Rietveld 408576698