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

Unified Diff: third_party/opus/src/celt/arm/fixed_armv5e.h

Issue 2962373002: [Opus] Update to v1.2.1 (Closed)
Patch Set: Pre-increment instead of post-increment 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/opus/src/celt/arm/fixed_armv4.h ('k') | third_party/opus/src/celt/arm/mdct_arm.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/opus/src/celt/arm/fixed_armv5e.h
diff --git a/third_party/opus/src/celt/arm/fixed_armv5e.h b/third_party/opus/src/celt/arm/fixed_armv5e.h
index 36a6321101357e447d299d37d2a55d751c30d909..6bf73cbace346bf3c2887d2399b508b6b8ba5d77 100644
--- a/third_party/opus/src/celt/arm/fixed_armv5e.h
+++ b/third_party/opus/src/celt/arm/fixed_armv5e.h
@@ -59,7 +59,7 @@ static OPUS_INLINE opus_val32 MULT16_32_Q15_armv5e(opus_val16 a, opus_val32 b)
: "=r"(res)
: "r"(b), "r"(a)
);
- return res<<1;
+ return SHL32(res,1);
}
#define MULT16_32_Q15(a, b) (MULT16_32_Q15_armv5e(a, b))
@@ -76,7 +76,7 @@ static OPUS_INLINE opus_val32 MAC16_32_Q15_armv5e(opus_val32 c, opus_val16 a,
"#MAC16_32_Q15\n\t"
"smlawb %0, %1, %2, %3;\n"
: "=r"(res)
- : "r"(b<<1), "r"(a), "r"(c)
+ : "r"(SHL32(b,1)), "r"(a), "r"(c)
);
return res;
}
« no previous file with comments | « third_party/opus/src/celt/arm/fixed_armv4.h ('k') | third_party/opus/src/celt/arm/mdct_arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698