ReactOS 0.4.15-dev-7924-g5949c20
xmath.h File Reference
#include <errno.h>
#include <math.h>
#include <stddef.h>
#include <ymath.h>
Include dependency graph for xmath.h:

Go to the source code of this file.

Macros

#define _DBIAS   0x3fe
 
#define _DOFF   4
 
#define _FBIAS   0x7e
 
#define _FOFF   7
 
#define _FRND   1
 
#define _D0   3
 
#define _D1   2
 
#define _D2   1
 
#define _D3   0
 
#define _DLONG   0
 
#define _LBIAS   0x3fe
 
#define _LOFF   4
 
#define _DFRAC   ((unsigned short)((1 << _DOFF) - 1))
 
#define _DMASK   ((unsigned short)(0x7fff & ~_DFRAC))
 
#define _DMAX   ((unsigned short)((1 << (15 - _DOFF)) - 1))
 
#define _DSIGN   ((unsigned short)0x8000)
 
#define DSIGN(x)   (((unsigned short *)&(x))[_D0] & _DSIGN)
 
#define HUGE_EXP   (int)(_DMAX *900L / 1000)
 
#define HUGE_RAD   2.73e9
 
#define SAFE_EXP   ((unsigned short)(_DMAX >> 1))
 
#define _FFRAC   ((unsigned short)((1 << _FOFF) - 1))
 
#define _FMASK   ((unsigned short)(0x7fff & ~_FFRAC))
 
#define _FMAX   ((unsigned short)((1 << (15 - _FOFF)) - 1))
 
#define _FSIGN   ((unsigned short)0x8000)
 
#define FSIGN(x)   (((unsigned short *)&(x))[_F0] & _FSIGN)
 
#define FHUGE_EXP   (int)(_FMAX *900L / 1000)
 
#define FHUGE_RAD   31.8
 
#define FSAFE_EXP   ((unsigned short)(_FMAX >> 1))
 
#define _F0   1
 
#define _F1   0
 
#define _LFRAC   ((unsigned short)(-1))
 
#define _LMASK   ((unsigned short)0x7fff)
 
#define _LMAX   ((unsigned short)0x7fff)
 
#define _LSIGN   ((unsigned short)0x8000)
 
#define LSIGN(x)   (((unsigned short *)&(x))[_L0] & _LSIGN)
 
#define LHUGE_EXP   (int)(_LMAX *900L / 1000)
 
#define LHUGE_RAD   2.73e9
 
#define LSAFE_EXP   ((unsigned short)(_LMAX >> 1))
 
#define _L0   3
 
#define _L1   2
 
#define _L2   1
 
#define _L3   0
 
#define _L4   xxx
 
#define FINITE   _FINITE
 
#define INF   _INFCODE
 
#define NAN   _NANCODE
 
#define FL_ERR   0
 
#define FL_DEC   1
 
#define FL_HEX   2
 
#define FL_INF   3
 
#define FL_NAN   4
 
#define FL_NEG   8
 

Functions

_C_LIB_DECL _CRTIMP int __cdecl _Stopfx (const char **, char **)
 
_CRTIMP int __cdecl _Stoflt (const char *, const char *, char **, long[], int)
 
_CRTIMP int __cdecl _Stoxflt (const char *, const char *, char **, long[], int)
 
_CRTIMP int __cdecl _WStopfx (const wchar_t **, wchar_t **)
 
_CRTIMP int __cdecl _WStoflt (const wchar_t *, const wchar_t *, wchar_t **, long[], int)
 
_CRTIMP int __cdecl _WStoxflt (const wchar_t *, const wchar_t *, wchar_t **, long[], int)
 
_CRTIMP short __cdecl _Dnorm (unsigned short *)
 
_CRTIMP short __cdecl _Dscale (double *, long)
 
_CRTIMP short __cdecl _Dunscale (short *, double *)
 
_CRTIMP double __cdecl _Poly (double, const double *, int)
 
_CRTIMP short __cdecl _FDnorm (unsigned short *)
 
_CRTIMP short __cdecl _FDscale (float *, long)
 
_CRTIMP short __cdecl _FDunscale (short *, float *)
 
_CRTIMP short __cdecl _LDnorm (unsigned short *)
 
_CRTIMP short __cdecl _LDscale (long double *, long)
 
_CRTIMP short __cdecl _LDunscale (short *, long double *)
 
_CRTIMP long double __cdecl _LPoly (long double, const long double *, int)
 

Variables

_CRTIMP _Dconst _Eps
 
_CRTIMP _Dconst _Rteps
 
_CRTIMP double _Xbig
 
_CRTIMP _Dconst _FEps
 
_CRTIMP _Dconst _FRteps
 
_CRTIMP float _FXbig
 
_CRTIMP _Dconst _LEps
 
_CRTIMP _Dconst _LRteps
 
_CRTIMP long double _LXbig
 

Macro Definition Documentation

◆ _D0

#define _D0   3

Definition at line 21 of file xmath.h.

◆ _D1

#define _D1   2

Definition at line 22 of file xmath.h.

◆ _D2

#define _D2   1

Definition at line 23 of file xmath.h.

◆ _D3

#define _D3   0

Definition at line 24 of file xmath.h.

◆ _DBIAS

#define _DBIAS   0x3fe

This file has no copyright assigned and is placed in the Public Domain. This file is part of the w64 mingw-runtime package. No warranty is given; refer to the file DISCLAIMER within this package.

Definition at line 15 of file xmath.h.

◆ _DFRAC

#define _DFRAC   ((unsigned short)((1 << _DOFF) - 1))

Definition at line 29 of file xmath.h.

◆ _DLONG

#define _DLONG   0

Definition at line 25 of file xmath.h.

◆ _DMASK

#define _DMASK   ((unsigned short)(0x7fff & ~_DFRAC))

Definition at line 30 of file xmath.h.

◆ _DMAX

#define _DMAX   ((unsigned short)((1 << (15 - _DOFF)) - 1))

Definition at line 31 of file xmath.h.

◆ _DOFF

#define _DOFF   4

Definition at line 16 of file xmath.h.

◆ _DSIGN

#define _DSIGN   ((unsigned short)0x8000)

Definition at line 32 of file xmath.h.

◆ _F0

#define _F0   1

Definition at line 47 of file xmath.h.

◆ _F1

#define _F1   0

Definition at line 48 of file xmath.h.

◆ _FBIAS

#define _FBIAS   0x7e

Definition at line 17 of file xmath.h.

◆ _FFRAC

#define _FFRAC   ((unsigned short)((1 << _FOFF) - 1))

Definition at line 38 of file xmath.h.

◆ _FMASK

#define _FMASK   ((unsigned short)(0x7fff & ~_FFRAC))

Definition at line 39 of file xmath.h.

◆ _FMAX

#define _FMAX   ((unsigned short)((1 << (15 - _FOFF)) - 1))

Definition at line 40 of file xmath.h.

◆ _FOFF

#define _FOFF   7

Definition at line 18 of file xmath.h.

◆ _FRND

#define _FRND   1

Definition at line 19 of file xmath.h.

◆ _FSIGN

#define _FSIGN   ((unsigned short)0x8000)

Definition at line 41 of file xmath.h.

◆ _L0

#define _L0   3

Definition at line 59 of file xmath.h.

◆ _L1

#define _L1   2

Definition at line 60 of file xmath.h.

◆ _L2

#define _L2   1

Definition at line 61 of file xmath.h.

◆ _L3

#define _L3   0

Definition at line 62 of file xmath.h.

◆ _L4

#define _L4   xxx

Definition at line 63 of file xmath.h.

◆ _LBIAS

#define _LBIAS   0x3fe

Definition at line 26 of file xmath.h.

◆ _LFRAC

#define _LFRAC   ((unsigned short)(-1))

Definition at line 50 of file xmath.h.

◆ _LMASK

#define _LMASK   ((unsigned short)0x7fff)

Definition at line 51 of file xmath.h.

◆ _LMAX

#define _LMAX   ((unsigned short)0x7fff)

Definition at line 52 of file xmath.h.

◆ _LOFF

#define _LOFF   4

Definition at line 27 of file xmath.h.

◆ _LSIGN

#define _LSIGN   ((unsigned short)0x8000)

Definition at line 53 of file xmath.h.

◆ DSIGN

#define DSIGN (   x)    (((unsigned short *)&(x))[_D0] & _DSIGN)

Definition at line 33 of file xmath.h.

◆ FHUGE_EXP

#define FHUGE_EXP   (int)(_FMAX *900L / 1000)

Definition at line 43 of file xmath.h.

◆ FHUGE_RAD

#define FHUGE_RAD   31.8

Definition at line 44 of file xmath.h.

◆ FINITE

#define FINITE   _FINITE

Definition at line 65 of file xmath.h.

◆ FL_DEC

#define FL_DEC   1

Definition at line 70 of file xmath.h.

◆ FL_ERR

#define FL_ERR   0

Definition at line 69 of file xmath.h.

◆ FL_HEX

#define FL_HEX   2

Definition at line 71 of file xmath.h.

◆ FL_INF

#define FL_INF   3

Definition at line 72 of file xmath.h.

◆ FL_NAN

#define FL_NAN   4

Definition at line 73 of file xmath.h.

◆ FL_NEG

#define FL_NEG   8

Definition at line 74 of file xmath.h.

◆ FSAFE_EXP

#define FSAFE_EXP   ((unsigned short)(_FMAX >> 1))

Definition at line 45 of file xmath.h.

◆ FSIGN

#define FSIGN (   x)    (((unsigned short *)&(x))[_F0] & _FSIGN)

Definition at line 42 of file xmath.h.

◆ HUGE_EXP

#define HUGE_EXP   (int)(_DMAX *900L / 1000)

Definition at line 34 of file xmath.h.

◆ HUGE_RAD

#define HUGE_RAD   2.73e9

Definition at line 35 of file xmath.h.

◆ INF

#define INF   _INFCODE

Definition at line 66 of file xmath.h.

◆ LHUGE_EXP

#define LHUGE_EXP   (int)(_LMAX *900L / 1000)

Definition at line 55 of file xmath.h.

◆ LHUGE_RAD

#define LHUGE_RAD   2.73e9

Definition at line 56 of file xmath.h.

◆ LSAFE_EXP

#define LSAFE_EXP   ((unsigned short)(_LMAX >> 1))

Definition at line 57 of file xmath.h.

◆ LSIGN

#define LSIGN (   x)    (((unsigned short *)&(x))[_L0] & _LSIGN)

Definition at line 54 of file xmath.h.

◆ NAN

#define NAN   _NANCODE

Definition at line 67 of file xmath.h.

◆ SAFE_EXP

#define SAFE_EXP   ((unsigned short)(_DMAX >> 1))

Definition at line 36 of file xmath.h.

Function Documentation

◆ _Dnorm()

◆ _Dscale()

_CRTIMP short __cdecl _Dscale ( double ,
long   
)

◆ _Dunscale()

_CRTIMP short __cdecl _Dunscale ( short ,
double  
)

◆ _FDnorm()

_CRTIMP short __cdecl _FDnorm ( unsigned short )

◆ _FDscale()

_CRTIMP short __cdecl _FDscale ( float ,
long   
)

◆ _FDunscale()

_CRTIMP short __cdecl _FDunscale ( short ,
float  
)

◆ _LDnorm()

_CRTIMP short __cdecl _LDnorm ( unsigned short )

◆ _LDscale()

_CRTIMP short __cdecl _LDscale ( long double ,
long   
)

◆ _LDunscale()

_CRTIMP short __cdecl _LDunscale ( short ,
long double  
)

◆ _LPoly()

_CRTIMP long double __cdecl _LPoly ( long double  ,
const long double ,
int   
)

◆ _Poly()

_CRTIMP double __cdecl _Poly ( double  ,
const double ,
int   
)

◆ _Stoflt()

_CRTIMP int __cdecl _Stoflt ( const char ,
const char ,
char **  ,
long  [],
int   
)

◆ _Stopfx()

_C_LIB_DECL _CRTIMP int __cdecl _Stopfx ( const char **  ,
char **   
)

◆ _Stoxflt()

_CRTIMP int __cdecl _Stoxflt ( const char ,
const char ,
char **  ,
long  [],
int   
)

◆ _WStoflt()

_CRTIMP int __cdecl _WStoflt ( const wchar_t ,
const wchar_t ,
wchar_t **  ,
long  [],
int   
)

◆ _WStopfx()

_CRTIMP int __cdecl _WStopfx ( const wchar_t **  ,
wchar_t **   
)

◆ _WStoxflt()

_CRTIMP int __cdecl _WStoxflt ( const wchar_t ,
const wchar_t ,
wchar_t **  ,
long  [],
int   
)

Variable Documentation

◆ _Eps

_CRTIMP _Dconst _Eps
extern

◆ _FEps

_CRTIMP _Dconst _FEps
extern

◆ _FRteps

_CRTIMP _Dconst _FRteps

Definition at line 96 of file xmath.h.

◆ _FXbig

_CRTIMP float _FXbig
extern

◆ _LEps

_CRTIMP _Dconst _LEps
extern

◆ _LRteps

_CRTIMP _Dconst _LRteps

Definition at line 104 of file xmath.h.

◆ _LXbig

_CRTIMP long double _LXbig
extern

◆ _Rteps

_CRTIMP _Dconst _Rteps

Definition at line 89 of file xmath.h.

◆ _Xbig

_CRTIMP double _Xbig
extern