Concurrency::fast_math namespace functions

acos

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

fabsf

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

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

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

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

fmaxf

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

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

fminf

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Splits _X into fractional and integer parts.

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

Parameters

_X
Floating-point value

_Ip
Receives integer part of the value

Return Value

Returns the signed fractional portion of _X

modff

Splits _X into fractional and integer parts.

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

Parameters

_X
Floating-point value

_Ip
Receives integer part of the value

Return Value

Returns the signed fractional portion of _X

pow

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

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

round

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Requirements

Header: amp_math.h Namespace: Concurrency::fast_math

See also

Concurrency::fast_math Namespace