[xiph-cvs] cvs commit: vorbis/lib os.h
Michael Smith
msmith at xiph.org
Mon Nov 6 03:55:45 PST 2000
msmith 00/11/06 03:55:45
Modified: lib os.h
Log:
Use macros instead of inline for the generic (non-optimised) float->int
conversion. Now it should compile on things other than gcc.
Revision Changes Path
1.13 +4 -6 vorbis/lib/os.h
Index: os.h
===================================================================
RCS file: /usr/local/cvsroot/vorbis/lib/os.h,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- os.h 2000/11/06 08:55:15 1.12
+++ os.h 2000/11/06 11:55:44 1.13
@@ -14,7 +14,7 @@
********************************************************************
function: #ifdef jail to whip a few platforms into the UNIX ideal.
- last mod: $Id: os.h,v 1.12 2000/11/06 08:55:15 jack Exp $
+ last mod: $Id: os.h,v 1.13 2000/11/06 11:55:44 msmith Exp $
********************************************************************/
@@ -111,13 +111,11 @@
static __inline void vorbis_fpu_restore(vorbis_fpu_control fpu){
}
#else
-static inline void vorbis_fpu_setround(vorbis_fpu_control *fpu){
-}
+/* We don't have special code for this compiler/arch, so do it the slow way */
+#define vorbis_fpu_setround(vorbis_fpu_control) {}
+#define vorbis_fpu_restore(vorbis_fpu_control) {}
-static inline void vorbis_fpu_restore(vorbis_fpu_control fpu){
-}
#endif
-
#endif
--- >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