diff options
Diffstat (limited to 'lib/rbcodec/codecs/libopus/celt/arm/fixed_armv4.h')
-rw-r--r-- | lib/rbcodec/codecs/libopus/celt/arm/fixed_armv4.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rbcodec/codecs/libopus/celt/arm/fixed_armv4.h b/lib/rbcodec/codecs/libopus/celt/arm/fixed_armv4.h index efb3b1896a..d84888a772 100644 --- a/lib/rbcodec/codecs/libopus/celt/arm/fixed_armv4.h +++ b/lib/rbcodec/codecs/libopus/celt/arm/fixed_armv4.h | |||
@@ -37,7 +37,7 @@ static OPUS_INLINE opus_val32 MULT16_32_Q16_armv4(opus_val16 a, opus_val32 b) | |||
37 | "#MULT16_32_Q16\n\t" | 37 | "#MULT16_32_Q16\n\t" |
38 | "smull %0, %1, %2, %3\n\t" | 38 | "smull %0, %1, %2, %3\n\t" |
39 | : "=&r"(rd_lo), "=&r"(rd_hi) | 39 | : "=&r"(rd_lo), "=&r"(rd_hi) |
40 | : "%r"(b),"r"(a<<16) | 40 | : "%r"(b),"r"(SHL32(a,16)) |
41 | ); | 41 | ); |
42 | return rd_hi; | 42 | return rd_hi; |
43 | } | 43 | } |
@@ -54,10 +54,10 @@ static OPUS_INLINE opus_val32 MULT16_32_Q15_armv4(opus_val16 a, opus_val32 b) | |||
54 | "#MULT16_32_Q15\n\t" | 54 | "#MULT16_32_Q15\n\t" |
55 | "smull %0, %1, %2, %3\n\t" | 55 | "smull %0, %1, %2, %3\n\t" |
56 | : "=&r"(rd_lo), "=&r"(rd_hi) | 56 | : "=&r"(rd_lo), "=&r"(rd_hi) |
57 | : "%r"(b), "r"(a<<16) | 57 | : "%r"(b), "r"(SHL32(a,16)) |
58 | ); | 58 | ); |
59 | /*We intentionally don't OR in the high bit of rd_lo for speed.*/ | 59 | /*We intentionally don't OR in the high bit of rd_lo for speed.*/ |
60 | return rd_hi<<1; | 60 | return SHL32(rd_hi,1); |
61 | } | 61 | } |
62 | #define MULT16_32_Q15(a, b) (MULT16_32_Q15_armv4(a, b)) | 62 | #define MULT16_32_Q15(a, b) (MULT16_32_Q15_armv4(a, b)) |
63 | 63 | ||