[vorbis-dev] libvorbis: NO_FLOAT_MATH_LIB patch

Christian Weisgerber naddy at mips.inka.de
Thu Mar 29 17:05:22 PST 2001



This is in response to NO_FLOAT_MATH_LIB not getting set on Solaris.

The patchlet below
- makes configure check for sqrtf(),
- defines HAVE_SQRTF if sqrtf() has been found,
- uses HAVE_SQRTF in lib/os.h.

NO_FLOAT_MATH_LIB isn't used any longer.

--- configure.in.orig	Fri Mar 30 02:02:35 2001
+++ configure.in	Fri Mar 30 02:10:16 2001
@@ -162,6 +162,7 @@ dnl ------------------------------------
 
 AC_FUNC_ALLOCA
 AC_FUNC_MEMCMP
+AC_CHECK_FUNCS(sqrtf)
 
 dnl --------------------------------------------------
 dnl Do substitutions
--- lib/os.h.orig	Fri Mar 30 02:10:53 2001
+++ lib/os.h	Fri Mar 30 02:13:07 2001
@@ -42,15 +42,7 @@
 #  define FAST_HYPOT(a, b) sqrt((a)*(a) + (b)*(b))
 #endif
 
-#ifndef __GNUC__
-#  define NO_FLOAT_MATH_LIB
-#endif
-
-#ifdef DARWIN
-#  define NO_FLOAT_MATH_LIB
-#endif
-
-#ifndef NO_FLOAT_MATH_LIB
+#ifdef HAVE_SQRTF
 #  define sqrt sqrtf
 #  define log logf
 #  define exp expf

-- 
Christian "naddy" Weisgerber                          naddy at mips.inka.de

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.




More information about the Vorbis-dev mailing list