다음을 통해 공유


Concurrency::fast_math Namespace

 

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

Functions in the fast_math namespace have lower accuracy, support only single-precision (float), and call the DirectX intrinsics. There are two versions of each function, for example cos and cosf. Both versions take and return a float, but each calls the same DirectX intrinsic.

Syntax

namespace fast_math;  

Members

Functions

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

Requirements

Header: amp_math.h

Namespace: Concurrency::fast_math

See Also

Concurrency Namespace (C++ AMP)