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

github.com/mumble-voip/celt-0.7.0.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marc Valin <Jean-Marc.Valin@csiro.au>2008-02-25 06:05:10 +0300
committerJean-Marc Valin <Jean-Marc.Valin@csiro.au>2008-02-25 06:12:10 +0300
commit49ca99efa524928080db0774eed01beba7be45e2 (patch)
tree1d0efcdd0d42afb0bccd1fcd58a69e429c3c2806 /configure.ac
parentbd43729ecdbbf6d37042d5a35f2b9decb4273aa0 (diff)
fixed-point: initial support for using the fixed-point MDCT (rest is still all
float)
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac15
1 files changed, 15 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 04c2736..c2b2953 100644
--- a/configure.ac
+++ b/configure.ac
@@ -88,6 +88,21 @@ AC_DEFINE_UNQUOTED(CELT_MINOR_VERSION, ${CELT_MINOR_VERSION}, [Version minor])
AC_DEFINE_UNQUOTED(CELT_MICRO_VERSION, ${CELT_MICRO_VERSION}, [Version micro])
AC_DEFINE_UNQUOTED(CELT_EXTRA_VERSION, "${CELT_EXTRA_VERSION}", [Version extra])
+AC_ARG_ENABLE(fixed-point, [ --enable-fixed-point Compile as fixed-point],
+[if test "$enableval" = yes; then
+ AC_DEFINE([FIXED_POINT], , [Compile as fixed-point])
+ AC_DEFINE([DOUBLE_PRECISION], , [Compile as fixed-point])
+else
+ AC_DEFINE([FLOATING_POINT], , [Compile as floating-point])
+fi],
+AC_DEFINE([FLOATING_POINT], , [Compile as floating-point]))
+
+AC_ARG_ENABLE(fixed-point-debug, [ --enable-fixed-point-debug Debug fixed-point implementation],
+[if test "$enableval" = yes; then
+ AC_DEFINE([FIXED_DEBUG], , [Debug fixed-point implementation])
+fi])
+
+
AC_CHECK_SIZEOF(short)
AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(long)