[xiph-cvs] cvs commit: vorbis/lib os.h

Monty xiphmont at xiph.org
Sun May 27 13:33:19 PDT 2001



xiphmont    01/05/27 13:33:19

  Modified:    .        configure.in
               examples decoder_example.c
               lib      os.h
  Log:
  decoder_example non-stereo decode fix
  better autoconf sensing of float-version math lib funcs
  
  Monty

Revision  Changes    Path
1.39      +9 -0      vorbis/configure.in

Index: configure.in
===================================================================
RCS file: /usr/local/cvsroot/vorbis/configure.in,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -r1.38 -r1.39
--- configure.in	2001/02/28 03:17:17	1.38
+++ configure.in	2001/05/27 20:33:18	1.39
@@ -168,6 +168,15 @@
 AC_FUNC_ALLOCA
 AC_FUNC_MEMCMP
 
+AC_CHECK_FUNCS(sqrtf)
+AC_CHECK_FUNCS(logf)
+AC_CHECK_FUNCS(expf)
+AC_CHECK_FUNCS(powf)
+AC_CHECK_FUNCS(acosf)
+AC_CHECK_FUNCS(atanf)
+AC_CHECK_FUNCS(frexpf)
+AC_CHECK_FUNCS(rintf)
+
 dnl --------------------------------------------------
 dnl Do substitutions
 dnl --------------------------------------------------

1.20      +2 -2      vorbis/examples/decoder_example.c

Index: decoder_example.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis/examples/decoder_example.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- decoder_example.c	2001/03/26 23:27:42	1.19
+++ decoder_example.c	2001/05/27 20:33:18	1.20
@@ -11,7 +11,7 @@
  ********************************************************************
 
  function: simple example decoder
- last mod: $Id: decoder_example.c,v 1.19 2001/03/26 23:27:42 xiphmont Exp $
+ last mod: $Id: decoder_example.c,v 1.20 2001/05/27 20:33:18 xiphmont Exp $
 
  ********************************************************************/
 
@@ -253,7 +253,7 @@
                       clipflag=1;
                     }
                     *ptr=val;
-		    ptr+=2;
+		    ptr+=vi.channels;
                   }
                 }
                 

1.25      +17 -4     vorbis/lib/os.h

Index: os.h
===================================================================
RCS file: /usr/local/cvsroot/vorbis/lib/os.h,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- os.h	2001/02/26 03:50:42	1.24
+++ os.h	2001/05/27 20:33:19	1.25
@@ -9,11 +9,11 @@
  *                                                                  *
  * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2001             *
  * by the XIPHOPHORUS Company http://www.xiph.org/                  *
-
+ *                                                                  *
  ********************************************************************
 
  function: #ifdef jail to whip a few platforms into the UNIX ideal.
- last mod: $Id: os.h,v 1.24 2001/02/26 03:50:42 xiphmont Exp $
+ last mod: $Id: os.h,v 1.25 2001/05/27 20:33:19 xiphmont Exp $
 
  ********************************************************************/
 
@@ -50,17 +50,30 @@
 #  define NO_FLOAT_MATH_LIB
 #endif
 
-#ifndef NO_FLOAT_MATH_LIB
+#ifdef HAVE_SQRTF
 #  define sqrt sqrtf
+#endif
+#ifdef HAVE_LOGF
 #  define log logf
+#endif
+#ifdef HAVE_EXPF
 #  define exp expf
+#endif
+#ifdef HAVE_POWF
 #  define pow powf
+#endif
+#ifdef HAVE_ACOSF
 #  define acos acosf
+#endif
+#ifdef HAVE_ATANF
 #  define atan atanf
+#endif
+#ifdef HAVE_FREXPF
 #  define frexp frexpf
+#endif
+#ifdef HAVE_RINTF
 #  define rint rintf
 #endif
-
 
 #ifndef FAST_HYPOT
 #  define FAST_HYPOT hypot

--- >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 'cvs-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 commits mailing list