STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Functions
Concurrency::fast_math Namespace Reference

Functions in the fast_math namespace have lower accuracy, and support only single-precision float. More...

Functions

float fabsf (float _X) __GPU_ONLY
 Returns the absolute value of the argument More...
 
float fabs (float _X) __GPU_ONLY
 Returns the absolute value of the argument More...
 
float acosf (float _X) __GPU_ONLY
 Calculates the arccosine of the argument More...
 
float acos (float _X) __GPU_ONLY
 Calculates the arccosine of the argument More...
 
float asinf (float _X) __GPU_ONLY
 Calculates the arcsine of the argument More...
 
float asin (float _X) __GPU_ONLY
 Calculates the arcsine of the argument More...
 
float atanf (float _X) __GPU_ONLY
 Calculates the arctangent of the argument More...
 
float atan (float _X) __GPU_ONLY
 Calculates the arctangent of the argument More...
 
float atan2f (float _Y, float _X) __GPU_ONLY
 Calculates the arctangent of _Y/_X More...
 
float atan2 (float _Y, float _X) __GPU_ONLY
 Calculates the arctangent of _Y/_X More...
 
float ceilf (float _X) __GPU_ONLY
 Calculates the ceiling of the argument More...
 
float ceil (float _X) __GPU_ONLY
 Calculates the ceiling of the argument More...
 
float cosf (float _X) __GPU_ONLY
 Calculates the cosine of the argument More...
 
float cos (float _X) __GPU_ONLY
 Calculates the cosine of the argument More...
 
float coshf (float _X) __GPU_ONLY
 Calculates the hyperbolic cosine value of the argument More...
 
float cosh (float _X) __GPU_ONLY
 Calculates the hyperbolic cosine value of the argument More...
 
float expf (float _X) __GPU_ONLY
 Calculates the base-e exponential of the argument More...
 
float exp (float _X) __GPU_ONLY
 Calculates the base-e exponential of the argument More...
 
float exp2f (float _X) __GPU_ONLY
 Calculates the base-2 exponential of the argument More...
 
float exp2 (float _X) __GPU_ONLY
 Calculates the base-2 exponential of the argument More...
 
float floorf (float _X) __GPU_ONLY
 Calculates the floor of the argument More...
 
float floor (float _X) __GPU_ONLY
 Calculates the floor of the argument More...
 
float fmaxf (float _X, float _Y) __GPU_ONLY
 Determine the maximum numeric value of the arguments More...
 
float fmax (float _X, float _Y) __GPU_ONLY
 Determine the maximum numeric value of the arguments More...
 
float fminf (float _X, float _Y) __GPU_ONLY
 Determine the minimum numeric value of the arguments More...
 
float fmin (float _X, float _Y) __GPU_ONLY
 Determine the minimum numeric value of the arguments More...
 
float fmodf (float _X, float _Y) __GPU_ONLY
 Calculates the floating-point remainder of _X/_Y More...
 
float fmod (float _X, float _Y) __GPU_ONLY
 Calculates the floating-point remainder of _X/_Y More...
 
float frexpf (float _X, _Out_ int *_Exp) __GPU_ONLY
 Gets the mantissa and exponent of _X More...
 
float frexp (float _X, _Out_ int *_Exp) __GPU_ONLY
 Gets the mantissa and exponent of _X More...
 
int isfinite (float _X) __GPU_ONLY
 Determines whether the argument has a finite value More...
 
int isinf (float _X) __GPU_ONLY
 Determines whether the argument is an infinity More...
 
int isnan (float _X) __GPU_ONLY
 Determines whether the argument is a NaN More...
 
float ldexpf (float _X, int _Exp) __GPU_ONLY
 Computes a real number from the mantissa and exponent More...
 
float ldexp (float _X, int _Exp) __GPU_ONLY
 Computes a real number from the mantissa and exponent More...
 
float logf (float _X) __GPU_ONLY
 Calculates the base-e logarithm of the argument More...
 
float log (float _X) __GPU_ONLY
 Calculates the base-e logarithm of the argument More...
 
float log10f (float _X) __GPU_ONLY
 Calculates the base-10 logarithm of the argument More...
 
float log10 (float _X) __GPU_ONLY
 Calculates the base-10 logarithm of the argument More...
 
float log2f (float _X) __GPU_ONLY
 Calculates the base-2 logarithm of the argument More...
 
float log2 (float _X) __GPU_ONLY
 Calculates the base-2 logarithm of the argument More...
 
float modff (float _X, float *_Ip) __GPU_ONLY
 Splits _X into fractional and integer parts. More...
 
float modf (float _X, float *_Ip) __GPU_ONLY
 Splits _X into fractional and integer parts. More...
 
float powf (float _X, float _Y) __GPU_ONLY
 Calculates _X raised to the power of _Y More...
 
float pow (float _X, float _Y) __GPU_ONLY
 Calculates _X raised to the power of _Y More...
 
float roundf (float _X) __GPU_ONLY
 Rounds _X to the nearest integer More...
 
float round (float _X) __GPU_ONLY
 Rounds _X to the nearest integer More...
 
float rsqrtf (float _X) __GPU_ONLY
 Returns the reciprocal of the square root of the argument More...
 
float rsqrt (float _X) __GPU_ONLY
 Returns the reciprocal of the square root of the argument More...
 
int signbitf (float _X) __GPU_ONLY
 Returns the sign of the argument More...
 
int signbit (float _X) __GPU_ONLY
 Returns the sign of the argument More...
 
float sinf (float _X) __GPU_ONLY
 Calculates the sine value of the argument More...
 
float sin (float _X) __GPU_ONLY
 Calculates the sine value of the argument More...
 
void sincosf (float _X, float *_S, float *_C) __GPU_ONLY
 Calculates sine and cosine value of _X More...
 
void sincos (float _X, float *_S, float *_C) __GPU_ONLY
 Calculates sine and cosine value of _X More...
 
float sinhf (float _X) __GPU_ONLY
 Calculates the hyperbolic sine value of the argument More...
 
float sinh (float _X) __GPU_ONLY
 Calculates the hyperbolic sine value of the argument More...
 
float sqrtf (float _X) __GPU_ONLY
 Calculates the square root of the argument More...
 
float sqrt (float _X) __GPU_ONLY
 Calculates the square root of the argument More...
 
float tanf (float _X) __GPU_ONLY
 Calculates the tangent value of the argument More...
 
float tan (float _X) __GPU_ONLY
 Calculates the tangent value of the argument More...
 
float tanhf (float _X) __GPU_ONLY
 Calculates the hyperbolic tangent value of the argument More...
 
float tanh (float _X) __GPU_ONLY
 Calculates the hyperbolic tangent value of the argument More...
 
float truncf (float _X) __GPU_ONLY
 Truncates the argument to the integer component More...
 
float trunc (float _X) __GPU_ONLY
 Truncates the argument to the integer component More...
 

Detailed Description

Functions in the fast_math namespace have lower accuracy, and support only single-precision float.

Function Documentation

float Concurrency::fast_math::acos ( float  _X)
inline

Calculates the arccosine of the argument

Parameters
_XFloating-point value
Returns
Returns the arccosine value of the argument
270  {
271  return __dp_d3d_acosf(_X);
272  }
float __dp_d3d_acosf(float) __GPU_ONLY
float Concurrency::fast_math::acosf ( float  _X)
inline

Calculates the arccosine of the argument

Parameters
_XFloating-point value
Returns
Returns the arccosine value of the argument
256  {
257  return __dp_d3d_acosf(_X);
258  }
float __dp_d3d_acosf(float) __GPU_ONLY
float Concurrency::fast_math::asin ( float  _X)
inline

Calculates the arcsine of the argument

Parameters
_XFloating-point value
Returns
Returns the arcsine value of the argument
298  {
299  return __dp_d3d_asinf(_X);
300  }
float __dp_d3d_asinf(float) __GPU_ONLY
float Concurrency::fast_math::asinf ( float  _X)
inline

Calculates the arcsine of the argument

Parameters
_XFloating-point value
Returns
Returns the arcsine value of the argument
284  {
285  return __dp_d3d_asinf(_X);
286  }
float __dp_d3d_asinf(float) __GPU_ONLY
float Concurrency::fast_math::atan ( float  _X)
inline

Calculates the arctangent of the argument

Parameters
_XFloating-point value
Returns
Returns the arctangent value of the argument
326  {
327  return __dp_d3d_atanf(_X);
328  }
float __dp_d3d_atanf(float) __GPU_ONLY
float Concurrency::fast_math::atan2 ( float  _Y,
float  _X 
)
inline

Calculates the arctangent of _Y/_X

Parameters
_XFloating-point value
_YFloating-point value
Returns
Returns the arctangent value of _Y/_X
360  {
361  return __dp_d3d_atan2f(_Y, _X);
362  }
float __dp_d3d_atan2f(float, float) __GPU_ONLY
_In_ double _Y
Definition: corecrt_math.h:982
float Concurrency::fast_math::atan2f ( float  _Y,
float  _X 
)
inline

Calculates the arctangent of _Y/_X

Parameters
_XFloating-point value
_YFloating-point value
Returns
Returns the arctangent value of _Y/_X
343  {
344  return __dp_d3d_atan2f(_Y, _X);
345  }
float __dp_d3d_atan2f(float, float) __GPU_ONLY
_In_ double _Y
Definition: corecrt_math.h:982
float Concurrency::fast_math::atanf ( float  _X)
inline

Calculates the arctangent of the argument

Parameters
_XFloating-point value
Returns
Returns the arctangent value of the argument
312  {
313  return __dp_d3d_atanf(_X);
314  }
float __dp_d3d_atanf(float) __GPU_ONLY
float Concurrency::fast_math::ceil ( float  _X)
inline

Calculates the ceiling of the argument

Parameters
_XFloating-point value
Returns
Returns the ceiling of the argument
388  {
389  return __dp_d3d_ceilf(_X);
390  }
float __dp_d3d_ceilf(float) __GPU_ONLY
float Concurrency::fast_math::ceilf ( float  _X)
inline

Calculates the ceiling of the argument

Parameters
_XFloating-point value
Returns
Returns the ceiling of the argument
374  {
375  return __dp_d3d_ceilf(_X);
376  }
float __dp_d3d_ceilf(float) __GPU_ONLY
float Concurrency::fast_math::cos ( float  _X)
inline

Calculates the cosine of the argument

Parameters
_XFloating-point value
Returns
Returns the cosine value of the argument
416  {
417  return __dp_d3d_cosf(_X);
418  }
float __dp_d3d_cosf(float) __GPU_ONLY
float Concurrency::fast_math::cosf ( float  _X)
inline

Calculates the cosine of the argument

Parameters
_XFloating-point value
Returns
Returns the cosine value of the argument
402  {
403  return __dp_d3d_cosf(_X);
404  }
float __dp_d3d_cosf(float) __GPU_ONLY
float Concurrency::fast_math::cosh ( float  _X)
inline

Calculates the hyperbolic cosine value of the argument

Parameters
_XFloating-point value
Returns
Returns the hyperbolic cosine value of the argument
444  {
445  return __dp_d3d_coshf(_X);
446  }
float __dp_d3d_coshf(float) __GPU_ONLY
float Concurrency::fast_math::coshf ( float  _X)
inline

Calculates the hyperbolic cosine value of the argument

Parameters
_XFloating-point value
Returns
Returns the hyperbolic cosine value of the argument
430  {
431  return __dp_d3d_coshf(_X);
432  }
float __dp_d3d_coshf(float) __GPU_ONLY
float Concurrency::fast_math::exp ( float  _X)
inline

Calculates the base-e exponential of the argument

Parameters
_XFloating-point value
Returns
Returns the base-e exponential of the argument
472  {
473  return __dp_d3d_expf(_X);
474  }
float __dp_d3d_expf(float) __GPU_ONLY
float Concurrency::fast_math::exp2 ( float  _X)
inline

Calculates the base-2 exponential of the argument

Parameters
_XFloating-point value
Returns
Returns the base-2 exponential of the argument
500  {
501  return __dp_d3d_exp2f(_X);
502  }
float __dp_d3d_exp2f(float) __GPU_ONLY
float Concurrency::fast_math::exp2f ( float  _X)
inline

Calculates the base-2 exponential of the argument

Parameters
_XFloating-point value
Returns
Returns the base-2 exponential of the argument
486  {
487  return __dp_d3d_exp2f(_X);
488  }
float __dp_d3d_exp2f(float) __GPU_ONLY
float Concurrency::fast_math::expf ( float  _X)
inline

Calculates the base-e exponential of the argument

Parameters
_XFloating-point value
Returns
Returns the base-e exponential of the argument
458  {
459  return __dp_d3d_expf(_X);
460  }
float __dp_d3d_expf(float) __GPU_ONLY
float Concurrency::fast_math::fabs ( float  _X)
inline

Returns the absolute value of the argument

Parameters
_XFloating-point value
Returns
Returns the absolute value of the argument
242  {
243  return __dp_d3d_absf(_X);
244  }
float __dp_d3d_absf(float) __GPU_ONLY
float Concurrency::fast_math::fabsf ( float  _X)
inline

Returns the absolute value of the argument

Parameters
_XFloating-point value
Returns
Returns the absolute value of the argument
228  {
229  return __dp_d3d_absf(_X);
230  }
float __dp_d3d_absf(float) __GPU_ONLY
float Concurrency::fast_math::floor ( float  _X)
inline

Calculates the floor of the argument

Parameters
_XFloating-point value
Returns
Returns the floor of the argument
528  {
529  return __dp_d3d_floorf(_X);
530  }
float __dp_d3d_floorf(float) __GPU_ONLY
float Concurrency::fast_math::floorf ( float  _X)
inline

Calculates the floor of the argument

Parameters
_XFloating-point value
Returns
Returns the floor of the argument
514  {
515  return __dp_d3d_floorf(_X);
516  }
float __dp_d3d_floorf(float) __GPU_ONLY
float Concurrency::fast_math::fmax ( float  _X,
float  _Y 
)
inline

Determine the maximum numeric value of the arguments

Parameters
_XFloating-point value
_YFloating-point value
Returns
Return the maximum numeric value of the arguments
562  {
563  return __dp_d3d_maxf(_X, _Y);
564  }
float __dp_d3d_maxf(float, float) __GPU_ONLY
_In_ double _Y
Definition: corecrt_math.h:982
float Concurrency::fast_math::fmaxf ( float  _X,
float  _Y 
)
inline

Determine the maximum numeric value of the arguments

Parameters
_XFloating-point value
_YFloating-point value
Returns
Return the maximum numeric value of the arguments
545  {
546  return __dp_d3d_maxf(_X, _Y);
547  }
float __dp_d3d_maxf(float, float) __GPU_ONLY
_In_ double _Y
Definition: corecrt_math.h:982
float Concurrency::fast_math::fmin ( float  _X,
float  _Y 
)
inline

Determine the minimum numeric value of the arguments

Parameters
_XFloating-point value
_YFloating-point value
Returns
Return the minimum numeric value of the arguments
596  {
597  return __dp_d3d_minf(_X, _Y);
598  }
_In_ double _Y
Definition: corecrt_math.h:982
float __dp_d3d_minf(float, float) __GPU_ONLY
float Concurrency::fast_math::fminf ( float  _X,
float  _Y 
)
inline

Determine the minimum numeric value of the arguments

Parameters
_XFloating-point value
_YFloating-point value
Returns
Return the minimum numeric value of the arguments
579  {
580  return __dp_d3d_minf(_X, _Y);
581  }
_In_ double _Y
Definition: corecrt_math.h:982
float __dp_d3d_minf(float, float) __GPU_ONLY
float Concurrency::fast_math::fmod ( float  _X,
float  _Y 
)
inline

Calculates the floating-point remainder of _X/_Y

Parameters
_XFloating-point value
_YFloating-point value
Returns
Returns the floating-point remainder of _X/_Y
630  {
631  return __dp_d3d_fmodf(_X, _Y);
632  }
float __dp_d3d_fmodf(float, float) __GPU_ONLY
_In_ double _Y
Definition: corecrt_math.h:982
float Concurrency::fast_math::fmodf ( float  _X,
float  _Y 
)
inline

Calculates the floating-point remainder of _X/_Y

Parameters
_XFloating-point value
_YFloating-point value
Returns
Returns the floating-point remainder of _X/_Y
613  {
614  return __dp_d3d_fmodf(_X, _Y);
615  }
float __dp_d3d_fmodf(float, float) __GPU_ONLY
_In_ double _Y
Definition: corecrt_math.h:982
float Concurrency::fast_math::frexp ( float  _X,
_Out_ int _Exp 
)
inline

Gets the mantissa and exponent of _X

Parameters
_XFloating-point value
_ExpReturns the integer exponent of _X in floating-point value
Returns
Returns the mantissa _X
670  {
671  return frexpf(_X, _Exp);
672  }
_CRTIMP2_PURE short __CLRCALL_PURE_OR_CDECL _Exp(double *, double, short)
_Check_return_ __inline float __CRTDECL frexpf(_In_ float _X, _Out_ int *_Y)
Definition: corecrt_math.h:695
float Concurrency::fast_math::frexpf ( float  _X,
_Out_ int _Exp 
)
inline

Gets the mantissa and exponent of _X

Parameters
_XFloating-point value
_ExpReturns the integer exponent of _X in floating-point value
Returns
Returns the mantissa _X
647  {
648  float _FExp = 0.0f;
649  float _M = __dp_d3d_frexpf(_X, &_FExp);
650  *_Exp = static_cast<int>(_FExp);
651  // Currently, the mantissa returned by d3d's frexp is always positive
652  // Fetch the sign bit from _X to match cmath frexp
653  *reinterpret_cast<unsigned int*>(&_M) = *reinterpret_cast<unsigned int*>(&_M) | (*reinterpret_cast<unsigned int*>(&_X) & 0x80000000);
654  return _M;
655  }
_CRTIMP2_PURE short __CLRCALL_PURE_OR_CDECL _Exp(double *, double, short)
float __dp_d3d_frexpf(float, _Out_ float *) __GPU_ONLY
_CRTIMP2_PURE short __CLRCALL_PURE_OR_CDECL _FExp(float *, float, short)
int Concurrency::fast_math::isfinite ( float  _X)
inline

Determines whether the argument has a finite value

Parameters
_XFloating-point value
Returns
Returns a nonzero value if and only if the argument has a finite value
684  {
685  return __dp_d3d_isfinitef(_X);
686  }
int __dp_d3d_isfinitef(float) __GPU_ONLY
int Concurrency::fast_math::isinf ( float  _X)
inline

Determines whether the argument is an infinity

Parameters
_XFloating-point value
Returns
Returns a nonzero value if and only if the argument has an infinite value
698  {
699  return __dp_d3d_isinff(_X);
700  }
int __dp_d3d_isinff(float) __GPU_ONLY
int Concurrency::fast_math::isnan ( float  _X)
inline

Determines whether the argument is a NaN

Parameters
_XFloating-point value
Returns
Returns a nonzero value if and only if the argument has a NaN value
712  {
713  return __dp_d3d_isnanf(_X);
714  }
int __dp_d3d_isnanf(float) __GPU_ONLY
float Concurrency::fast_math::ldexp ( float  _X,
int  _Exp 
)
inline

Computes a real number from the mantissa and exponent

Parameters
_XFloating-point value, mantissa
_ExpInteger value, exponent
Returns
Returns _X * 2^_Exp
747  {
748  return ldexpf(_X, _Exp);
749  }
_CRTIMP2_PURE short __CLRCALL_PURE_OR_CDECL _Exp(double *, double, short)
_Check_return_ __inline float __CRTDECL ldexpf(_In_ float _X, _In_ int _Y)
Definition: corecrt_math.h:705
float Concurrency::fast_math::ldexpf ( float  _X,
int  _Exp 
)
inline

Computes a real number from the mantissa and exponent

Parameters
_XFloating-point value, mantissa
_ExpInteger value, exponent
Returns
Returns _X * 2^_Exp
729  {
730  float _FExp = static_cast<float>(_Exp);
731  return __dp_d3d_ldexpf(_X, _FExp);
732  }
_CRTIMP2_PURE short __CLRCALL_PURE_OR_CDECL _Exp(double *, double, short)
float __dp_d3d_ldexpf(float, float) __GPU_ONLY
_CRTIMP2_PURE short __CLRCALL_PURE_OR_CDECL _FExp(float *, float, short)
float Concurrency::fast_math::log ( float  _X)
inline

Calculates the base-e logarithm of the argument

Parameters
_XFloating-point value
Returns
Returns the base-e logarithm of the argument
775  {
776  return __dp_d3d_logf(_X);
777  }
float __dp_d3d_logf(float) __GPU_ONLY
float Concurrency::fast_math::log10 ( float  _X)
inline

Calculates the base-10 logarithm of the argument

Parameters
_XFloating-point value
Returns
Returns the base-10 logarithm of the argument
803  {
804  return __dp_d3d_log10f(_X);
805  }
float __dp_d3d_log10f(float) __GPU_ONLY
float Concurrency::fast_math::log10f ( float  _X)
inline

Calculates the base-10 logarithm of the argument

Parameters
_XFloating-point value
Returns
Returns the base-10 logarithm of the argument
789  {
790  return __dp_d3d_log10f(_X);
791  }
float __dp_d3d_log10f(float) __GPU_ONLY
float Concurrency::fast_math::log2 ( float  _X)
inline

Calculates the base-2 logarithm of the argument

Parameters
_XFloating-point value
Returns
Returns the base-2 logarithm of the argument
831  {
832  return __dp_d3d_log2f(_X);
833  }
float __dp_d3d_log2f(float) __GPU_ONLY
float Concurrency::fast_math::log2f ( float  _X)
inline

Calculates the base-2 logarithm of the argument

Parameters
_XFloating-point value
Returns
Returns the base-2 logarithm of the argument
817  {
818  return __dp_d3d_log2f(_X);
819  }
float __dp_d3d_log2f(float) __GPU_ONLY
float Concurrency::fast_math::logf ( float  _X)
inline

Calculates the base-e logarithm of the argument

Parameters
_XFloating-point value
Returns
Returns the base-e logarithm of the argument
761  {
762  return __dp_d3d_logf(_X);
763  }
float __dp_d3d_logf(float) __GPU_ONLY
float Concurrency::fast_math::modf ( float  _X,
float *  _Ip 
)
inline

Splits _X into fractional and integer parts.

Parameters
_XFloating-point value
_IpReturns the integer portion of _X in floating-point value
Returns
Returns the signed fractional portion of _X
865  {
866  return __dp_d3d_modff(_X, _Ip);
867  }
float __dp_d3d_modff(float, _Out_ float *) __GPU_ONLY
float Concurrency::fast_math::modff ( float  _X,
float *  _Ip 
)
inline

Splits _X into fractional and integer parts.

Parameters
_XFloating-point value
_IpReturns the integer portion of _X in floating-point value
Returns
Returns the signed fractional portion of _X
848  {
849  return __dp_d3d_modff(_X, _Ip);
850  }
float __dp_d3d_modff(float, _Out_ float *) __GPU_ONLY
float Concurrency::fast_math::pow ( float  _X,
float  _Y 
)
inline

Calculates _X raised to the power of _Y

Parameters
_XFloating-point value, base
_YFloating-point value, exponent
Returns
Returns the value of _X raised to the power of _Y
899  {
900  return __dp_d3d_powf(_X, _Y);
901  }
float __dp_d3d_powf(float, float) __GPU_ONLY
_In_ double _Y
Definition: corecrt_math.h:982
float Concurrency::fast_math::powf ( float  _X,
float  _Y 
)
inline

Calculates _X raised to the power of _Y

Parameters
_XFloating-point value, base
_YFloating-point value, exponent
Returns
Returns the value of _X raised to the power of _Y
882  {
883  return __dp_d3d_powf(_X, _Y);
884  }
float __dp_d3d_powf(float, float) __GPU_ONLY
_In_ double _Y
Definition: corecrt_math.h:982
float Concurrency::fast_math::round ( float  _X)
inline

Rounds _X to the nearest integer

Parameters
_XFloating-point value
Returns
Returns the nearest integer of _X
927  {
928  return __dp_d3d_roundf(_X);
929  }
float __dp_d3d_roundf(float) __GPU_ONLY
float Concurrency::fast_math::roundf ( float  _X)
inline

Rounds _X to the nearest integer

Parameters
_XFloating-point value
Returns
Returns the nearest integer of _X
913  {
914  return __dp_d3d_roundf(_X);
915  }
float __dp_d3d_roundf(float) __GPU_ONLY
float Concurrency::fast_math::rsqrt ( float  _X)
inline

Returns the reciprocal of the square root of the argument

Parameters
_XFloating-point value
Returns
Returns the reciprocal of the square root of the argument
955  {
956  return __dp_d3d_rsqrtf(_X);
957  }
float __dp_d3d_rsqrtf(float) __GPU_ONLY
float Concurrency::fast_math::rsqrtf ( float  _X)
inline

Returns the reciprocal of the square root of the argument

Parameters
_XFloating-point value
Returns
Returns the reciprocal of the square root of the argument
941  {
942  return __dp_d3d_rsqrtf(_X);
943  }
float __dp_d3d_rsqrtf(float) __GPU_ONLY
int Concurrency::fast_math::signbit ( float  _X)
inline

Returns the sign of the argument

Parameters
_XFloating-point value
Returns
Returns the sign of the argument
983  {
984  return __dp_d3d_signf(_X);
985  }
int __dp_d3d_signf(float) __GPU_ONLY
int Concurrency::fast_math::signbitf ( float  _X)
inline

Returns the sign of the argument

Parameters
_XFloating-point value
Returns
Returns the sign of the argument
969  {
970  return __dp_d3d_signf(_X);
971  }
int __dp_d3d_signf(float) __GPU_ONLY
float Concurrency::fast_math::sin ( float  _X)
inline

Calculates the sine value of the argument

Parameters
_XFloating-point value
Returns
Returns the sine value of the argument
1011  {
1012  return __dp_d3d_sinf(_X);
1013  }
float __dp_d3d_sinf(float) __GPU_ONLY
void Concurrency::fast_math::sincos ( float  _X,
float *  _S,
float *  _C 
)
inline

Calculates sine and cosine value of _X

Parameters
_XFloating-point value
_SReturns the sine value of _X
_CReturns the cosine value of _X
1045  {
1046  *_C = __dp_d3d_sincosf(_X, _S);
1047  }
_In_ wchar_t _C
Definition: wchar.h:253
return _S
Definition: wchar.h:262
float __dp_d3d_sincosf(float, _Out_ float *) __GPU_ONLY
void Concurrency::fast_math::sincosf ( float  _X,
float *  _S,
float *  _C 
)
inline

Calculates sine and cosine value of _X

Parameters
_XFloating-point value
_SReturns the sine value of _X
_CReturns the cosine value of _X
1028  {
1029  *_C = __dp_d3d_sincosf(_X, _S);
1030  }
_In_ wchar_t _C
Definition: wchar.h:253
return _S
Definition: wchar.h:262
float __dp_d3d_sincosf(float, _Out_ float *) __GPU_ONLY
float Concurrency::fast_math::sinf ( float  _X)
inline

Calculates the sine value of the argument

Parameters
_XFloating-point value
Returns
Returns the sine value of the argument
997  {
998  return __dp_d3d_sinf(_X);
999  }
float __dp_d3d_sinf(float) __GPU_ONLY
float Concurrency::fast_math::sinh ( float  _X)
inline

Calculates the hyperbolic sine value of the argument

Parameters
_XFloating-point value
Returns
Returns the hyperbolic sine value of the argument
1073  {
1074  return __dp_d3d_sinhf(_X);
1075  }
float __dp_d3d_sinhf(float) __GPU_ONLY
float Concurrency::fast_math::sinhf ( float  _X)
inline

Calculates the hyperbolic sine value of the argument

Parameters
_XFloating-point value
Returns
Returns the hyperbolic sine value of the argument
1059  {
1060  return __dp_d3d_sinhf(_X);
1061  }
float __dp_d3d_sinhf(float) __GPU_ONLY
float Concurrency::fast_math::sqrt ( float  _X)
inline

Calculates the square root of the argument

Parameters
_XFloating-point value
Returns
Returns the square root of the argument
1101  {
1102  return __dp_d3d_sqrtf(_X);
1103  }
float __dp_d3d_sqrtf(float) __GPU_ONLY
float Concurrency::fast_math::sqrtf ( float  _X)
inline

Calculates the square root of the argument

Parameters
_XFloating-point value
Returns
Returns the square root of the argument
1087  {
1088  return __dp_d3d_sqrtf(_X);
1089  }
float __dp_d3d_sqrtf(float) __GPU_ONLY
float Concurrency::fast_math::tan ( float  _X)
inline

Calculates the tangent value of the argument

Parameters
_XFloating-point value
Returns
Returns the tangent value of the argument
1129  {
1130  return __dp_d3d_tanf(_X);
1131  }
float __dp_d3d_tanf(float) __GPU_ONLY
float Concurrency::fast_math::tanf ( float  _X)
inline

Calculates the tangent value of the argument

Parameters
_XFloating-point value
Returns
Returns the tangent value of the argument
1115  {
1116  return __dp_d3d_tanf(_X);
1117  }
float __dp_d3d_tanf(float) __GPU_ONLY
float Concurrency::fast_math::tanh ( float  _X)
inline

Calculates the hyperbolic tangent value of the argument

Parameters
_XFloating-point value
Returns
Returns the hyperbolic tangent value of the argument
1156  {
1157  return __dp_d3d_tanhf(_X);
1158  }
float __dp_d3d_tanhf(float) __GPU_ONLY
float Concurrency::fast_math::tanhf ( float  _X)
inline

Calculates the hyperbolic tangent value of the argument

Parameters
_XFloating-point value
Returns
Returns the hyperbolic tangent value of the argument
1143  {
1144  return __dp_d3d_tanhf(_X);
1145  }
float __dp_d3d_tanhf(float) __GPU_ONLY
float Concurrency::fast_math::trunc ( float  _X)
inline

Truncates the argument to the integer component

Parameters
_XFloating-point value
Returns
Returns the integer component of the argument
1184  {
1185  return __dp_d3d_truncf(_X);
1186  }
float __dp_d3d_truncf(float) __GPU_ONLY
float Concurrency::fast_math::truncf ( float  _X)
inline

Truncates the argument to the integer component

Parameters
_XFloating-point value
Returns
Returns the integer component of the argument
1170  {
1171  return __dp_d3d_truncf(_X);
1172  }
float __dp_d3d_truncf(float) __GPU_ONLY