[xiph-commits] r15350 - trunk/vorbis/lib
erikd at svn.xiph.org
erikd at svn.xiph.org
Mon Sep 29 03:10:41 PDT 2008
Author: erikd
Date: 2008-09-29 03:10:40 -0700 (Mon, 29 Sep 2008)
New Revision: 15350
Modified:
trunk/vorbis/lib/os.h
Log:
For x86_64 with GNU C, use same solution for vorbis_ftoi as for win64.
Modified: trunk/vorbis/lib/os.h
===================================================================
--- trunk/vorbis/lib/os.h 2008-09-29 06:56:06 UTC (rev 15349)
+++ trunk/vorbis/lib/os.h 2008-09-29 10:10:40 UTC (rev 15350)
@@ -143,9 +143,9 @@
#endif /* Special MSVC 32 bit implementation */
-/* MSVC optimized code path for x64 builds. Uses SSE2 intrinsics. This can be
- done safely because any x64 CPU supports SSE2. */
-#if defined(_MSC_VER) && defined(_WIN64)
+/* Optimized code path for x86_64 builds. Uses SSE2 intrinsics. This can be
+ done safely because all x86_64 CPUs supports SSE2. */
+#if (defined(_MSC_VER) && defined(_WIN64)) || (defined(__GNUC__) && defined (__x86_64__))
# define VORBIS_FPU_CONTROL
typedef ogg_int16_t vorbis_fpu_control;
More information about the commits
mailing list