summaryrefslogtreecommitdiff
path: root/silk
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2016-08-06 01:01:13 -0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2016-08-06 15:09:39 -0400
commitc7bbc3e31fa67da78a41868576672ef01f888ae1 (patch)
tree4cddb731850db74b754af4c7d9b84b9c5a3c1685 /silk
parent09b53529280fd132438d24d39dd0f1614318abfd (diff)
downloadopus-c7bbc3e31fa67da78a41868576672ef01f888ae1.tar.gz
Speeding up PVQ using unlikely() and moving first position out of the loop
Speeds up encoding by another ~1-2%
Diffstat (limited to 'silk')
-rw-r--r--silk/macros.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/silk/macros.h b/silk/macros.h
index d3ca3475..3c67b6e5 100644
--- a/silk/macros.h
+++ b/silk/macros.h
@@ -36,14 +36,6 @@ POSSIBILITY OF SUCH DAMAGE.
#include "opus_defines.h"
#include "arch.h"
-#if OPUS_GNUC_PREREQ(3, 0)
-#define opus_likely(x) (__builtin_expect(!!(x), 1))
-#define opus_unlikely(x) (__builtin_expect(!!(x), 0))
-#else
-#define opus_likely(x) (!!(x))
-#define opus_unlikely(x) (!!(x))
-#endif
-
/* This is an OPUS_INLINE header file for general platform. */
/* (a32 * (opus_int32)((opus_int16)(b32))) >> 16 output have to be 32bit int */