Getting fixed-point to work (I think)
authorJean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Sat, 30 Apr 2011 00:32:33 +0000 (20:32 -0400)
committerJean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Sat, 30 Apr 2011 00:32:33 +0000 (20:32 -0400)
configure.ac
silk/SKP_Silk_control_codec.c
silk/SKP_Silk_enc_API.c
silk/SKP_Silk_init_encoder.c

index b6fff89..eeed08c 100644 (file)
@@ -104,7 +104,7 @@ ac_enable_fixed="no";
 AC_ARG_ENABLE(fixed-point, [  --enable-fixed-point    compile as fixed-point],
 [if test "$enableval" = yes; then
   ac_enable_fixed="yes";
-  AC_DEFINE([FIXED_POINT], , [Compile as fixed-point])
+  AC_DEFINE([FIXED_POINT], [1], [Compile as fixed-point])
 else
   AC_DEFINE([FLOATING_POINT], , [Compile as floating-point])
 fi],
index 79ee49d..0beb245 100644 (file)
@@ -25,6 +25,10 @@ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
 ***********************************************************************/\r
 \r
+#ifdef HAVE_CONFIG_H\r
+#include "config.h"\r
+#endif\r
+\r
 #include "SKP_Silk_tuning_parameters.h"\r
 #if FIXED_POINT\r
 #include "SKP_Silk_main_FIX.h"\r
index 417253b..5c23d99 100644 (file)
@@ -25,6 +25,9 @@ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
 ***********************************************************************/\r
 \r
+#ifdef HAVE_CONFIG_H\r
+#include "config.h"\r
+#endif\r
 \r
 #include "SKP_Silk_define.h"\r
 #include "SKP_Silk_SDK_API.h"\r
index 7f2b7c3..3baf672 100644 (file)
@@ -25,6 +25,10 @@ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
 ***********************************************************************/\r
 \r
+#ifdef HAVE_CONFIG_H\r
+#include "config.h"\r
+#endif\r
+\r
 #if FIXED_POINT\r
 #include "SKP_Silk_main_FIX.h"\r
 #define SKP_Silk_encoder_state_Fxx      SKP_Silk_encoder_state_FIX\r