From c27737fde0655b498204371815a63bcb780d225b Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 22 Jan 2014 08:19:57 -0800 Subject: build: Keep high precision support disabled by default --- configure.ac | 16 ++++++++-------- sbc/sbc_tables.h | 2 -- 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 */ -- cgit v1.2.1