From: erikd Date: Mon, 29 Sep 2008 10:10:40 +0000 (+0000) Subject: For x86_64 with GNU C, use same solution for vorbis_ftoi as for win64. X-Git-Tag: v1.3.3~203 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8072779b42aae15112077ca82f14df61ded77109;p=platform%2Fupstream%2Flibvorbis.git For x86_64 with GNU C, use same solution for vorbis_ftoi as for win64. svn path=/trunk/vorbis/; revision=15350 --- diff --git a/lib/os.h b/lib/os.h index d8e9c78..b973092 100644 --- a/lib/os.h +++ b/lib/os.h @@ -143,9 +143,9 @@ static __inline void vorbis_fpu_restore(vorbis_fpu_control fpu){ #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;