From 3dd3c9f5ce43d6982bea95548a029872699f26a6 Mon Sep 17 00:00:00 2001 From: rbencina Date: Sun, 7 Apr 2013 14:15:24 +0000 Subject: [PATCH] move static variables into x86 section so they don't generate warnings when trying to build on 64 bit --- src/os/win/pa_x86_plain_converters.c | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/src/os/win/pa_x86_plain_converters.c b/src/os/win/pa_x86_plain_converters.c index 4fcde40..ae43d28 100644 --- a/src/os/win/pa_x86_plain_converters.c +++ b/src/os/win/pa_x86_plain_converters.c @@ -112,6 +112,18 @@ TODO: 0011 1111 1000 0000 0000 0000 0000 0000 => 0x3F800000 */ +#if defined(_WIN64) || defined(_WIN32_WCE) + +/* + -EMT64/AMD64 uses different asm + -VC2005 doesnt allow _WIN64 with inline assembly either! + */ +void PaUtil_InitializeX86PlainConverters( void ) +{ +} + +#else + /* -------------------------------------------------------------------------- */ static const short fpuControlWord_ = 0x033F; /*round to nearest, 64 bit precision, all exceptions masked*/ @@ -130,19 +142,6 @@ static const float const_float_dither_scale_ = PA_FLOAT_DITHER_SCALE_; /* -------------------------------------------------------------------------- */ -#if defined(_WIN64) || defined(_WIN32_WCE) - -/* - -EMT64/AMD64 uses different asm - -VC2005 doesnt allow _WIN64 with inline assembly either! - */ -void PaUtil_InitializeX86PlainConverters( void ) -{ -} - -#else - - static void Float32_To_Int32( void *destinationBuffer, signed int destinationStride, void *sourceBuffer, signed int sourceStride, -- 2.43.0