Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Lennox <jonathan@vidyo.com>2015-11-21 07:03:55 +0300
committerTimothy B. Terriberry <tterribe@xiph.org>2016-07-07 01:00:02 +0300
commit81b699c611d2cfc3b30ac1f22311919aa9239e62 (patch)
treea7f282951ff453ddd54d41934ef7eb6177851cec /silk/macros.h
parentc59c138d6c186d921899ca0d12c1938f47f92f01 (diff)
Add OPUS_FAST_INT64 definition of silk_SMULWT.
Signed-off-by: Timothy B. Terriberry <tterribe@xiph.org>
Diffstat (limited to 'silk/macros.h')
-rw-r--r--silk/macros.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/silk/macros.h b/silk/macros.h
index e1e05b9f..7cefedcf 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