Concurrency::fast_math namespace functions

Visual Studio 2015
 

For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

acos Function (fast_math)acosf Function (fast_math)asin Function (fast_math)
asinf Function (fast_math)atan Function (fast_math)atan2 Function (fast_math)
atan2f Function (fast_math)atanf Function (fast_math)ceil Function (fast_math)
ceilf Function (fast_math)cos Function (fast_math)cosf Function (fast_math)
cosh Function (fast_math)coshf Function (fast_math)exp Function (fast_math)
exp2 Function (fast_math)exp2f Function (fast_math)expf Function (fast_math)
fabs Function (fast_math)fabsf Function (fast_math)floor Function (fast_math)
floorf Function (fast_math)fmax Function (fast_math)fmaxf Function (fast_math)
fmin Function (fast_math)fminf Function (fast_math)fmod Function (fast_math)
fmodf Function (fast_math)frexp Function (fast_math)frexpf Function (fast_math)
isfinite Function (fast_math)isinf Function (fast_math)isnan Function (fast_math)
ldexp Function (fast_math)ldexpf Function (fast_math)log Function (fast_math)
log10 Function (fast_math)log10f Function (fast_math)log2 Function (fast_math)
log2f Function (fast_math)logf Function (fast_math)modf Function (fast_math)
modff Function (fast_math)pow Function (fast_math)powf Function (fast_math)
round Function (fast_math)roundf Function (fast_math)rsqrt Function (fast_math)
rsqrtf Function (fast_math)signbit Function (fast_math)signbitf Function (fast_math)
sin Function (fast_math)sincos Function (fast_math)sincosf Function (fast_math)
sinf Function (fast_math)sinh Function (fast_math)sinhf Function (fast_math)
sqrt Function (fast_math)sqrtf Function (fast_math)tan Function (fast_math)
tanf Function (fast_math)tanh Function (fast_math)tanhf Function (fast_math)
trunc Function (fast_math)truncf Function (fast_math)

Calculates the arccosine of the argument

inline float acos(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns the arccosine value of the argument

Calculates the arccosine of the argument

inline float acosf(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns the arccosine value of the argument

Calculates the arcsine of the argument

inline float asin(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns the arcsine value of the argument

Calculates the arcsine of the argument

inline float asinf(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns the arcsine value of the argument

Calculates the arctangent of the argument

inline float atan(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns the arctangent value of the argument

Calculates the arctangent of _Y/_X

inline float atan2(
    float _Y,  
    float _X) restrict(amp);

Parameters

_Y
Floating-point value

_X
Floating-point value

Return Value

Returns the arctangent value of _Y/_X

Calculates the arctangent of _Y/_X

inline float atan2f(
    float _Y,  
    float _X) restrict(amp);

Parameters

_Y
Floating-point value

_X
Floating-point value

Return Value

Returns the arctangent value of _Y/_X

Calculates the arctangent of the argument

inline float atanf(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns the arctangent value of the argument

Calculates the ceiling of the argument

inline float ceil(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns the ceiling of the argument

Calculates the ceiling of the argument

inline float ceilf(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns the ceiling of the argument

Calculates the cosine of the argument

inline float cosf(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns the cosine value of the argument

Calculates the hyperbolic cosine value of the argument

inline float coshf(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns the hyperbolic cosine value of the argument

Calculates the cosine of the argument

inline float cos(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns the cosine value of the argument

Calculates the hyperbolic cosine value of the argument

inline float cosh(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns the hyperbolic cosine value of the argument

Calculates the base-e exponential of the argument

inline float exp(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns the base-e exponential of the argument

Calculates the base-2 exponential of the argument

inline float exp2(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns the base-2 exponential of the argument

Calculates the base-2 exponential of the argument

inline float exp2f(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns the base-2 exponential of the argument

Calculates the base-e exponential of the argument

inline float expf(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns the base-e exponential of the argument

Returns the absolute value of the argument

inline float fabs(float _X) restrict(amp);

Parameters

_X
Integer value

Return Value

Returns the absolute value of the argument

Returns the absolute value of the argument

inline float fabsf(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns the absolute value of the argument

Calculates the floor of the argument

inline float floor(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns the floor of the argument

Calculates the floor of the argument

inline float floorf(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns the floor of the argument

Determine the maximum numeric value of the arguments

inline float max(
    float _X,  
    float _Y) restrict(amp);

Parameters

_X
Integer value

_Y
Integer value

Return Value

Return the maximum numeric value of the arguments

Determine the maximum numeric value of the arguments

inline float fmaxf(
    float _X,  
    float _Y) restrict(amp);

Parameters

_X
Floating-point value

_Y
Floating-point value

Return Value

Return the maximum numeric value of the arguments

Determine the minimum numeric value of the arguments

inline float min(
    float _X,  
    float _Y) restrict(amp);

Parameters

_X
Integer value

_Y
Integer value

Return Value

Return the minimum numeric value of the arguments

Determine the minimum numeric value of the arguments

inline float fminf(
    float _X,  
    float _Y) restrict(amp);

Parameters

_X
Floating-point value

_Y
Floating-point value

Return Value

Return the minimum numeric value of the arguments

Calculates the floating-point remainder of _X/_Y

inline float fmod(
    float _X,  
    float _Y) restrict(amp);

Parameters

_X
Floating-point value

_Y
Floating-point value

Return Value

Returns the floating-point remainder of _X/_Y

Calculates the floating-point remainder of _X/_Y.

inline float fmodf(
    float _X,  
    float _Y) restrict(amp);

Parameters

_X
Floating-point value

_Y
Floating-point value

Return Value

Returns the floating-point remainder of _X/_Y

Gets the mantissa and exponent of _X

inline float frexp(
    float _X,  
    _Out_ int* _Exp) restrict(amp);

Parameters

_X
Floating-point value

_Exp
Returns the integer exponent of _X in floating-point value

Return Value

Returns the mantissa _X

Gets the mantissa and exponent of _X

inline float frexpf(
    float _X,  
    _Out_ int* _Exp) restrict(amp);

Parameters

_X
Floating-point value

_Exp
Returns the integer exponent of _X in floating-point value

Return Value

Returns the mantissa _X

Determines whether the argument has a finite value

inline int isfinite(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns a nonzero value if and only if the argument has a finite value

Determines whether the argument is an infinity

inline int isinf(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns a nonzero value if and only if the argument has an infinite value

Determines whether the argument is a NaN

inline int isnan(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns a nonzero value if and only if the argument has a NaN value

Computes a real number from the mantissa and exponent

inline float ldexp(
    float _X,  
    int _Exp) restrict(amp);

Parameters

_X
Floating-point value, mentissa

_Exp
Integer exponent

Return Value

Returns _X * 2^_Exp

Computes a real number from the mantissa and exponent

inline float ldexpf(
    float _X,  
    int _Exp) restrict(amp);

Parameters

_X
Floating-point value, mentissa

_Exp
Integer exponent

Return Value

Returns _X * 2^_Exp

Calculates the base-e logarithm of the argument

inline float log(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns the base-e logarithm of the argument

Calculates the base-10 logarithm of the argument

inline float log10(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns the base-10 logarithm of the argument

Calculates the base-10 logarithm of the argument

inline float log10f(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns the base-10 logarithm of the argument

Calculates the base-2 logarithm of the argument

inline float log2(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns the base-2 logarithm of the argument

Calculates the base-2 logarithm of the argument

inline float log2f(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns the base-10 logarithm of the argument

Calculates the base-e logarithm of the argument

inline float logf(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns the base-e logarithm of the argument

Splits _X into fractional and integer parts.

inline float modf(
    float _X,  
    float* _Ip) restrict(amp);

Parameters

_X
Floating-point value

_Ip

Return Value

Returns the signed fractional portion of _X

Splits _X into fractional and integer parts.

inline float modff(
    float _X,  
    float* _Ip) restrict(amp);

Parameters

_X
Floating-point value

_Ip

Return Value

Returns the signed fractional portion of _X

Calculates _X raised to the power of _Y

inline float pow(
    float _X,  
    float _Y) restrict(amp);

Parameters

_X
Floating-point value, base

_Y
Floating-point value, exponent

Return Value

Returns the value of _X raised to the power of _Y

Calculates _X raised to the power of _Y

inline float powf(
    float _X,  
    float _Y) restrict(amp);

Parameters

_X
Floating-point value, base

_Y
Floating-point value, exponent

Return Value

Rounds _X to the nearest integer

inline float round(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns the nearest integer of _X

Rounds _X to the nearest integer

inline float roundf(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns the nearest integer of _X

Returns the reciprocal of the square root of the argument

inline float rsqrt(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns the reciprocal of the square root of the argument

Returns the reciprocal of the square root of the argument

inline float rsqrtf(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns the reciprocal of the square root of the argument

Determines whether the sign of _X is negative

inline int signbit(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns a nonzero value if and only if the sign of _X is negative

Determines whether the sign of _X is negative

inline int signbitf(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns a nonzero value if and only if the sign of _X is negative

Calculates the sine value of the argument

inline float sin(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns the sine value of the argument

Calculates the sine value of the argument

inline float sinf(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns the sine value of the argument

Calculates sine and cosine value of _X

inline void sincos(
    float _X,  
    float* _S,  
    float* _C) restrict(amp);

Parameters

_X
Floating-point value

_S
Returns the sine value of _X

_C
Returns the cosine value of _X

Calculates sine and cosine value of _X

inline void sincosf(
    float _X,  
    float* _S,  
    float* _C) restrict(amp);

Parameters

_X
Floating-point value

_S
Returns the sine value of _X

_C
Returns the cosine value of _X

Calculates the hyperbolic sine value of the argument

inline float sinh(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns the hyperbolic sine value of the argument

Calculates the hyperbolic sine value of the argument

inline float sinhf(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns the hyperbolic sine value of the argument

Calculates the squre root of the argument

inline float sqrt(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns the squre root of the argument

Calculates the squre root of the argument

inline float sqrtf(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns the squre root of the argument

Calculates the tangent value of the argument

inline float tan(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns the tangent value of the argument

Calculates the tangent value of the argument

inline float tanf(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns the tangent value of the argument

Calculates the hyperbolic tangent value of the argument

inline float tanh(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns the hyperbolic tangent value of the argument

Calculates the hyperbolic tangent value of the argument

inline float tanhf(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns the hyperbolic tangent value of the argument

Truncates the argument to the integer component

inline float trunc(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns the integer component of the argument

Truncates the argument to the integer component

inline float truncf(float _X) restrict(amp);

Parameters

_X
Floating-point value

Return Value

Returns the integer component of the argument

Concurrency::fast_math Namespace

Show: