From fbb5c473b4329dee3e49c98e069526414c76ccad Mon Sep 17 00:00:00 2001 From: Pascal Massimino Date: Fri, 13 Jan 2017 10:05:21 +0100 Subject: [PATCH] ARM: don't use USE_GENERIC_TREE It's 1-2% faster to use hard-coded tree on ARM Change-Id: I54403a70f6c692e50148c33f36833588957c20ee --- src/dec/tree.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/dec/tree.c b/src/dec/tree.c index c2007ea7..3a69dc8e 100644 --- a/src/dec/tree.c +++ b/src/dec/tree.c @@ -14,7 +14,10 @@ #include "./vp8i.h" #include "../utils/bit_reader_inl.h" +#if !defined(__arm__) && !defined(_M_ARM) && !defined(__aarch64__) +// using a table is ~1-2% slower on ARM. Prefer the coded-tree approach then. #define USE_GENERIC_TREE +#endif #ifdef USE_GENERIC_TREE static const int8_t kYModesIntra4[18] = {