shithub: opus

Download patch

ref: a66642a5e12554b0a2bec7f3679300524e6cbf14
parent: 2d2f462157be119fbae1b511f326a9244512c63d
author: Ralph Giles <[email protected]>
date: Sun Sep 16 19:15:37 EDT 2012

Remove FLOATING_POINT from config.h.

This isn't used anywhere in the code, floating point is just the
default unless FIXED_POINT is defined.

In the speex codebase, arch.h has a check that both FIXED_POINT
and FLOATING_POINT aren't defined simultaneously, in part as a
check that the build system was constructed with thought about
these and other defines. However, we don't have such a check
and to me it seems unnecessary code.

--- a/configure.ac
+++ b/configure.ac
@@ -159,10 +159,7 @@
   ac_enable_fixed="yes";
   ac_enable_float="no";
   AC_DEFINE([FIXED_POINT], [1], [Compile as fixed-point (for machines without a fast enough FPU)])
-else
-  AC_DEFINE([FLOATING_POINT], , [Compile as floating-point (for machines with a fast enough FPU)])
-fi],
-AC_DEFINE([FLOATING_POINT], , [Compile as floating-point (for machines with a fast enough FPU)]))
+fi])
 
 ac_enable_fixed_debug="no"
 AC_ARG_ENABLE(fixed-point-debug, [  --enable-fixed-point-debug debug fixed-point implementation],