summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2014-01-22 08:19:57 -0800
committerMarcel Holtmann <marcel@holtmann.org>2014-01-22 08:19:57 -0800
commitc27737fde0655b498204371815a63bcb780d225b (patch)
treee1324108e86320ccd6b6a0db28b223f39cc31e2e
parentd56ae5945373880b1ff670314a8dc5872a361085 (diff)
downloadsbc-c27737fde0655b498204371815a63bcb780d225b.tar.gz
build: Keep high precision support disabled by default
-rw-r--r--configure.ac16
-rw-r--r--sbc/sbc_tables.h2
2 files changed, 8 insertions, 10 deletions
diff --git a/configure.ac b/configure.ac
index 5f994d1..3a96196 100644
--- a/configure.ac
+++ b/configure.ac
@@ -44,6 +44,14 @@ AC_ARG_ENABLE(pie, AC_HELP_STRING([--enable-pie],
fi
])
+AC_ARG_ENABLE(high-precision, AC_HELP_STRING([--enable-high-precision],
+ [enable SBC high precision support]),
+ [enable_high_precision=${enableval}])
+if (test "${enable_high_precision}" = "yes"); then
+ AC_DEFINE(SBC_HIGH_PRECISION, 1,
+ [Define to 1 to enable high precision build of SBC encoder])
+fi
+
AC_ARG_ENABLE(tools, AC_HELP_STRING([--disable-tools],
[disable SBC tools]), [enable_tools=${enableval}])
AM_CONDITIONAL(TOOLS, test "${enable_tools}" != "no")
@@ -58,12 +66,4 @@ if (test "${enable_tester}" != "no"); then
fi
AM_CONDITIONAL(TESTER, test "${enable_tester}" != "no")
-AC_ARG_ENABLE(high-precision, AC_HELP_STRING([--disable-high-precision],
- [disable high precision support]),
- [enable_high_precision=${enableval}])
-if (test "${enable_high_precision}" != "no"); then
- AC_DEFINE(SBC_HIGH_PRECISION, 1,
- [Define to 1 to enable high precision build of SBC encoder])
-fi
-
AC_OUTPUT(Makefile sbc/sbc.pc)
diff --git a/sbc/sbc_tables.h b/sbc/sbc_tables.h
index 3fd80e1..24a8bff 100644
--- a/sbc/sbc_tables.h
+++ b/sbc/sbc_tables.h
@@ -136,8 +136,6 @@ static const int32_t synmatrix8[16][8] = {
SN8(0xfb8e3130), SN8(0xf8275a10), SN8(0xfe70747c), SN8(0x06a6d988) }
};
-/* #define SBC_HIGH_PRECISION */
-
#ifdef SBC_HIGH_PRECISION
#define FIXED_A int64_t /* data type for fixed point accumulator */
#define FIXED_T int32_t /* data type for fixed point constants */