msvcrt: Implement _ftol in msvcrt instead of forwarding to ntdll.

This commit is contained in:
Austin English 2012-12-13 20:01:26 -08:00 committed by Alexandre Julliard
parent b234f72c00
commit a79de8aa29
2 changed files with 12 additions and 3 deletions

View File

@ -629,6 +629,15 @@ double CDECL _CItanh(void)
return MSVCRT_tanh(x);
}
/*********************************************************************
* _ftol (MSVCRT.@)
*/
LONGLONG CDECL MSVCRT__ftol(void)
{
FPU_DOUBLE(x);
return (LONGLONG)x;
}
#endif /* defined(__GNUC__) && defined(__i386__) */
/*********************************************************************

View File

@ -453,9 +453,9 @@
@ cdecl _ftime32_s(ptr) MSVCRT__ftime32_s
@ cdecl _ftime64(ptr) MSVCRT__ftime64
@ cdecl _ftime64_s(ptr) MSVCRT__ftime64_s
@ cdecl -ret64 _ftol() ntdll._ftol
@ cdecl -ret64 _ftol2() ntdll._ftol
@ cdecl -ret64 _ftol2_sse() ntdll._ftol #FIXME: SSE variant should be implemented
@ cdecl -arch=i386 -ret64 _ftol() MSVCRT__ftol
@ cdecl -arch=i386 -ret64 _ftol2() MSVCRT__ftol
@ cdecl -arch=i386 -ret64 _ftol2_sse() MSVCRT__ftol #FIXME: SSE variant should be implemented
# stub _ftol2_sse_excpt
@ cdecl _fullpath(ptr str long)
# stub _fullpath_dbg(ptr str long long str long)