ReactOS 0.4.15-dev-7788-g1ad9096
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_ float __cdecl _chgsignf (_In_ float x)
 
_Check_return_ float __cdecl _copysignf (_In_ float x, _In_ float y)
 
_Check_return_ float __cdecl _hypotf (_In_ float x, _In_ float y)
 
_Check_return_ float __cdecl acosf (_In_ float x)
 
_Check_return_ float __cdecl asinf (_In_ float x)
 
_Check_return_ float __cdecl atanf (_In_ float x)
 
_Check_return_ float __cdecl atan2f (_In_ float x, _In_ float y)
 
_Check_return_ float __cdecl ceilf (_In_ float x)
 
_Check_return_ float __cdecl cosf (_In_ float x)
 
_Check_return_ float __cdecl coshf (_In_ float x)
 
_Check_return_ float __cdecl expf (_In_ float x)
 
_Check_return_ float __cdecl floorf (_In_ float x)
 
_Check_return_ float __cdecl fmodf (_In_ float x, _In_ float y)
 
_Check_return_ float __cdecl logf (_In_ float x)
 
_Check_return_ float __cdecl log10f (_In_ float x)
 
_Check_return_ float __cdecl modff (_In_ float x, _Out_ float *y)
 
_Check_return_ float __cdecl powf (_In_ float b, _In_ float e)
 
_Check_return_ float __cdecl sinf (_In_ float x)
 
_Check_return_ float __cdecl sinhf (_In_ float x)
 
_Check_return_ float __cdecl sqrtf (_In_ float x)
 
_Check_return_ float __cdecl tanf (_In_ float x)
 
_Check_return_ float __cdecl 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)
 
_Check_return_ __CRT_INLINE double log2 (_In_ 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 117 of file math.h.

◆ _CRT_MATHERR_DEFINED

#define _CRT_MATHERR_DEFINED

Definition at line 112 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 123 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 316 of file math.h.

◆ complex

Definition at line 35 of file math.h.

◆ DOMAIN

#define DOMAIN   _DOMAIN

Definition at line 306 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 314 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 312 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 308 of file math.h.

◆ PLOSS

#define PLOSS   _PLOSS

Definition at line 311 of file math.h.

◆ SING

#define SING   _SING

Definition at line 307 of file math.h.

◆ TLOSS

#define TLOSS   _TLOSS

Definition at line 310 of file math.h.

◆ UNDERFLOW

#define UNDERFLOW   _UNDERFLOW

Definition at line 309 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 216 of file math.h.

216{ 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 265 of file math.h.

265{ return _chgsign((double)number); }
static unsigned int number
Definition: dsound.c:1479

◆ _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 217 of file math.h.

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

◆ _copysignl()

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

Definition at line 266 of file math.h.

266{ return _copysign((double)number, (double)sign); }
#define sign(x)
Definition: mapdesc.cc:613

◆ _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 218 of file math.h.

218{ return (float)_hypot((double)x, (double)y); }
_Check_return_ _CRTIMP double __cdecl _hypot(_In_ double x, _In_ double y)

Referenced by hypotf().

◆ _hypotl()

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

Definition at line 267 of file math.h.

267{ return _hypot((double)x, (double)y); }

◆ _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 219 of file math.h.

219{ return (float)acos((double)x); }
_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 245 of file math.h.

245{ return (acos((double)x)); }

◆ asin()

Referenced by asinf(), and asinl().

◆ asinf()

_Check_return_ __CRT_INLINE float asinf ( _In_ float  x)

Definition at line 220 of file math.h.

220{ return (float)asin((double)x); }
_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 246 of file math.h.

246{ return (asin((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 222 of file math.h.

222{ return (float)atan2((double)x,(double)y); }
_Check_return_ double __cdecl atan2(_In_ double y, _In_ double x)

Referenced by D3DXSHRotate().

◆ atan2l()

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

Definition at line 248 of file math.h.

248{ return (atan2((double)y, (double)x)); }

◆ atanf()

_Check_return_ __CRT_INLINE float atanf ( _In_ float  x)

Definition at line 221 of file math.h.

221{ return (float)atan((double)x); }
_Check_return_ double __cdecl atan(_In_ double x)

◆ atanl()

_Check_return_ __CRT_INLINE long double atanl ( _In_ long double  x)

Definition at line 247 of file math.h.

247{ return (atan((double)x)); }

◆ atof()

◆ ceil()

◆ ceilf()

_Check_return_ __CRT_INLINE float ceilf ( _In_ float  x)

Definition at line 223 of file math.h.

223{ return (float)ceil((double)x); }
_Check_return_ _CRTIMP double __cdecl ceil(_In_ double x)

◆ ceill()

_Check_return_ __CRT_INLINE long double ceill ( _In_ long double  x)

Definition at line 249 of file math.h.

249{ return (ceil((double)x)); }

Referenced by roundl().

◆ cos()

Referenced by cosf(), and cosl().

◆ cosf()

◆ cosh()

Referenced by coshf(), and coshl().

◆ coshf()

_Check_return_ __CRT_INLINE float coshf ( _In_ float  x)

Definition at line 225 of file math.h.

225{ return (float)cosh((double)x); }
_Check_return_ double __cdecl cosh(_In_ double x)

◆ coshl()

_Check_return_ __CRT_INLINE long double coshl ( _In_ long double  x)

Definition at line 251 of file math.h.

251{ return (cosh((double)x)); }

◆ cosl()

_Check_return_ __CRT_INLINE long double cosl ( _In_ long double  x)

Definition at line 250 of file math.h.

250{ return (cos((double)x)); }

◆ exp()

◆ expf()

_Check_return_ __CRT_INLINE float expf ( _In_ float  x)

Definition at line 226 of file math.h.

226{ return (float)exp((double)x); }
DWORD exp
Definition: msg.c:16058

◆ expl()

_Check_return_ __CRT_INLINE long double expl ( _In_ long double  x)

Definition at line 252 of file math.h.

252{ return (exp((double)x)); }

◆ fabs()

Definition at line 17 of file fabs.c.

19{
20 /* Load the value as uint64 */
21 unsigned long long u64 = *(unsigned long long*)&x;
22
23 /* Clear the sign bit */
24 u64 &= ~(1ULL << 63);
25
26 /* Check for NAN */
27 if (u64 > 0x7FF0000000000000ull)
28 {
29#ifdef _M_IX86
30 /* Set error bit */
31 *(unsigned long long*)&x |= 0x0008000000000000ull;
32#endif
33 return x;
34 }
35
36 /* Convert back to double */
37 return *(double*)&u64;
38}
ULONG64 u64
Definition: btrfs.h:15

Referenced by __ieee754_j0(), __ieee754_j1(), __ieee754_jn(), _hypot(), brush_fill_pixels(), check_dc_state(), check_mat(), colors_match(), ColorTest(), compare(), compare_bitmap_data(), cosh(), DBG_is_U_direction(), EMF_FixIsotropic(), eto_scale_enum_proc(), fabsf(), fabsl(), fill_cube_positive_x(), findLeftGridIndices(), flatten_bezier(), GdipCreateLineBrush(), GdipGetPathWorldBounds(), GdipIsMatrixInvertible(), height_to_LP(), in_plane(), IntGdiWidenPath(), linear_vari_process(), linegradient_init_transform(), logic_dbl2int(), myequal(), ok_path(), PATH_DoArcPart(), prepare_rpn_result_2(), pres_log(), pres_rsq(), relative_error(), sampleCompTopSimpleOpt(), ScriptXtoCP(), sinc_hex_vari_process(), sinc_mono_vari_process(), sinc_multichan_vari_process(), sinc_quad_vari_process(), sinc_stereo_vari_process(), src_process(), sampledLine::tessellate(), test_BeginContainer2(), test_buffer(), test_buffer8(), test_clipping(), test_clipping_2(), test_D3DXSHEvalSphericalLight(), test_D3DXSHRotateZ(), test_decode_4bpp(), test_decode_rle4(), test_decode_rle8(), Test_fabs(), test_font_height_scaling(), test_GdipMeasureString(), test_session_creation(), test_tiff_resolution(), test_transform(), unstretch_angle(), VarUdateFromDate(), width_to_LP(), xform_eq(), xform_near_match(), xsltFormatNumberConversion(), xsltNumberFormatDecimal(), zoh_vari_process(), and CardRegion::ZoomCard().

◆ fabsf()

◆ fabsl()

_Check_return_ __CRT_INLINE long double fabsl ( _In_ long double  x)

Definition at line 253 of file math.h.

253{ return fabs((double)x); }

◆ floor()

◆ floorf()

_Check_return_ __CRT_INLINE float floorf ( _In_ float  x)

Definition at line 227 of file math.h.

227{ return (float)floor((double)x); }
_Check_return_ _CRTIMP double __cdecl floor(_In_ double x)

◆ floorl()

_Check_return_ __CRT_INLINE long double floorl ( _In_ long double  x)

Definition at line 254 of file math.h.

254{ return (floor((double)x)); }

◆ fmod()

◆ fmodf()

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

Definition at line 228 of file math.h.

228{ return (float)fmod((double)x,(double)y); }
_Check_return_ double __cdecl fmod(_In_ double x, _In_ double y)

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 255 of file math.h.

255{ return (fmod((double)x, (double)y)); }

◆ frexp()

Referenced by frexpf(), and frexpl().

◆ frexpf()

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

Definition at line 242 of file math.h.

242{ return ((float)frexp((double)x,y)); }
_Check_return_ _CRTIMP double __cdecl frexp(_In_ double x, _Out_ int *y)

◆ frexpl()

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

Definition at line 256 of file math.h.

256{ return (frexp((double)x, y)); }

◆ hypot()

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

Definition at line 240 of file math.h.

240{ return _hypot(x, y); }

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

◆ hypotf()

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

Definition at line 241 of file math.h.

241{ return _hypotf(x, y); }
_Check_return_ float __cdecl _hypotf(_In_ float x, _In_ float y)
Definition: math.h:218

◆ hypotl()

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

Definition at line 257 of file math.h.

257{ return _hypot((double)x, (double)y); }

◆ labs()

◆ ldexp()

Referenced by _scalb(), ldexpf(), and ldexpl().

◆ ldexpf()

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

Definition at line 168 of file math.h.

168{ return (float)ldexp(x, y); }
_Check_return_ _CRTIMP double __cdecl ldexp(_In_ double x, _In_ int y)

◆ ldexpl()

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

Definition at line 268 of file math.h.

268{ return ldexp((double)x, y); }

◆ llabs()

Definition at line 1435 of file stdlib.h.

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

Referenced by compute_location(), and eval_expression().

◆ llrint()

_Check_return_ __CRT_INLINE long long llrint ( _In_ double  x)

Definition at line 295 of file math.h.

295{ return (long long)((x < 0) ? (x - 0.5f) : (x + 0.5)); }

◆ llrintf()

_Check_return_ __CRT_INLINE long long llrintf ( _In_ float  x)

Definition at line 296 of file math.h.

296{ return (long long)((x < 0) ? (x - 0.5f) : (x + 0.5)); }

◆ llrintl()

_Check_return_ __CRT_INLINE long long llrintl ( _In_ long double  x)

Definition at line 297 of file math.h.

297{ return (long long)((x < 0) ? (x - 0.5f) : (x + 0.5)); }

◆ llround()

_Check_return_ __CRT_INLINE long long llround ( _In_ double  x)

Definition at line 286 of file math.h.

286{ return (long long)((x < 0) ? (x - 0.5f) : (x + 0.5)); }

◆ llroundf()

_Check_return_ __CRT_INLINE long long llroundf ( _In_ float  x)

Definition at line 287 of file math.h.

287{ return (long long)((x < 0) ? (x - 0.5f) : (x + 0.5)); }

◆ llroundl()

_Check_return_ __CRT_INLINE long long llroundl ( _In_ long double  x)

Definition at line 288 of file math.h.

288{ return (long long)((x < 0) ? (x - 0.5f) : (x + 0.5)); }

◆ log()

◆ log10()

Referenced by log10f(), and log10l().

◆ log10f()

_Check_return_ __CRT_INLINE float log10f ( _In_ float  x)

Definition at line 230 of file math.h.

230{ return (float)log10((double)x); }
_Check_return_ double __cdecl log10(_In_ double x)

◆ log10l()

_Check_return_ __CRT_INLINE long double log10l ( _In_ long double  x)

Definition at line 259 of file math.h.

259{ return (log10((double)x)); }

◆ log2()

_Check_return_ __CRT_INLINE double log2 ( _In_ double  x)

Definition at line 301 of file math.h.

301{ return log(x) / log(2); }
#define log(outFile, fmt,...)
Definition: util.h:15

Referenced by _exp2(), logbase2(), and pres_log().

◆ logf()

_Check_return_ __CRT_INLINE float logf ( _In_ float  x)

Definition at line 229 of file math.h.

229{ return (float)log((double)x); }

Referenced by wined3d_device_set_light().

◆ logl()

_Check_return_ __CRT_INLINE long double logl ( _In_ long double  x)

Definition at line 258 of file math.h.

258{ return (log((double)x)); }

◆ lrint()

◆ lrintf()

_Check_return_ __CRT_INLINE long lrintf ( _In_ float  x)

Definition at line 293 of file math.h.

293{ return (long)((x < 0) ? (x - 0.5f) : (x + 0.5)); }

Referenced by PerformSampleRateConversion().

◆ lrintl()

_Check_return_ __CRT_INLINE long lrintl ( _In_ long double  x)

Definition at line 294 of file math.h.

294{ return (long)((x < 0) ? (x - 0.5f) : (x + 0.5)); }

◆ lround()

_Check_return_ __CRT_INLINE long lround ( _In_ double  x)

Definition at line 283 of file math.h.

283{ return (long)((x < 0) ? (x - 0.5f) : (x + 0.5)); }

◆ lroundf()

_Check_return_ __CRT_INLINE long lroundf ( _In_ float  x)

Definition at line 284 of file math.h.

284{ return (long)((x < 0) ? (x - 0.5f) : (x + 0.5)); }

◆ lroundl()

_Check_return_ __CRT_INLINE long lroundl ( _In_ long double  x)

Definition at line 285 of file math.h.

285{ return (long)((x < 0) ? (x - 0.5f) : (x + 0.5)); }

◆ modf()

◆ modff()

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

Definition at line 231 of file math.h.

231{ double _Di,_Df = modf((double)x,&_Di); *y = (float)_Di; return (float)_Df; }
_Check_return_ _CRTIMP double __cdecl modf(_In_ double x, _Out_ double *y)
static float(__cdecl *square_half_float)(float x

◆ modfl()

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

Definition at line 269 of file math.h.

269{ return (long double)modf((double)x, (double *)y); }

◆ pow()

Referenced by powf(), and powl().

◆ powf()

_Check_return_ __CRT_INLINE float powf ( _In_ float  b,
_In_ float  e 
)

Definition at line 232 of file math.h.

232{ return (float)pow((double)x,(double)y); }
_Check_return_ double __cdecl pow(_In_ double x, double y)

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

◆ powl()

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

Definition at line 260 of file math.h.

260{ return (pow((double)x, (double)y)); }

◆ rint()

_Check_return_ __CRT_INLINE double rint ( _In_ double  x)

Definition at line 289 of file math.h.

289{ return round(x); }
#define round(x)
Definition: opentype.c:47

◆ rintf()

_Check_return_ __CRT_INLINE float rintf ( _In_ float  x)

Definition at line 290 of file math.h.

290{ return roundf(x); }
_Check_return_ __CRT_INLINE float roundf(_In_ float x)
Definition: math.h:281

◆ rintl()

_Check_return_ __CRT_INLINE long double rintl ( _In_ long double  x)

Definition at line 291 of file math.h.

291{ return roundl(x); }
_Check_return_ __CRT_INLINE long double roundl(_In_ long double x)
Definition: math.h:282

◆ round()

_Check_return_ __CRT_INLINE double round ( _In_ double  x)

Definition at line 280 of file math.h.

280{ return (x < 0) ? ceil(x - 0.5f) : floor(x + 0.5); }

◆ roundf()

_Check_return_ __CRT_INLINE float roundf ( _In_ float  x)

Definition at line 281 of file math.h.

281{ return (x < 0) ? ceilf(x - 0.5f) : floorf(x + 0.5); }
#define ceilf(x)
Definition: mymath.h:62
#define floorf(x)
Definition: mymath.h:65

Referenced by rintf().

◆ roundl()

_Check_return_ __CRT_INLINE long double roundl ( _In_ long double  x)

Definition at line 282 of file math.h.

282{ return (x < 0) ? ceill(x - 0.5f) : floorl(x + 0.5); }
_Check_return_ __CRT_INLINE long double ceill(_In_ long double x)
Definition: math.h:249
#define floorl(x)
Definition: trio.c:273

Referenced by rintl().

◆ sin()

Referenced by sinf(), and sinl().

◆ sinf()

◆ sinh()

Referenced by sinhf(), and sinhl().

◆ sinhf()

_Check_return_ __CRT_INLINE float sinhf ( _In_ float  x)

Definition at line 234 of file math.h.

234{ return (float)sinh((double)x); }
_Check_return_ double __cdecl sinh(_In_ double x)

◆ sinhl()

_Check_return_ __CRT_INLINE long double sinhl ( _In_ long double  x)

Definition at line 262 of file math.h.

262{ return (sinh((double)x)); }

◆ sinl()

_Check_return_ __CRT_INLINE long double sinl ( _In_ long double  x)

Definition at line 261 of file math.h.

261{ return (sin((double)x)); }

◆ sqrt()

◆ sqrtf()

_Check_return_ __CRT_INLINE float sqrtf ( _In_ float  x)

Definition at line 235 of file math.h.

235{ return (float)sqrt((double)x); }
_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 263 of file math.h.

263{ return (sqrt((double)x)); }

◆ tan()

Referenced by tanf(), and tanl().

◆ tanf()

_Check_return_ __CRT_INLINE float tanf ( _In_ float  x)

Definition at line 236 of file math.h.

236{ return (float)tan((double)x); }
_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 237 of file math.h.

237{ return (float)tanh((double)x); }
_Check_return_ double __cdecl tanh(_In_ double x)

◆ tanhl()

_Check_return_ __CRT_INLINE long double tanhl ( _In_ long double  x)

Definition at line 264 of file math.h.

264{return (tanh((double)x)); }

◆ tanl()

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

Definition at line 169 of file math.h.

169{ return (tan((double)x)); }

Variable Documentation

◆ _HUGE

_CRTIMP double const _HUGE
extern

Definition at line 6 of file huge_val.c.

◆ y

Definition at line 320 of file math.h.