Module: wine Branch: master Commit: a79de8aa292c699f23daf7dcc436f297832c6dae URL: http://source.winehq.org/git/wine.git/?a=commit;h=a79de8aa292c699f23daf7dcc4...
Author: Austin English austinenglish@gmail.com Date: Thu Dec 13 20:01:26 2012 -0800
msvcrt: Implement _ftol in msvcrt instead of forwarding to ntdll.
---
dlls/msvcrt/math.c | 9 +++++++++ dlls/msvcrt/msvcrt.spec | 6 +++--- 2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/dlls/msvcrt/math.c b/dlls/msvcrt/math.c index 230d405..4570da0 100644 --- a/dlls/msvcrt/math.c +++ b/dlls/msvcrt/math.c @@ -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__) */
/********************************************************************* diff --git a/dlls/msvcrt/msvcrt.spec b/dlls/msvcrt/msvcrt.spec index 06d26b4..c4d0332 100644 --- a/dlls/msvcrt/msvcrt.spec +++ b/dlls/msvcrt/msvcrt.spec @@ -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)