msvcrt: Implement llabs().

oldstable
Nikolay Sivov 2014-08-29 20:31:18 +04:00 committed by Alexandre Julliard
parent bfaacf80da
commit 60de49770c
4 changed files with 11 additions and 2 deletions

View File

@ -1726,7 +1726,7 @@
@ cdecl labs(long) MSVCRT_labs
@ cdecl ldexp(double long) MSVCRT_ldexp
@ cdecl ldiv(long long) MSVCRT_ldiv
@ stub llabs
@ cdecl -ret64 llabs(int64) MSVCRT_llabs
@ stub lldiv
@ cdecl localeconv() MSVCRT_localeconv
@ cdecl log(double) MSVCRT_log

View File

@ -2085,7 +2085,7 @@
@ cdecl labs(long) MSVCRT_labs
@ cdecl ldexp(double long) MSVCRT_ldexp
@ cdecl ldiv(long long) MSVCRT_ldiv
@ stub llabs
@ cdecl -ret64 llabs(int64) MSVCRT_llabs
@ stub lldiv
@ cdecl localeconv() MSVCRT_localeconv
@ cdecl log(double) MSVCRT_log

View File

@ -765,6 +765,14 @@ MSVCRT_long CDECL MSVCRT_labs( MSVCRT_long n )
return n >= 0 ? n : -n;
}
/*********************************************************************
* llabs (MSVCRT.@)
*/
MSVCRT_longlong CDECL MSVCRT_llabs( MSVCRT_longlong n )
{
return n >= 0 ? n : -n;
}
/*********************************************************************
* _abs64 (MSVCRT.@)
*/

View File

@ -67,6 +67,7 @@ typedef unsigned short MSVCRT__ino_t;
typedef unsigned int MSVCRT__fsize_t;
typedef int MSVCRT_long;
typedef unsigned int MSVCRT_ulong;
typedef __int64 MSVCRT_longlong;
#ifdef _WIN64
typedef unsigned __int64 MSVCRT_size_t;
typedef __int64 MSVCRT_intptr_t;