Merge pull request #151 from jpap/spandsp-disable-fixed-point

spandsp: disable fixed point implementation
This commit is contained in:
Jiri Slachta 2017-06-09 10:32:59 +02:00 committed by GitHub
commit f87833c641
2 changed files with 15 additions and 1 deletions

View file

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=spandsp PKG_NAME:=spandsp
PKG_VERSION:=0.0.6 PKG_VERSION:=0.0.6
PKG_RELEASE:=2 PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.soft-switch.org/downloads/spandsp/ PKG_SOURCE_URL:=http://www.soft-switch.org/downloads/spandsp/

View file

@ -0,0 +1,14 @@
--- a/configure.ac
+++ b/configure.ac
@@ -435,10 +435,7 @@ if test "$enable_fixed_point" = "yes" ; then
AC_DEFINE([SPANDSP_USE_FIXED_POINT], [1], [Enable fixed point processing, where possible, instead of floating point])
SPANDSP_USE_FIXED_POINT="#define SPANDSP_USE_FIXED_POINT 1"
else
- AX_FIXED_POINT_MACHINE([$host],
- [AC_DEFINE([SPANDSP_USE_FIXED_POINT], [1], [Enable fixed point processing, where possible, instead of floating point])
- SPANDSP_USE_FIXED_POINT="#define SPANDSP_USE_FIXED_POINT 1"],
- [SPANDSP_USE_FIXED_POINT="#undef SPANDSP_USE_FIXED_POINT"])
+ SPANDSP_USE_FIXED_POINT="#undef SPANDSP_USE_FIXED_POINT"]
fi
AX_MISALIGNED_ACCESS_FAILS([$host],
[AC_DEFINE([SPANDSP_MISALIGNED_ACCESS_FAILS], [1], [Do not expect a misaligned memory access to work correctly])