[opus] [Aarch64 v2 14/18] Add OPUS_FAST_INT64 definition of silk_SMULWT.

Jonathan Lennox jonathan at vidyo.com
Fri Nov 20 20:03:55 PST 2015


---
 silk/macros.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/silk/macros.h b/silk/macros.h
index e1e05b9..7cefedc 100644
--- a/silk/macros.h
+++ b/silk/macros.h
@@ -61,7 +61,11 @@ POSSIBILITY OF SUCH DAMAGE.
 #endif
 
 /* (a32 * (b32 >> 16)) >> 16 */
+#if OPUS_FAST_INT64
+#define silk_SMULWT(a32, b32)            ((opus_int32)(((a32) * (opus_int64)((b32) >> 16)) >> 16))
+#else
 #define silk_SMULWT(a32, b32)            (((a32) >> 16) * ((b32) >> 16) + ((((a32) & 0x0000FFFF) * ((b32) >> 16)) >> 16))
+#endif
 
 /* a32 + (b32 * (c32 >> 16)) >> 16 */
 #if OPUS_FAST_INT64
-- 
2.4.9 (Apple Git-60)



More information about the opus mailing list