From c0eb3ff7d423c167025645fa3a64409d0a026598 Mon Sep 17 00:00:00 2001 From: James Zern Date: Sat, 15 Jul 2017 11:54:25 -0700 Subject: [PATCH] dec_wasm,x86: define ENABLE_X86_BUILTIN_ADDSUB_SAT this matches the behavior for aarch64 Change-Id: I243ca6cc5ffec107065a7e0dc442ee69322936ae --- src/dsp/dec_wasm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/dsp/dec_wasm.c b/src/dsp/dec_wasm.c index ce60b842..3b3fc543 100644 --- a/src/dsp/dec_wasm.c +++ b/src/dsp/dec_wasm.c @@ -329,8 +329,9 @@ static void Transform(const int16_t* in, uint8_t* dst, int do_two) { {i8x16,i16x8}.{add,sub}_saturate_[su]. */ -// For testing purposes. -// #define ENABLE_X86_BUILTIN_ADDSUB_SAT +#if defined(__i386__) || defined(__x86_64__) +#define ENABLE_X86_BUILTIN_ADDSUB_SAT +#endif #if defined(__aarch64__) // For now, this only works for aarch64