search for: fast_hypot

Displaying 3 results from an estimated 3 matches for "fast_hypot".

2001 Jan 29
1
Mac OS X/Darwin patch for libvorbis
...STIN static inline +#elif _WIN32 +#define STIN static __inline +#else +#define STIN static +#endif + #ifndef M_PI #define M_PI (3.1415926536f) #endif -#ifndef __GNUC__ + #ifdef _WIN32 # include <malloc.h> # define rint(x) (floor((x)+0.5f)) +# define NO_FLOAT_MATH_LIB +# define FAST_HYPOT(a, b) sqrt((a)*(a) + (b)*(b)) #endif -#define STIN static -#else -#define STIN static inline +#ifdef DARWIN +#define NO_FLOAT_MATH_LIB +#endif + +#ifndef NO_FLOAT_MATH_LIB #define sqrt sqrtf #define log logf #define exp expf @@ -48,9 +60,7 @@ #endif -#ifdef _WIN32 -# define FAST_HYPOT(a...
2001 Jun 27
1
Patch to get libvorbis 1.0b4 to build on Solaris 2.7
...G_LIBS", AC_MSG_ERROR(must have Ogg installed!)) --- lib/os.h Sun Feb 25 22:37:59 2001 +++ ../../libvorbis-1.0beta4/lib/os.h Wed Jun 27 10:42:30 2001 @@ -38,19 +38,10 @@ #ifdef _WIN32 # include <malloc.h> # define rint(x) (floor((x)+0.5f)) -# define NO_FLOAT_MATH_LIB # 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_FLOAT_MATH_LIB # define sqrt sqrtf # define log logf # define exp expf --- >8 ---- List archives:...
2001 Mar 29
2
libvorbis: NO_FLOAT_MATH_LIB patch
...+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" Weisger...