Concurrency::fast_math namespace functions

Visual Studio 2015

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

acos 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

acosf Function (fast_math)

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

asin Function (fast_math)

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

asinf Function (fast_math)

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

atan Function (fast_math)

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

atan2 Function (fast_math)

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

atan2f Function (fast_math)

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

atanf Function (fast_math)

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

ceil Function (fast_math)

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

ceilf Function (fast_math)

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

cosf Function (fast_math)

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

coshf Function (fast_math)

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

cos Function (fast_math)

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

cosh Function (fast_math)

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

exp Function (fast_math)

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

exp2 Function (fast_math)

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

exp2f Function (fast_math)

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

expf Function (fast_math)

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

fabs Function (fast_math)

Returns the absolute value of the argument

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

```

`_X`
Integer value

Return Value

Returns the absolute value of the argument

fabsf Function (fast_math)

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

floor Function (fast_math)

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

floorf Function (fast_math)

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

fmax Function (fast_math)

Determine the maximum numeric value of the arguments

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

```

`_X`
Integer value

`_Y`
Integer value

Return Value

Return the maximum numeric value of the arguments

fmaxf Function (fast_math)

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

fmin Function (fast_math)

Determine the minimum numeric value of the arguments

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

```

`_X`
Integer value

`_Y`
Integer value

Return Value

Return the minimum numeric value of the arguments

fminf Function (fast_math)

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

fmod Function (fast_math)

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

fmodf Function (fast_math)

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

frexp Function (fast_math)

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

frexpf Function (fast_math)

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

isfinite Function (fast_math)

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

isinf Function (fast_math)

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

isnan Function (fast_math)

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

ldexp Function (fast_math)

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

ldexpf Function (fast_math)

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

log Function (fast_math)

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

log10 Function (fast_math)

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

log10f Function (fast_math)

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

log2 Function (fast_math)

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

log2f Function (fast_math)

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

logf Function (fast_math)

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

modf Function (fast_math)

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

modff Function (fast_math)

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

pow Function (fast_math)

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

powf Function (fast_math)

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

round Function (fast_math)

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

roundf Function (fast_math)

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

rsqrt Function (fast_math)

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

rsqrtf Function (fast_math)

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

signbit Function (fast_math)

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

signbitf Function (fast_math)

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

sin Function (fast_math)

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

sinf Function (fast_math)

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

sincos Function (fast_math)

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

sincosf Function (fast_math)

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

sinh Function (fast_math)

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

sinhf Function (fast_math)

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

sqrt Function (fast_math)

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

sqrtf Function (fast_math)

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

tan Function (fast_math)

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

tanf Function (fast_math)

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

tanh Function (fast_math)

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

tanhf Function (fast_math)

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

trunc Function (fast_math)

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

truncf Function (fast_math)

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