msvcrt: Use fpclassify constants from public header.
Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2d96d03006
commit
d571f377e4
|
@ -3586,9 +3586,9 @@ short CDECL MSVCR120__dclass(double x)
|
|||
union { double f; UINT64 i; } u = { x };
|
||||
int e = u.i >> 52 & 0x7ff;
|
||||
|
||||
if (!e) return u.i << 1 ? MSVCRT_FP_SUBNORMAL : MSVCRT_FP_ZERO;
|
||||
if (e == 0x7ff) return (u.i << 12) ? MSVCRT_FP_NAN : MSVCRT_FP_INFINITE;
|
||||
return MSVCRT_FP_NORMAL;
|
||||
if (!e) return u.i << 1 ? FP_SUBNORMAL : FP_ZERO;
|
||||
if (e == 0x7ff) return (u.i << 12) ? FP_NAN : FP_INFINITE;
|
||||
return FP_NORMAL;
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
|
@ -3601,9 +3601,9 @@ short CDECL MSVCR120__fdclass(float x)
|
|||
union { float f; UINT32 i; } u = { x };
|
||||
int e = u.i >> 23 & 0xff;
|
||||
|
||||
if (!e) return u.i << 1 ? MSVCRT_FP_SUBNORMAL : MSVCRT_FP_ZERO;
|
||||
if (e == 0xff) return u.i << 9 ? MSVCRT_FP_NAN : MSVCRT_FP_INFINITE;
|
||||
return MSVCRT_FP_NORMAL;
|
||||
if (!e) return u.i << 1 ? FP_SUBNORMAL : FP_ZERO;
|
||||
if (e == 0xff) return u.i << 9 ? FP_NAN : FP_INFINITE;
|
||||
return FP_NORMAL;
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
|
|
|
@ -626,13 +626,6 @@ struct MSVCRT__stat64 {
|
|||
#define MSVCRT__O_U16TEXT 0x20000
|
||||
#define MSVCRT__O_U8TEXT 0x40000
|
||||
|
||||
/* fpclassify constants */
|
||||
#define MSVCRT_FP_INFINITE 1
|
||||
#define MSVCRT_FP_NAN 2
|
||||
#define MSVCRT_FP_NORMAL -1
|
||||
#define MSVCRT_FP_SUBNORMAL -2
|
||||
#define MSVCRT_FP_ZERO 0
|
||||
|
||||
#define MSVCRT__MCW_EM 0x0008001f
|
||||
#define MSVCRT__MCW_IC 0x00040000
|
||||
#define MSVCRT__MCW_RC 0x00000300
|
||||
|
|
Loading…
Reference in New Issue