diff options
author | William Wilgus <me.theuser@yahoo.com> | 2019-01-04 02:01:18 -0600 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2021-04-23 14:23:04 +0000 |
commit | 14c6bb798d6bebc80f07e863236adbaf8d156a9c (patch) | |
tree | 551a4b641906c2626af844fa3239c1b2b1ff0ad3 /lib/rbcodec/codecs/libopus/celt/arm/fixed_armv5e.h | |
parent | 75d93937965ec4df70d37df6d4feea04577c996b (diff) | |
download | rockbox-14c6bb798d6bebc80f07e863236adbaf8d156a9c.tar.gz rockbox-14c6bb798d6bebc80f07e863236adbaf8d156a9c.zip |
Sync opus codec to upstream git
Change-Id: I0cfcc0005c4ad7bfbb1aaf454188ce70fb043dc1
Diffstat (limited to 'lib/rbcodec/codecs/libopus/celt/arm/fixed_armv5e.h')
-rw-r--r-- | lib/rbcodec/codecs/libopus/celt/arm/fixed_armv5e.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rbcodec/codecs/libopus/celt/arm/fixed_armv5e.h b/lib/rbcodec/codecs/libopus/celt/arm/fixed_armv5e.h index 36a6321101..6bf73cbace 100644 --- a/lib/rbcodec/codecs/libopus/celt/arm/fixed_armv5e.h +++ b/lib/rbcodec/codecs/libopus/celt/arm/fixed_armv5e.h | |||
@@ -59,7 +59,7 @@ static OPUS_INLINE opus_val32 MULT16_32_Q15_armv5e(opus_val16 a, opus_val32 b) | |||
59 | : "=r"(res) | 59 | : "=r"(res) |
60 | : "r"(b), "r"(a) | 60 | : "r"(b), "r"(a) |
61 | ); | 61 | ); |
62 | return res<<1; | 62 | return SHL32(res,1); |
63 | } | 63 | } |
64 | #define MULT16_32_Q15(a, b) (MULT16_32_Q15_armv5e(a, b)) | 64 | #define MULT16_32_Q15(a, b) (MULT16_32_Q15_armv5e(a, b)) |
65 | 65 | ||
@@ -76,7 +76,7 @@ static OPUS_INLINE opus_val32 MAC16_32_Q15_armv5e(opus_val32 c, opus_val16 a, | |||
76 | "#MAC16_32_Q15\n\t" | 76 | "#MAC16_32_Q15\n\t" |
77 | "smlawb %0, %1, %2, %3;\n" | 77 | "smlawb %0, %1, %2, %3;\n" |
78 | : "=r"(res) | 78 | : "=r"(res) |
79 | : "r"(b<<1), "r"(a), "r"(c) | 79 | : "r"(SHL32(b,1)), "r"(a), "r"(c) |
80 | ); | 80 | ); |
81 | return res; | 81 | return res; |
82 | } | 82 | } |