aboutsummaryrefslogtreecommitdiff
path: root/celt/arch.h
diff options
context:
space:
mode:
authorJonathan Lennox <jonathan@vidyo.com>2015-11-20 23:03:52 -0500
committerTimothy B. Terriberry <tterribe@xiph.org>2016-07-06 15:00:02 -0700
commit8da4f8495e20708d3ad152af54b52b123f345935 (patch)
tree860193932febb1f607c5bfe5f42fb0da43e7653f /celt/arch.h
parent92f9c82a8abffd4660d1db4853c1598dff0458dc (diff)
downloadlibopus-8da4f8495e20708d3ad152af54b52b123f345935.tar.gz
Move OPUS_FAST_INT64 definition to celt/arch.h.
Signed-off-by: Timothy B. Terriberry <tterribe@xiph.org>
Diffstat (limited to 'celt/arch.h')
-rw-r--r--celt/arch.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/celt/arch.h b/celt/arch.h
index 9f74ddd2..ae8da17c 100644
--- a/celt/arch.h
+++ b/celt/arch.h
@@ -78,6 +78,15 @@ static OPUS_INLINE void _celt_fatal(const char *str, const char *file, int line)
#define UADD32(a,b) ((a)+(b))
#define USUB32(a,b) ((a)-(b))
+/* Set this if opus_int64 is a native type of the CPU. */
+/* Assume that all LP64 architectures have fast 64-bit types; also x86_64
+ (which can be ILP32 for x32) and Win64 (which is LLP64). */
+#if defined(__x86_64__) || defined(__LP64__) || defined(_WIN64)
+#define OPUS_FAST_INT64 1
+#else
+#define OPUS_FAST_INT64 0
+#endif
+
#define PRINT_MIPS(file)
#ifdef FIXED_POINT