shithub: opus

Download patch

ref: de9b437eb2efcbcb49a4762e9d3f0336c509ebd0
parent: 9a89d56d46a8d37d32bb40afd9ccf72cb9a80be9
author: Gregory Maxwell <[email protected]>
date: Mon Jun 11 15:19:55 EDT 2012

Add -fixed to the version string & clarify that fixed disables float.

--- a/celt/celt.c
+++ b/celt/celt.c
@@ -2844,6 +2844,9 @@
 const char *opus_get_version_string(void)
 {
     return "libopus " OPUS_VERSION
+#ifdef FIXED_POINT
+          "-fixed"
+#endif
 #ifdef FUZZING
           "-fuzzing"
 #endif
--- a/configure.ac
+++ b/configure.ac
@@ -136,9 +136,11 @@
 #esac    
 
 ac_enable_fixed="no";
-AC_ARG_ENABLE(fixed-point, [  --enable-fixed-point    compile as fixed-point],
+ac_enable_float="yes";
+AC_ARG_ENABLE(fixed-point, [  --enable-fixed-point       compile without floating point],
 [if test "$enableval" = yes; then
   ac_enable_fixed="yes";
+  ac_enable_float="no";
   AC_DEFINE([FIXED_POINT], [1], [Compile as fixed-point])
 else
   AC_DEFINE([FLOATING_POINT], , [Compile as floating-point])
@@ -146,7 +148,7 @@
 AC_DEFINE([FLOATING_POINT], , [Compile as floating-point]))
 
 ac_enable_fixed_debug="no"
-AC_ARG_ENABLE(fixed-point-debug, [  --enable-fixed-point-debug  debug fixed-point implementation],
+AC_ARG_ENABLE(fixed-point-debug, [  --enable-fixed-point-debug debug fixed-point implementation],
 [if test "$enableval" = yes; then
   ac_enable_fixed_debug="yes"
   AC_DEFINE([FIXED_DEBUG], , [Debug fixed-point implementation])
@@ -153,7 +155,7 @@
 fi])
 
 ac_enable_custom_modes="no"
-AC_ARG_ENABLE(custom-modes, [  --enable-custom-modes        Enable non-Opus modes, like 44.1 kHz and powers of two ],
+AC_ARG_ENABLE(custom-modes, [  --enable-custom-modes      enable non-Opus modes, e.g. 44.1 kHz & 2^n frames],
 [if test "$enableval" = yes; then
   ac_enable_custom_modes="yes"
   AC_DEFINE([CUSTOM_MODES], , [Custom modes])
@@ -160,7 +162,7 @@
 fi])
 
 float_approx=$has_float_approx
-AC_ARG_ENABLE(float-approx, [  --enable-float-approx   enable fast approximations for floating point],
+AC_ARG_ENABLE(float-approx, [  --enable-float-approx      enable fast approximations for floating point],
     [ if test "$enableval" = yes; then
     AC_WARN([Floating point approximations are not supported on all platforms.])
     float_approx=yes
@@ -173,7 +175,7 @@
 fi
 
 ac_enable_assertions="no"
-AC_ARG_ENABLE(assertions, [  --enable-assertions     enable additional software error checking],
+AC_ARG_ENABLE(assertions, [  --enable-assertions        enable additional software error checking],
 [if test "$enableval" = yes; then
   ac_enable_assertions="yes"
   AC_DEFINE([ENABLE_ASSERTIONS], , [Assertions])
@@ -180,7 +182,7 @@
 fi])
 
 ac_enable_fuzzing="no"
-AC_ARG_ENABLE(fuzzing, [  --enable-fuzzing     causes the encoder to make random decisions],
+AC_ARG_ENABLE(fuzzing, [  --enable-fuzzing           causes the encoder to make random decisions],
 [if test "$enableval" = yes; then
   ac_enable_fuzzing="yes"
   AC_DEFINE([FUZZING], , [Fuzzing])
@@ -285,8 +287,8 @@
     
     General configuration:
     
+      Floating point support: ........ ${ac_enable_float}
       Fast float approximations: ..... ${float_approx}
-      Fixed point support: ........... ${ac_enable_fixed}
       Fixed point debugging: ......... ${ac_enable_fixed_debug}
       Custom modes: .................. ${ac_enable_custom_modes}
       Assertion checking: ............ ${ac_enable_assertions}