ReactOS  0.4.14-dev-77-gd9e7c48
math.h File Reference
#include "crtdefs.h"
Include dependency graph for math.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _exception
 
struct  _complex
 

Macros

#define _EXCEPTION_DEFINED
 
#define _COMPLEX_DEFINED
 
#define complex   _complex
 
#define _DOMAIN   1
 
#define _SING   2
 
#define _OVERFLOW   3
 
#define _UNDERFLOW   4
 
#define _TLOSS   5
 
#define _PLOSS   6
 
#define EDOM   33
 
#define ERANGE   34
 
#define HUGE_VAL   _HUGE
 
#define _HUGE_ENUF   1e+300
 
#define INFINITY   ((float)(_HUGE_ENUF * _HUGE_ENUF))
 
#define HUGE_VALD   ((double)INFINITY)
 
#define HUGE_VALF   ((float)INFINITY)
 
#define HUGE_VALL   ((long double)INFINITY)
 
#define NAN   ((float)(INFINITY * 0.0F))
 
#define _DENORM   (-2)
 
#define _FINITE   (-1)
 
#define _INFCODE   1
 
#define _NANCODE   2
 
#define FP_INFINITE   _INFCODE
 
#define FP_NAN   _NANCODE
 
#define FP_NORMAL   _FINITE
 
#define FP_SUBNORMAL   _DENORM
 
#define FP_ZERO   0
 
#define _matherrl   _matherr
 
#define _CRT_ABS_DEFINED
 
#define _CRT_MATHERR_DEFINED
 
#define _CRT_ATOF_DEFINED
 
#define _SIGN_DEFINED
 
#define DOMAIN   _DOMAIN
 
#define SING   _SING
 
#define OVERFLOW   _OVERFLOW
 
#define UNDERFLOW   _UNDERFLOW
 
#define TLOSS   _TLOSS
 
#define PLOSS   _PLOSS
 
#define matherr   _matherr
 
#define HUGE   _HUGE
 
#define cabs   _cabs
 

Typedefs

typedef float float_t
 
typedef double double_t
 

Functions

_Check_return_ int __cdecl abs (_In_ int x)
 
_Check_return_ long __cdecl labs (_In_ long x)
 
_Check_return_ long long __cdecl llabs (_In_ long long x)
 
_Check_return_ double __cdecl acos (_In_ double x)
 
_Check_return_ double __cdecl asin (_In_ double x)
 
_Check_return_ double __cdecl atan (_In_ double x)
 
_Check_return_ double __cdecl atan2 (_In_ double y, _In_ double x)
 
_Check_return_ double __cdecl cos (_In_ double x)
 
_Check_return_ double __cdecl cosh (_In_ double x)
 
_Check_return_ double __cdecl exp (_In_ double x)
 
_Check_return_ _CRT_JIT_INTRINSIC double __cdecl fabs (_In_ double x)
 
_Check_return_ double __cdecl fmod (_In_ double x, _In_ double y)
 
_Check_return_ double __cdecl log (_In_ double x)
 
_Check_return_ double __cdecl log10 (_In_ double x)
 
_Check_return_ double __cdecl pow (_In_ double x, double y)
 
_Check_return_ double __cdecl sin (_In_ double x)
 
_Check_return_ double __cdecl sinh (_In_ double x)
 
_Check_return_ _CRT_JIT_INTRINSIC double __cdecl sqrt (_In_ double x)
 
_Check_return_ double __cdecl tan (_In_ double x)
 
_Check_return_ double __cdecl tanh (_In_ double x)
 
int __CRTDECL _matherr (_Inout_ struct _exception *exception)
 
_Check_return_ _CRTIMP double __cdecl atof (_In_z_ const char *str)
 
_Check_return_ _CRTIMP double __cdecl _atof_l (_In_z_ const char *str, _In_opt_ _locale_t locale)
 
_Check_return_ _CRTIMP double __cdecl _copysign (_In_ double x, _In_ double sgn)
 
_Check_return_ _CRTIMP double __cdecl _chgsign (_In_ double x)
 
_Check_return_ _CRTIMP double __cdecl _cabs (_In_ struct _complex a)
 
_Check_return_ _CRTIMP double __cdecl _hypot (_In_ double x, _In_ double y)
 
_Check_return_ _CRTIMP double __cdecl _j0 (_In_ double x)
 
_Check_return_ _CRTIMP double __cdecl _j1 (_In_ double x)
 
_Check_return_ _CRTIMP double __cdecl _jn (_In_ int x, _In_ double y)
 
_Check_return_ _CRTIMP double __cdecl _nextafter (_In_ double x, _In_ double y)
 
_Check_return_ _CRTIMP double __cdecl _y0 (_In_ double x)
 
_Check_return_ _CRTIMP double __cdecl _y1 (_In_ double x)
 
_Check_return_ _CRTIMP double __cdecl _yn (_In_ int x, _In_ double y)
 
_Check_return_ _CRTIMP double __cdecl ceil (_In_ double x)
 
_Check_return_ _CRTIMP double __cdecl floor (_In_ double x)
 
_Check_return_ _CRTIMP double __cdecl frexp (_In_ double x, _Out_ int *y)
 
_Check_return_ _CRTIMP double __cdecl ldexp (_In_ double x, _In_ int y)
 
_Check_return_ _CRTIMP double __cdecl modf (_In_ double x, _Out_ double *y)
 
_Check_return_ __CRT_INLINE float __CRTDECL ldexpf (_In_ float x, _In_ int y)
 
_Check_return_ __CRT_INLINE long double __CRTDECL tanl (_In_ long double x)
 
_Check_return_ __CRT_INLINE float __CRTDECL fabsf (_In_ float x)
 
_Check_return_ __CRT_INLINE float _chgsignf (_In_ float x)
 
_Check_return_ __CRT_INLINE float _copysignf (_In_ float x, _In_ float y)
 
_Check_return_ __CRT_INLINE float _hypotf (_In_ float x, _In_ float y)
 
_Check_return_ __CRT_INLINE float acosf (_In_ float x)
 
_Check_return_ __CRT_INLINE float asinf (_In_ float x)
 
_Check_return_ __CRT_INLINE float atanf (_In_ float x)
 
_Check_return_ __CRT_INLINE float atan2f (_In_ float x, _In_ float y)
 
_Check_return_ __CRT_INLINE float ceilf (_In_ float x)
 
_Check_return_ __CRT_INLINE float cosf (_In_ float x)
 
_Check_return_ __CRT_INLINE float coshf (_In_ float x)
 
_Check_return_ __CRT_INLINE float expf (_In_ float x)
 
_Check_return_ __CRT_INLINE float floorf (_In_ float x)
 
_Check_return_ __CRT_INLINE float fmodf (_In_ float x, _In_ float y)
 
_Check_return_ __CRT_INLINE float logf (_In_ float x)
 
_Check_return_ __CRT_INLINE float log10f (_In_ float x)
 
_Check_return_ __CRT_INLINE float modff (_In_ float x, _Out_ float *y)
 
_Check_return_ __CRT_INLINE float powf (_In_ float x, _In_ float y)
 
_Check_return_ __CRT_INLINE float sinf (_In_ float x)
 
_Check_return_ __CRT_INLINE float sinhf (_In_ float x)
 
_Check_return_ __CRT_INLINE float sqrtf (_In_ float x)
 
_Check_return_ __CRT_INLINE float tanf (_In_ float x)
 
_Check_return_ __CRT_INLINE float tanhf (_In_ float x)
 
_Check_return_ __CRT_INLINE double hypot (_In_ double x, _In_ double y)
 
_Check_return_ __CRT_INLINE float hypotf (_In_ float x, _In_ float y)
 
_Check_return_ __CRT_INLINE float frexpf (_In_ float x, _Out_ int *y)
 
_Check_return_ __CRT_INLINE long double acosl (_In_ long double x)
 
_Check_return_ __CRT_INLINE long double asinl (_In_ long double x)
 
_Check_return_ __CRT_INLINE long double atanl (_In_ long double x)
 
_Check_return_ __CRT_INLINE long double atan2l (_In_ long double y, _In_ long double x)
 
_Check_return_ __CRT_INLINE long double ceill (_In_ long double x)
 
_Check_return_ __CRT_INLINE long double cosl (_In_ long double x)
 
_Check_return_ __CRT_INLINE long double coshl (_In_ long double x)
 
_Check_return_ __CRT_INLINE long double expl (_In_ long double x)
 
_Check_return_ __CRT_INLINE long double fabsl (_In_ long double x)
 
_Check_return_ __CRT_INLINE long double floorl (_In_ long double x)
 
_Check_return_ __CRT_INLINE long double fmodl (_In_ long double x, _In_ long double y)
 
_Check_return_ __CRT_INLINE long double frexpl (_In_ long double x, _Out_ int *y)
 
_Check_return_ __CRT_INLINE long double hypotl (_In_ long double x, _In_ long double y)
 
_Check_return_ __CRT_INLINE long double logl (_In_ long double x)
 
_Check_return_ __CRT_INLINE long double log10l (_In_ long double x)
 
_Check_return_ __CRT_INLINE long double powl (_In_ long double x, _In_ long double y)
 
_Check_return_ __CRT_INLINE long double sinl (_In_ long double x)
 
_Check_return_ __CRT_INLINE long double sinhl (_In_ long double x)
 
_Check_return_ __CRT_INLINE long double sqrtl (_In_ long double x)
 
_Check_return_ __CRT_INLINE long double tanhl (_In_ long double x)
 
_Check_return_ __CRT_INLINE long double _chgsignl (_In_ long double number)
 
_Check_return_ __CRT_INLINE long double _copysignl (_In_ long double number, _In_ long double sign)
 
_Check_return_ __CRT_INLINE long double _hypotl (_In_ long double x, _In_ long double y)
 
_Check_return_ __CRT_INLINE long double ldexpl (_In_ long double x, _In_ int y)
 
_Check_return_ __CRT_INLINE long double modfl (_In_ long double x, _Out_ long double *y)
 
_Check_return_ __CRT_INLINE double round (_In_ double x)
 
_Check_return_ __CRT_INLINE float roundf (_In_ float x)
 
_Check_return_ __CRT_INLINE long double roundl (_In_ long double x)
 
_Check_return_ __CRT_INLINE long lround (_In_ double x)
 
_Check_return_ __CRT_INLINE long lroundf (_In_ float x)
 
_Check_return_ __CRT_INLINE long lroundl (_In_ long double x)
 
_Check_return_ __CRT_INLINE long long llround (_In_ double x)
 
_Check_return_ __CRT_INLINE long long llroundf (_In_ float x)
 
_Check_return_ __CRT_INLINE long long llroundl (_In_ long double x)
 
_Check_return_ __CRT_INLINE double rint (_In_ double x)
 
_Check_return_ __CRT_INLINE float rintf (_In_ float x)
 
_Check_return_ __CRT_INLINE long double rintl (_In_ long double x)
 
_Check_return_ __CRT_INLINE long lrint (_In_ double x)
 
_Check_return_ __CRT_INLINE long lrintf (_In_ float x)
 
_Check_return_ __CRT_INLINE long lrintl (_In_ long double x)
 
_Check_return_ __CRT_INLINE long long llrint (_In_ double x)
 
_Check_return_ __CRT_INLINE long long llrintf (_In_ float x)
 
_Check_return_ __CRT_INLINE long long llrintl (_In_ long double x)
 
 _CRT_NONSTDC_DEPRECATE (_j0) _CRTIMP double __cdecl j0(_In_ double x)
 
 _CRT_NONSTDC_DEPRECATE (_j1) _CRTIMP double __cdecl j1(_In_ double x)
 
 _CRT_NONSTDC_DEPRECATE (_jn) _CRTIMP double __cdecl jn(_In_ int x
 
 _CRT_NONSTDC_DEPRECATE (_y0) _CRTIMP double __cdecl y0(_In_ double x)
 
 _CRT_NONSTDC_DEPRECATE (_y1) _CRTIMP double __cdecl y1(_In_ double x)
 
 _CRT_NONSTDC_DEPRECATE (_yn) _CRTIMP double __cdecl yn(_In_ int x
 

Variables

_CRTIMP double const _HUGE
 
_In_ double y
 

Macro Definition Documentation

◆ _COMPLEX_DEFINED

#define _COMPLEX_DEFINED

Definition at line 30 of file math.h.

◆ _CRT_ABS_DEFINED

#define _CRT_ABS_DEFINED

Definition at line 78 of file math.h.

◆ _CRT_ATOF_DEFINED

#define _CRT_ATOF_DEFINED

Definition at line 108 of file math.h.

◆ _CRT_MATHERR_DEFINED

#define _CRT_MATHERR_DEFINED

Definition at line 103 of file math.h.

◆ _DENORM

#define _DENORM   (-2)

Definition at line 62 of file math.h.

◆ _DOMAIN

#define _DOMAIN   1

Definition at line 39 of file math.h.

◆ _EXCEPTION_DEFINED

#define _EXCEPTION_DEFINED

Definition at line 19 of file math.h.

◆ _FINITE

#define _FINITE   (-1)

Definition at line 63 of file math.h.

◆ _HUGE_ENUF

#define _HUGE_ENUF   1e+300

Definition at line 54 of file math.h.

◆ _INFCODE

#define _INFCODE   1

Definition at line 64 of file math.h.

◆ _matherrl

#define _matherrl   _matherr

Definition at line 74 of file math.h.

◆ _NANCODE

#define _NANCODE   2

Definition at line 65 of file math.h.

◆ _OVERFLOW

#define _OVERFLOW   3

Definition at line 41 of file math.h.

◆ _PLOSS

#define _PLOSS   6

Definition at line 44 of file math.h.

◆ _SIGN_DEFINED

#define _SIGN_DEFINED

Definition at line 114 of file math.h.

◆ _SING

#define _SING   2

Definition at line 40 of file math.h.

◆ _TLOSS

#define _TLOSS   5

Definition at line 43 of file math.h.

◆ _UNDERFLOW

#define _UNDERFLOW   4

Definition at line 42 of file math.h.

◆ cabs

#define cabs   _cabs

Definition at line 286 of file math.h.

◆ complex

Definition at line 35 of file math.h.

◆ DOMAIN

#define DOMAIN   _DOMAIN

Definition at line 276 of file math.h.

◆ EDOM

#define EDOM   33

Definition at line 46 of file math.h.

◆ ERANGE

#define ERANGE   34

Definition at line 47 of file math.h.

◆ FP_INFINITE

#define FP_INFINITE   _INFCODE

Definition at line 67 of file math.h.

◆ FP_NAN

#define FP_NAN   _NANCODE

Definition at line 68 of file math.h.

◆ FP_NORMAL

#define FP_NORMAL   _FINITE

Definition at line 69 of file math.h.

◆ FP_SUBNORMAL

#define FP_SUBNORMAL   _DENORM

Definition at line 70 of file math.h.

◆ FP_ZERO

#define FP_ZERO   0

Definition at line 71 of file math.h.

◆ HUGE

#define HUGE   _HUGE

Definition at line 284 of file math.h.

◆ HUGE_VAL

#define HUGE_VAL   _HUGE

Definition at line 51 of file math.h.

◆ HUGE_VALD

#define HUGE_VALD   ((double)INFINITY)

Definition at line 57 of file math.h.

◆ HUGE_VALF

#define HUGE_VALF   ((float)INFINITY)

Definition at line 58 of file math.h.

◆ HUGE_VALL

#define HUGE_VALL   ((long double)INFINITY)

Definition at line 59 of file math.h.

◆ INFINITY

#define INFINITY   ((float)(_HUGE_ENUF * _HUGE_ENUF))

Definition at line 56 of file math.h.

◆ matherr

#define matherr   _matherr

Definition at line 282 of file math.h.

◆ NAN

#define NAN   ((float)(INFINITY * 0.0F))

Definition at line 60 of file math.h.

◆ OVERFLOW

#define OVERFLOW   _OVERFLOW

Definition at line 278 of file math.h.

◆ PLOSS

#define PLOSS   _PLOSS

Definition at line 281 of file math.h.

◆ SING

#define SING   _SING

Definition at line 277 of file math.h.

◆ TLOSS

#define TLOSS   _TLOSS

Definition at line 280 of file math.h.

◆ UNDERFLOW

#define UNDERFLOW   _UNDERFLOW

Definition at line 279 of file math.h.

Typedef Documentation

◆ double_t

typedef double double_t

Definition at line 16 of file math.h.

◆ float_t

typedef float float_t

This file has no copyright assigned and is placed in the Public Domain.

Definition at line 15 of file math.h.

Function Documentation

◆ _atof_l()

◆ _cabs()

◆ _chgsign()

Referenced by _chgsignf(), and _chgsignl().

◆ _chgsignf()

_Check_return_ __CRT_INLINE float _chgsignf ( _In_ float  x)

Definition at line 200 of file math.h.

200 { return (float)_chgsign((double)x); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
_Check_return_ _CRTIMP double __cdecl _chgsign(_In_ double x)

◆ _chgsignl()

_Check_return_ __CRT_INLINE long double _chgsignl ( _In_ long double  number)

Definition at line 248 of file math.h.

248 { return _chgsign((double)number); }
static size_t double number
Definition: printf.c:64
_Check_return_ _CRTIMP double __cdecl _chgsign(_In_ double x)

◆ _copysign()

_Check_return_ _CRTIMP double __cdecl _copysign ( _In_ double  x,
_In_ double  sgn 
)

Referenced by _copysignf(), and _copysignl().

◆ _copysignf()

_Check_return_ __CRT_INLINE float _copysignf ( _In_ float  x,
_In_ float  y 
)

Definition at line 201 of file math.h.

201 { return (float)_copysign((double)x, (double)y); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
_Check_return_ _CRTIMP double __cdecl _copysign(_In_ double x, _In_ double sgn)
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548

◆ _copysignl()

_Check_return_ __CRT_INLINE long double _copysignl ( _In_ long double  number,
_In_ long double  sign 
)

Definition at line 249 of file math.h.

249 { return _copysign((double)number, (double)sign); }
static size_t double int int int * sign
Definition: printf.c:64
static size_t double number
Definition: printf.c:64
_Check_return_ _CRTIMP double __cdecl _copysign(_In_ double x, _In_ double sgn)

◆ _CRT_NONSTDC_DEPRECATE() [1/6]

_CRT_NONSTDC_DEPRECATE ( _j0  )

◆ _CRT_NONSTDC_DEPRECATE() [2/6]

_CRT_NONSTDC_DEPRECATE ( _j1  )

◆ _CRT_NONSTDC_DEPRECATE() [3/6]

_CRT_NONSTDC_DEPRECATE ( _jn  )

◆ _CRT_NONSTDC_DEPRECATE() [4/6]

_CRT_NONSTDC_DEPRECATE ( _y0  )

◆ _CRT_NONSTDC_DEPRECATE() [5/6]

_CRT_NONSTDC_DEPRECATE ( _y1  )

◆ _CRT_NONSTDC_DEPRECATE() [6/6]

_CRT_NONSTDC_DEPRECATE ( _yn  )

◆ _hypot()

◆ _hypotf()

_Check_return_ __CRT_INLINE float _hypotf ( _In_ float  x,
_In_ float  y 
)

Definition at line 202 of file math.h.

202 { return (float)_hypot((double)x, (double)y); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
_Check_return_ _CRTIMP double __cdecl _hypot(_In_ double x, _In_ double y)
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548

Referenced by hypotf().

◆ _hypotl()

_Check_return_ __CRT_INLINE long double _hypotl ( _In_ long double  x,
_In_ long double  y 
)

Definition at line 250 of file math.h.

250 { return _hypot((double)x, (double)y); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
_Check_return_ _CRTIMP double __cdecl _hypot(_In_ double x, _In_ double y)
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548

◆ _j0()

◆ _j1()

◆ _jn()

◆ _matherr()

int __CRTDECL _matherr ( _Inout_ struct _exception exception)

◆ _nextafter()

◆ _y0()

◆ _y1()

◆ _yn()

◆ abs()

◆ acos()

Referenced by acosf(), and acosl().

◆ acosf()

_Check_return_ __CRT_INLINE float acosf ( _In_ float  x)

Definition at line 203 of file math.h.

203 { return (float)acos((double)x); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
_Check_return_ double __cdecl acos(_In_ double x)

Referenced by D3DXComputeTangentFrameEx(), D3DXQuaternionLn(), D3DXQuaternionSlerp(), and D3DXQuaternionToAxisAngle().

◆ acosl()

_Check_return_ __CRT_INLINE long double acosl ( _In_ long double  x)

Definition at line 228 of file math.h.

228 { return (acos((double)x)); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
_Check_return_ double __cdecl acos(_In_ double x)

◆ asin()

Referenced by asinf(), and asinl().

◆ asinf()

_Check_return_ __CRT_INLINE float asinf ( _In_ float  x)

Definition at line 204 of file math.h.

204 { return (float)asin((double)x); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
_Check_return_ double __cdecl asin(_In_ double x)

Referenced by D3DXSHEvalSphericalLight().

◆ asinl()

_Check_return_ __CRT_INLINE long double asinl ( _In_ long double  x)

Definition at line 229 of file math.h.

229 { return (asin((double)x)); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
_Check_return_ double __cdecl asin(_In_ double x)

◆ atan()

Referenced by atanf(), and atanl().

◆ atan2()

Referenced by atan2f(), and atan2l().

◆ atan2f()

_Check_return_ __CRT_INLINE float atan2f ( _In_ float  x,
_In_ float  y 
)

Definition at line 206 of file math.h.

206 { return (float)atan2((double)x,(double)y); }
_Check_return_ double __cdecl atan2(_In_ double y, _In_ double x)
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548

Referenced by D3DXSHRotate().

◆ atan2l()

_Check_return_ __CRT_INLINE long double atan2l ( _In_ long double  y,
_In_ long double  x 
)

Definition at line 231 of file math.h.

231 { return (atan2((double)y, (double)x)); }
_Check_return_ double __cdecl atan2(_In_ double y, _In_ double x)
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548

◆ atanf()

_Check_return_ __CRT_INLINE float atanf ( _In_ float  x)

Definition at line 205 of file math.h.

205 { return (float)atan((double)x); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
_Check_return_ double __cdecl atan(_In_ double x)

◆ atanl()

_Check_return_ __CRT_INLINE long double atanl ( _In_ long double  x)

Definition at line 230 of file math.h.

230 { return (atan((double)x)); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
_Check_return_ double __cdecl atan(_In_ double x)

◆ atof()

◆ ceil()

◆ ceilf()

_Check_return_ __CRT_INLINE float ceilf ( _In_ float  x)

Definition at line 207 of file math.h.

207 { return (float)ceil((double)x); }
_Check_return_ _CRTIMP double __cdecl ceil(_In_ double x)
GLint GLint GLint GLint GLint x
Definition: gl.h:1548

Referenced by roundf().

◆ ceill()

_Check_return_ __CRT_INLINE long double ceill ( _In_ long double  x)

Definition at line 232 of file math.h.

232 { return (ceil((double)x)); }
_Check_return_ _CRTIMP double __cdecl ceil(_In_ double x)
GLint GLint GLint GLint GLint x
Definition: gl.h:1548

Referenced by roundl().

◆ cos()

Referenced by cosf(), and cosl().

◆ cosf()

_Check_return_ __CRT_INLINE float cosf ( _In_ float  x)

Definition at line 208 of file math.h.

208 { return (float)cos((double)x); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
_Check_return_ double __cdecl cos(_In_ double x)

◆ cosh()

Referenced by coshf(), and coshl().

◆ coshf()

_Check_return_ __CRT_INLINE float coshf ( _In_ float  x)

Definition at line 209 of file math.h.

209 { return (float)cosh((double)x); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
_Check_return_ double __cdecl cosh(_In_ double x)

◆ coshl()

_Check_return_ __CRT_INLINE long double coshl ( _In_ long double  x)

Definition at line 234 of file math.h.

234 { return (cosh((double)x)); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
_Check_return_ double __cdecl cosh(_In_ double x)

◆ cosl()

_Check_return_ __CRT_INLINE long double cosl ( _In_ long double  x)

Definition at line 233 of file math.h.

233 { return (cos((double)x)); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
_Check_return_ double __cdecl cos(_In_ double x)

◆ exp()

Referenced by expf(), and expl().

◆ expf()

_Check_return_ __CRT_INLINE float expf ( _In_ float  x)

Definition at line 210 of file math.h.

210 { return (float)exp((double)x); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
_Check_return_ double __cdecl exp(_In_ double x)

◆ expl()

_Check_return_ __CRT_INLINE long double expl ( _In_ long double  x)

Definition at line 235 of file math.h.

235 { return (exp((double)x)); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
_Check_return_ double __cdecl exp(_In_ double x)

◆ fabs()

◆ fabsf()

_Check_return_ __CRT_INLINE float __CRTDECL fabsf ( _In_ float  x)

Definition at line 164 of file math.h.

164 { return ((float)fabs((double)x)); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
_Check_return_ _CRT_JIT_INTRINSIC double __cdecl fabs(_In_ double x)

Referenced by d3dx9_mesh_GenerateAdjacency(), D3DXIntersectTri(), D3DXSHRotate(), float_32_to_16(), invert_matrix(), invert_matrix_3d(), near_equal(), test_channelvolume(), test_simplevolume(), test_streamvolume(), test_volume_dependence(), weld_float1(), weld_float16_2(), weld_float16_4(), weld_float2(), weld_float3(), and weld_float4().

◆ fabsl()

_Check_return_ __CRT_INLINE long double fabsl ( _In_ long double  x)

Definition at line 236 of file math.h.

236 { return fabs((double)x); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
_Check_return_ _CRT_JIT_INTRINSIC double __cdecl fabs(_In_ double x)

◆ floor()

◆ floorf()

_Check_return_ __CRT_INLINE float floorf ( _In_ float  x)

Definition at line 211 of file math.h.

211 { return (float)floor((double)x); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
_Check_return_ _CRTIMP double __cdecl floor(_In_ double x)

Referenced by roundf().

◆ floorl()

_Check_return_ __CRT_INLINE long double floorl ( _In_ long double  x)

Definition at line 237 of file math.h.

237 { return (floor((double)x)); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
_Check_return_ _CRTIMP double __cdecl floor(_In_ double x)

Referenced by roundl().

◆ fmod()

◆ fmodf()

_Check_return_ __CRT_INLINE float fmodf ( _In_ float  x,
_In_ float  y 
)

Definition at line 212 of file math.h.

212 { return (float)fmod((double)x,(double)y); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
_Check_return_ double __cdecl fmod(_In_ double x, _In_ double y)
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548

Referenced by blend_line_gradient(), and GdipCreateLineBrushFromRectWithAngle().

◆ fmodl()

_Check_return_ __CRT_INLINE long double fmodl ( _In_ long double  x,
_In_ long double  y 
)

Definition at line 238 of file math.h.

238 { return (fmod((double)x, (double)y)); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
_Check_return_ double __cdecl fmod(_In_ double x, _In_ double y)
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548

◆ frexp()

◆ frexpf()

_Check_return_ __CRT_INLINE float frexpf ( _In_ float  x,
_Out_ int y 
)

Definition at line 225 of file math.h.

225 { return ((float)frexp((double)x,y)); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
_Check_return_ _CRTIMP double __cdecl frexp(_In_ double x, _Out_ int *y)
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548

◆ frexpl()

_Check_return_ __CRT_INLINE long double frexpl ( _In_ long double  x,
_Out_ int y 
)

Definition at line 239 of file math.h.

239 { return (frexp((double)x, y)); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
_Check_return_ _CRTIMP double __cdecl frexp(_In_ double x, _Out_ int *y)
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548

◆ hypot()

_Check_return_ __CRT_INLINE double hypot ( _In_ double  x,
_In_ double  y 
)

Definition at line 223 of file math.h.

223 { return _hypot(x, y); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
_Check_return_ _CRTIMP double __cdecl _hypot(_In_ double x, _In_ double y)
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548

Referenced by abs(), log10T(), logT(), powT(), and sqrtT().

◆ hypotf()

_Check_return_ __CRT_INLINE float hypotf ( _In_ float  x,
_In_ float  y 
)

Definition at line 224 of file math.h.

224 { return _hypotf(x, y); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
_Check_return_ __CRT_INLINE float _hypotf(_In_ float x, _In_ float y)
Definition: math.h:202

◆ hypotl()

_Check_return_ __CRT_INLINE long double hypotl ( _In_ long double  x,
_In_ long double  y 
)

Definition at line 240 of file math.h.

240 { return _hypot((double)x, (double)y); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
_Check_return_ _CRTIMP double __cdecl _hypot(_In_ double x, _In_ double y)
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548

◆ labs()

◆ ldexp()

◆ ldexpf()

_Check_return_ __CRT_INLINE float __CRTDECL ldexpf ( _In_ float  x,
_In_ int  y 
)

Definition at line 155 of file math.h.

155 { return (float)ldexp(x, y); }
_Check_return_ _CRTIMP double __cdecl ldexp(_In_ double x, _In_ int y)
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548

◆ ldexpl()

_Check_return_ __CRT_INLINE long double ldexpl ( _In_ long double  x,
_In_ int  y 
)

Definition at line 251 of file math.h.

251 { return ldexp((double)x, y); }
_Check_return_ _CRTIMP double __cdecl ldexp(_In_ double x, _In_ int y)
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548

◆ llabs()

Definition at line 1444 of file stdlib.h.

1444 { return (_j >= 0 ? _j : -_j); }

◆ llrint()

_Check_return_ __CRT_INLINE long long llrint ( _In_ double  x)

Definition at line 270 of file math.h.

270 { return (long long)((x < 0) ? (x - 0.5f) : (x + 0.5)); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLfloat f
Definition: glext.h:7540

◆ llrintf()

_Check_return_ __CRT_INLINE long long llrintf ( _In_ float  x)

Definition at line 271 of file math.h.

271 { return (long long)((x < 0) ? (x - 0.5f) : (x + 0.5)); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLfloat f
Definition: glext.h:7540

◆ llrintl()

_Check_return_ __CRT_INLINE long long llrintl ( _In_ long double  x)

Definition at line 272 of file math.h.

272 { return (long long)((x < 0) ? (x - 0.5f) : (x + 0.5)); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLfloat f
Definition: glext.h:7540

◆ llround()

_Check_return_ __CRT_INLINE long long llround ( _In_ double  x)

Definition at line 261 of file math.h.

261 { return (long long)((x < 0) ? (x - 0.5f) : (x + 0.5)); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLfloat f
Definition: glext.h:7540

◆ llroundf()

_Check_return_ __CRT_INLINE long long llroundf ( _In_ float  x)

Definition at line 262 of file math.h.

262 { return (long long)((x < 0) ? (x - 0.5f) : (x + 0.5)); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLfloat f
Definition: glext.h:7540

◆ llroundl()

_Check_return_ __CRT_INLINE long long llroundl ( _In_ long double  x)

Definition at line 263 of file math.h.

263 { return (long long)((x < 0) ? (x - 0.5f) : (x + 0.5)); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLfloat f
Definition: glext.h:7540

◆ log()

Referenced by logf(), and logl().

◆ log10()

Referenced by log10f(), and log10l().

◆ log10f()

_Check_return_ __CRT_INLINE float log10f ( _In_ float  x)

Definition at line 214 of file math.h.

214 { return (float)log10((double)x); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
_Check_return_ double __cdecl log10(_In_ double x)

◆ log10l()

_Check_return_ __CRT_INLINE long double log10l ( _In_ long double  x)

Definition at line 242 of file math.h.

242 { return (log10((double)x)); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
_Check_return_ double __cdecl log10(_In_ double x)

◆ logf()

_Check_return_ __CRT_INLINE float logf ( _In_ float  x)

Definition at line 213 of file math.h.

213 { return (float)log((double)x); }
_Check_return_ double __cdecl log(_In_ double x)
GLint GLint GLint GLint GLint x
Definition: gl.h:1548

◆ logl()

_Check_return_ __CRT_INLINE long double logl ( _In_ long double  x)

Definition at line 241 of file math.h.

241 { return (log((double)x)); }
_Check_return_ double __cdecl log(_In_ double x)
GLint GLint GLint GLint GLint x
Definition: gl.h:1548

◆ lrint()

◆ lrintf()

_Check_return_ __CRT_INLINE long lrintf ( _In_ float  x)

Definition at line 268 of file math.h.

268 { return (long)((x < 0) ? (x - 0.5f) : (x + 0.5)); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLfloat f
Definition: glext.h:7540

Referenced by PerformSampleRateConversion().

◆ lrintl()

_Check_return_ __CRT_INLINE long lrintl ( _In_ long double  x)

Definition at line 269 of file math.h.

269 { return (long)((x < 0) ? (x - 0.5f) : (x + 0.5)); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLfloat f
Definition: glext.h:7540

◆ lround()

_Check_return_ __CRT_INLINE long lround ( _In_ double  x)

Definition at line 258 of file math.h.

258 { return (long)((x < 0) ? (x - 0.5f) : (x + 0.5)); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLfloat f
Definition: glext.h:7540

◆ lroundf()

_Check_return_ __CRT_INLINE long lroundf ( _In_ float  x)

Definition at line 259 of file math.h.

259 { return (long)((x < 0) ? (x - 0.5f) : (x + 0.5)); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLfloat f
Definition: glext.h:7540

◆ lroundl()

_Check_return_ __CRT_INLINE long lroundl ( _In_ long double  x)

Definition at line 260 of file math.h.

260 { return (long)((x < 0) ? (x - 0.5f) : (x + 0.5)); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLfloat f
Definition: glext.h:7540

◆ modf()

◆ modff()

_Check_return_ __CRT_INLINE float modff ( _In_ float  x,
_Out_ float *  y 
)

Definition at line 215 of file math.h.

215 { double _Di,_Df = modf((double)x,&_Di); *y = (float)_Di; return (float)_Df; }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
_Check_return_ _CRTIMP double __cdecl modf(_In_ double x, _Out_ double *y)

◆ modfl()

_Check_return_ __CRT_INLINE long double modfl ( _In_ long double  x,
_Out_ long double y 
)

Definition at line 252 of file math.h.

252 { return (long double)modf((double)x, (double *)y); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
_Check_return_ _CRTIMP double __cdecl modf(_In_ double x, _Out_ double *y)

◆ pow()

Referenced by powf(), and powl().

◆ powf()

_Check_return_ __CRT_INLINE float powf ( _In_ float  x,
_In_ float  y 
)

Definition at line 216 of file math.h.

216 { return (float)pow((double)x,(double)y); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
_Check_return_ double __cdecl pow(_In_ double x, double y)
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548

Referenced by apply_image_attributes(), flatten_bezier(), float_16_to_32(), float_24_to_32(), from_sRGB_component(), pow(), and to_sRGB_component().

◆ powl()

_Check_return_ __CRT_INLINE long double powl ( _In_ long double  x,
_In_ long double  y 
)

Definition at line 243 of file math.h.

243 { return (pow((double)x, (double)y)); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
_Check_return_ double __cdecl pow(_In_ double x, double y)
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548

◆ rint()

_Check_return_ __CRT_INLINE double rint ( _In_ double  x)

Definition at line 264 of file math.h.

264 { return round(x); }
_Check_return_ __CRT_INLINE double round(_In_ double x)
Definition: math.h:255
GLint GLint GLint GLint GLint x
Definition: gl.h:1548

◆ rintf()

_Check_return_ __CRT_INLINE float rintf ( _In_ float  x)

Definition at line 265 of file math.h.

265 { return roundf(x); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
_Check_return_ __CRT_INLINE float roundf(_In_ float x)
Definition: math.h:256

◆ rintl()

_Check_return_ __CRT_INLINE long double rintl ( _In_ long double  x)

Definition at line 266 of file math.h.

266 { return roundl(x); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
_Check_return_ __CRT_INLINE long double roundl(_In_ long double x)
Definition: math.h:257

◆ round()

_Check_return_ __CRT_INLINE double round ( _In_ double  x)

Definition at line 255 of file math.h.

255 { return (x < 0) ? ceil(x - 0.5f) : floor(x + 0.5); }
_Check_return_ _CRTIMP double __cdecl ceil(_In_ double x)
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLfloat f
Definition: glext.h:7540
_Check_return_ _CRTIMP double __cdecl floor(_In_ double x)

Referenced by rint().

◆ roundf()

_Check_return_ __CRT_INLINE float roundf ( _In_ float  x)

Definition at line 256 of file math.h.

256 { return (x < 0) ? ceilf(x - 0.5f) : floorf(x + 0.5); }
_Check_return_ __CRT_INLINE float floorf(_In_ float x)
Definition: math.h:211
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLfloat f
Definition: glext.h:7540
_Check_return_ __CRT_INLINE float ceilf(_In_ float x)
Definition: math.h:207

Referenced by rintf().

◆ roundl()

_Check_return_ __CRT_INLINE long double roundl ( _In_ long double  x)

Definition at line 257 of file math.h.

257 { return (x < 0) ? ceill(x - 0.5f) : floorl(x + 0.5); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLfloat f
Definition: glext.h:7540
_Check_return_ __CRT_INLINE long double floorl(_In_ long double x)
Definition: math.h:237
_Check_return_ __CRT_INLINE long double ceill(_In_ long double x)
Definition: math.h:232

Referenced by rintl().

◆ sin()

Referenced by sinf(), and sinl().

◆ sinf()

_Check_return_ __CRT_INLINE float sinf ( _In_ float  x)

Definition at line 217 of file math.h.

217 { return (float)sin((double)x); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
_Check_return_ double __cdecl sin(_In_ double x)

◆ sinh()

Referenced by sinhf(), and sinhl().

◆ sinhf()

_Check_return_ __CRT_INLINE float sinhf ( _In_ float  x)

Definition at line 218 of file math.h.

218 { return (float)sinh((double)x); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
_Check_return_ double __cdecl sinh(_In_ double x)

◆ sinhl()

_Check_return_ __CRT_INLINE long double sinhl ( _In_ long double  x)

Definition at line 245 of file math.h.

245 { return (sinh((double)x)); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
_Check_return_ double __cdecl sinh(_In_ double x)

◆ sinl()

_Check_return_ __CRT_INLINE long double sinl ( _In_ long double  x)

Definition at line 244 of file math.h.

244 { return (sin((double)x)); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
_Check_return_ double __cdecl sin(_In_ double x)

◆ sqrt()

◆ sqrtf()

_Check_return_ __CRT_INLINE float sqrtf ( _In_ float  x)

Definition at line 219 of file math.h.

219 { return (float)sqrt((double)x); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
_Check_return_ _CRT_JIT_INTRINSIC double __cdecl sqrt(_In_ double x)

◆ sqrtl()

_Check_return_ __CRT_INLINE long double sqrtl ( _In_ long double  x)

Definition at line 246 of file math.h.

246 { return (sqrt((double)x)); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
_Check_return_ _CRT_JIT_INTRINSIC double __cdecl sqrt(_In_ double x)

◆ tan()

Referenced by tanf(), and tanl().

◆ tanf()

_Check_return_ __CRT_INLINE float tanf ( _In_ float  x)

Definition at line 220 of file math.h.

220 { return (float)tan((double)x); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
_Check_return_ double __cdecl tan(_In_ double x)

Referenced by D3DXMatrixPerspectiveFovLH(), and D3DXMatrixPerspectiveFovRH().

◆ tanh()

Referenced by tanhf(), and tanhl().

◆ tanhf()

_Check_return_ __CRT_INLINE float tanhf ( _In_ float  x)

Definition at line 221 of file math.h.

221 { return (float)tanh((double)x); }
_Check_return_ double __cdecl tanh(_In_ double x)
GLint GLint GLint GLint GLint x
Definition: gl.h:1548

◆ tanhl()

_Check_return_ __CRT_INLINE long double tanhl ( _In_ long double  x)

Definition at line 247 of file math.h.

247 {return (tanh((double)x)); }
_Check_return_ double __cdecl tanh(_In_ double x)
GLint GLint GLint GLint GLint x
Definition: gl.h:1548

◆ tanl()

_Check_return_ __CRT_INLINE long double __CRTDECL tanl ( _In_ long double  x)

Definition at line 156 of file math.h.

156 { return (tan((double)x)); }
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
_Check_return_ double __cdecl tan(_In_ double x)

Variable Documentation

◆ _HUGE

Definition at line 6 of file huge_val.c.

◆ y

Definition at line 290 of file math.h.