brender-1997/3dfx/ftol.c
2022-05-03 14:31:40 -07:00

17 lines
255 B
C

const float pointFive=0.5f;
#if 1
#pragma warning( disable : 4035 )
__int64 __cdecl _ftol(){
__int64 result;
__asm{
fsub pointFive
fistp result
mov eax,dword ptr result
mov edx,dword ptr result+4
}
}
#endif
#pragma warning( default : 4035 )