From 8f7c2bc6a5e05bcc36a88b43d1c0a7cd1ca73bab Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 12 May 2004 23:22:36 +0000 Subject: [PATCH] Fixed the prototypes of the _adj_fdiv_* functions. --- dlls/msvcrt/math.c | 32 ++++++++------------------------ dlls/msvcrt/msvcrt.spec | 16 ++++++++-------- dlls/msvcrt20/msvcrt20.spec | 16 ++++++++-------- dlls/msvcrt40/msvcrt40.spec | 16 ++++++++-------- dlls/msvcrtd/msvcrtd.spec | 16 ++++++++-------- 5 files changed, 40 insertions(+), 56 deletions(-) diff --git a/dlls/msvcrt/math.c b/dlls/msvcrt/math.c index b2fc6df49e..ad077f8215 100644 --- a/dlls/msvcrt/math.c +++ b/dlls/msvcrt/math.c @@ -759,56 +759,48 @@ MSVCRT_ldiv_t MSVCRT_ldiv(long num, long denom) /*********************************************************************** * _adj_fdiv_m16i (MSVCRT.@) - * FIXME - * This function is likely to have the wrong number of arguments. * * NOTE * I _think_ this function is intended to work around the Pentium * fdiv bug. */ -void _adj_fdiv_m16i(void) +void __stdcall _adj_fdiv_m16i( short arg ) { TRACE("(): stub\n"); } /*********************************************************************** * _adj_fdiv_m32 (MSVCRT.@) - * FIXME - * This function is likely to have the wrong number of arguments. * * NOTE * I _think_ this function is intended to work around the Pentium * fdiv bug. */ -void _adj_fdiv_m32(void) +void __stdcall _adj_fdiv_m32( unsigned int arg ) { TRACE("(): stub\n"); } /*********************************************************************** * _adj_fdiv_m32i (MSVCRT.@) - * FIXME - * This function is likely to have the wrong number of arguments. * * NOTE * I _think_ this function is intended to work around the Pentium * fdiv bug. */ -void _adj_fdiv_m32i(void) +void __stdcall _adj_fdiv_m32i( int arg ) { TRACE("(): stub\n"); } /*********************************************************************** * _adj_fdiv_m64 (MSVCRT.@) - * FIXME - * This function is likely to have the wrong number of arguments. * * NOTE * I _think_ this function is intended to work around the Pentium * fdiv bug. */ -void _adj_fdiv_m64(void) +void __stdcall _adj_fdiv_m64( unsigned __int64 arg ) { TRACE("(): stub\n"); } @@ -829,56 +821,48 @@ void _adj_fdiv_r(void) /*********************************************************************** * _adj_fdivr_m16i (MSVCRT.@) - * FIXME - * This function is likely to have the wrong number of arguments. * * NOTE * I _think_ this function is intended to work around the Pentium * fdiv bug. */ -void _adj_fdivr_m16i(void) +void __stdcall _adj_fdivr_m16i( short arg ) { TRACE("(): stub\n"); } /*********************************************************************** * _adj_fdivr_m32 (MSVCRT.@) - * FIXME - * This function is likely to have the wrong number of arguments. * * NOTE * I _think_ this function is intended to work around the Pentium * fdiv bug. */ -void _adj_fdivr_m32(void) +void __stdcall _adj_fdivr_m32( unsigned int arg ) { TRACE("(): stub\n"); } /*********************************************************************** * _adj_fdivr_m32i (MSVCRT.@) - * FIXME - * This function is likely to have the wrong number of arguments. * * NOTE * I _think_ this function is intended to work around the Pentium * fdiv bug. */ -void _adj_fdivr_m32i(void) +void __stdcall _adj_fdivr_m32i( int arg ) { TRACE("(): stub\n"); } /*********************************************************************** * _adj_fdivr_m64 (MSVCRT.@) - * FIXME - * This function is likely to have the wrong number of arguments. * * NOTE * I _think_ this function is intended to work around the Pentium * fdiv bug. */ -void _adj_fdivr_m64(void) +void __stdcall _adj_fdivr_m64( unsigned __int64 arg ) { TRACE("(): stub\n"); } diff --git a/dlls/msvcrt/msvcrt.spec b/dlls/msvcrt/msvcrt.spec index 1e37b7ed62..445726e684 100644 --- a/dlls/msvcrt/msvcrt.spec +++ b/dlls/msvcrt/msvcrt.spec @@ -146,15 +146,15 @@ @ cdecl _abnormal_termination() @ cdecl _access(str long) @ extern _acmdln MSVCRT__acmdln -@ cdecl _adj_fdiv_m16i() -@ cdecl _adj_fdiv_m32() -@ cdecl _adj_fdiv_m32i() -@ cdecl _adj_fdiv_m64() +@ stdcall _adj_fdiv_m16i(long) +@ stdcall _adj_fdiv_m32(long) +@ stdcall _adj_fdiv_m32i(long) +@ stdcall _adj_fdiv_m64(long long) @ cdecl _adj_fdiv_r() -@ cdecl _adj_fdivr_m16i() -@ cdecl _adj_fdivr_m32() -@ cdecl _adj_fdivr_m32i() -@ cdecl _adj_fdivr_m64() +@ stdcall _adj_fdivr_m16i(long) +@ stdcall _adj_fdivr_m32(long) +@ stdcall _adj_fdivr_m32i(long) +@ stdcall _adj_fdivr_m64(long long) @ cdecl _adj_fpatan() @ cdecl _adj_fprem() @ cdecl _adj_fprem1() diff --git a/dlls/msvcrt20/msvcrt20.spec b/dlls/msvcrt20/msvcrt20.spec index 22e1d68f03..510bec80cf 100644 --- a/dlls/msvcrt20/msvcrt20.spec +++ b/dlls/msvcrt20/msvcrt20.spec @@ -507,15 +507,15 @@ @ cdecl _abnormal_termination() msvcrt._abnormal_termination @ cdecl _access(str long) msvcrt._access @ extern _acmdln msvcrt._acmdln -@ cdecl _adj_fdiv_m16i() msvcrt._adj_fdiv_m16i -@ cdecl _adj_fdiv_m32() msvcrt._adj_fdiv_m32 -@ cdecl _adj_fdiv_m32i() msvcrt._adj_fdiv_m32i -@ cdecl _adj_fdiv_m64() msvcrt._adj_fdiv_m64 +@ stdcall _adj_fdiv_m16i(long) msvcrt._adj_fdiv_m16i +@ stdcall _adj_fdiv_m32(long) msvcrt._adj_fdiv_m32 +@ stdcall _adj_fdiv_m32i(long) msvcrt._adj_fdiv_m32i +@ stdcall _adj_fdiv_m64(long long) msvcrt._adj_fdiv_m64 @ cdecl _adj_fdiv_r() msvcrt._adj_fdiv_r -@ cdecl _adj_fdivr_m16i() msvcrt._adj_fdivr_m16i -@ cdecl _adj_fdivr_m32() msvcrt._adj_fdivr_m32 -@ cdecl _adj_fdivr_m32i() msvcrt._adj_fdivr_m32i -@ cdecl _adj_fdivr_m64() msvcrt._adj_fdivr_m64 +@ stdcall _adj_fdivr_m16i(long) msvcrt._adj_fdivr_m16i +@ stdcall _adj_fdivr_m32(long) msvcrt._adj_fdivr_m32 +@ stdcall _adj_fdivr_m32i(long) msvcrt._adj_fdivr_m32i +@ stdcall _adj_fdivr_m64(long long) msvcrt._adj_fdivr_m64 @ cdecl _adj_fpatan() msvcrt._adj_fpatan @ cdecl _adj_fprem() msvcrt._adj_fprem @ cdecl _adj_fprem1() msvcrt._adj_fprem1 diff --git a/dlls/msvcrt40/msvcrt40.spec b/dlls/msvcrt40/msvcrt40.spec index fbe76d2f3f..792f73a42e 100644 --- a/dlls/msvcrt40/msvcrt40.spec +++ b/dlls/msvcrt40/msvcrt40.spec @@ -559,15 +559,15 @@ @ cdecl _abnormal_termination() msvcrt._abnormal_termination @ cdecl _access(str long) msvcrt._access @ extern _acmdln msvcrt._acmdln -@ cdecl _adj_fdiv_m16i() msvcrt._adj_fdiv_m16i -@ cdecl _adj_fdiv_m32() msvcrt._adj_fdiv_m32 -@ cdecl _adj_fdiv_m32i() msvcrt._adj_fdiv_m32i -@ cdecl _adj_fdiv_m64() msvcrt._adj_fdiv_m64 +@ stdcall _adj_fdiv_m16i(long) msvcrt._adj_fdiv_m16i +@ stdcall _adj_fdiv_m32(long) msvcrt._adj_fdiv_m32 +@ stdcall _adj_fdiv_m32i(long) msvcrt._adj_fdiv_m32i +@ stdcall _adj_fdiv_m64(long long) msvcrt._adj_fdiv_m64 @ cdecl _adj_fdiv_r() msvcrt._adj_fdiv_r -@ cdecl _adj_fdivr_m16i() msvcrt._adj_fdivr_m16i -@ cdecl _adj_fdivr_m32() msvcrt._adj_fdivr_m32 -@ cdecl _adj_fdivr_m32i() msvcrt._adj_fdivr_m32i -@ cdecl _adj_fdivr_m64() msvcrt._adj_fdivr_m64 +@ stdcall _adj_fdivr_m16i(long) msvcrt._adj_fdivr_m16i +@ stdcall _adj_fdivr_m32(long) msvcrt._adj_fdivr_m32 +@ stdcall _adj_fdivr_m32i(long) msvcrt._adj_fdivr_m32i +@ stdcall _adj_fdivr_m64(long long) msvcrt._adj_fdivr_m64 @ cdecl _adj_fpatan() msvcrt._adj_fpatan @ cdecl _adj_fprem() msvcrt._adj_fprem @ cdecl _adj_fprem1() msvcrt._adj_fprem1 diff --git a/dlls/msvcrtd/msvcrtd.spec b/dlls/msvcrtd/msvcrtd.spec index 42b2dd9de5..89874ace26 100644 --- a/dlls/msvcrtd/msvcrtd.spec +++ b/dlls/msvcrtd/msvcrtd.spec @@ -168,15 +168,15 @@ @ cdecl _abnormal_termination() msvcrt._abnormal_termination @ cdecl _access(str long) msvcrt._access @ extern _acmdln msvcrt._acmdln -@ cdecl _adj_fdiv_m16i() msvcrt._adj_fdiv_m16i -@ cdecl _adj_fdiv_m32() msvcrt._adj_fdiv_m32 -@ cdecl _adj_fdiv_m32i() msvcrt._adj_fdiv_m32i -@ cdecl _adj_fdiv_m64() msvcrt._adj_fdiv_m64 +@ stdcall _adj_fdiv_m16i(long) msvcrt._adj_fdiv_m16i +@ stdcall _adj_fdiv_m32(long) msvcrt._adj_fdiv_m32 +@ stdcall _adj_fdiv_m32i(long) msvcrt._adj_fdiv_m32i +@ stdcall _adj_fdiv_m64(long long) msvcrt._adj_fdiv_m64 @ cdecl _adj_fdiv_r() msvcrt._adj_fdiv_r -@ cdecl _adj_fdivr_m16i() msvcrt._adj_fdivr_m16i -@ cdecl _adj_fdivr_m32() msvcrt._adj_fdivr_m32 -@ cdecl _adj_fdivr_m32i() msvcrt._adj_fdivr_m32i -@ cdecl _adj_fdivr_m64() msvcrt._adj_fdivr_m64 +@ stdcall _adj_fdivr_m16i(long) msvcrt._adj_fdivr_m16i +@ stdcall _adj_fdivr_m32(long) msvcrt._adj_fdivr_m32 +@ stdcall _adj_fdivr_m32i(long) msvcrt._adj_fdivr_m32i +@ stdcall _adj_fdivr_m64(long long) msvcrt._adj_fdivr_m64 @ cdecl _adj_fpatan() msvcrt._adj_fpatan @ cdecl _adj_fprem() msvcrt._adj_fprem @ cdecl _adj_fprem1() msvcrt._adj_fprem1