Check for a 32-bit x86 processor before using MSVC's asm intrinsics
This commit is contained in:
@@ -409,7 +409,7 @@ static __inline ALuint NextPowerOf2(ALuint value)
|
||||
static __inline ALint fastf2i(ALfloat f)
|
||||
{
|
||||
ALint i;
|
||||
#if defined(_MSC_VER) && !defined(_WIN64)
|
||||
#if defined(_MSC_VER) && defined(_M_IX86)
|
||||
__asm fld f
|
||||
__asm fistp i
|
||||
#elif defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
|
||||
|
||||
Reference in New Issue
Block a user