mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[WINESYNC] include/msvcrt: Add INFINITY and NAN definitions.
Signed-off-by: Alexandre Julliard <julliard@winehq.org> wine commit id a16ef96dc624edf2666aa125fbc1c197f5edcc1b by Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
7240c0d945
commit
bbc438a5d5
2 changed files with 1 additions and 20 deletions
|
@ -22,25 +22,6 @@
|
|||
#include "wine/test.h"
|
||||
#include "d3dx9.h"
|
||||
|
||||
#ifndef INFINITY
|
||||
static inline float __port_infinity(void)
|
||||
{
|
||||
static const unsigned __inf_bytes = 0x7f800000;
|
||||
return *(const float *)&__inf_bytes;
|
||||
}
|
||||
#define INFINITY __port_infinity()
|
||||
#endif /* INFINITY */
|
||||
|
||||
#ifndef NAN
|
||||
static float get_nan(void)
|
||||
{
|
||||
DWORD nan = 0x7fc00000;
|
||||
|
||||
return *(float *)&nan;
|
||||
}
|
||||
#define NAN get_nan()
|
||||
#endif
|
||||
|
||||
/* helper functions */
|
||||
static BOOL compare_float(FLOAT f, FLOAT g, UINT ulps)
|
||||
{
|
||||
|
|
|
@ -15,4 +15,4 @@ files: {include/d3dx9.h: sdk/include/dxsdk/d3dx9.h, include/d3dx9anim.h: sdk/inc
|
|||
include/d3dx9mesh.h: sdk/include/dxsdk/d3dx9mesh.h, include/d3dx9of.h: sdk/include/dxsdk/d3dx9of.h,
|
||||
include/d3dx9shader.h: sdk/include/dxsdk/d3dx9shader.h, include/d3dx9shape.h: sdk/include/dxsdk/d3dx9shape.h,
|
||||
include/d3dx9tex.h: sdk/include/dxsdk/d3dx9tex.h, include/d3dx9xof.h: sdk/include/dxsdk/d3dx9xof.h}
|
||||
tags: {wine: 7dc42119b40ad39165d881dd8d0e410d3e84fe5a}
|
||||
tags: {wine: a16ef96dc624edf2666aa125fbc1c197f5edcc1b}
|
||||
|
|
Loading…
Reference in a new issue