Disable fast float-to-int hack.
Even with precautions, it's giving problems. Not worth it since I don't quite understand how it works, or know if there's even a benefit.
This commit is contained in:
parent
b3badbf97d
commit
042ec206e7
@ -151,12 +151,14 @@ __inline ALuint aluChannelsFromFormat(ALenum format)
|
||||
|
||||
static __inline ALint aluF2L(ALfloat Value)
|
||||
{
|
||||
#if 0
|
||||
if(sizeof(ALint) == 4 && sizeof(double) == 8)
|
||||
{
|
||||
double temp;
|
||||
temp = Value + (((65536.0*65536.0*16.0)+(65536.0*65536.0*8.0))*65536.0);
|
||||
return *((ALint*)&temp);
|
||||
}
|
||||
#endif
|
||||
return (ALint)Value;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user