nulib.math.intrinsics

Bindings to compiler-specific intrinsics wrapped in a nicer interface.

Members

Functions

abs
T abs(T value)

Computes the absolute value for the given value.

acos
T acos(T x)

Computes arc-cosine of the given value.

acosh
T acosh(T x)

Computes hyperbolic arc-cosine of the given value.

asin
T asin(T x)

Computes arc-sine of the given value.

asinh
T asinh(T x)

Computes hyperbolic arc-sine of the given value.

atan
T atan(T x)

Computes arc-tangent of the given value.

atan2
T atan2(T y, T x)

Computes arc-tangent of the given value, using signs to determine quadrant.

atanh
T atanh(T x)

Computes hyperbolic arc-tangent of the given value.

ceil
T ceil(T value)

Computes the nearest integer value lower than the given value.

cos
T cos(T x)

Computes cosine of the given value.

cosh
T cosh(T x)

Computes hyperbolic cosine of the given value.

floor
T floor(T value)

Computes the nearest integer value lower than the given value.

ldexp
T ldexp(T n, int exp)

Computes n * 2exp.

rint
T rint(T x)

Rounds the given value to the nearest integer, using the current rounding mode.

round
T round(T value)

Computes the nearest integer value, rounded away from 0.

sin
T sin(T x)

Computes sine of the given value.

sinh
T sinh(T x)

Computes hyperbolic sine of the given value.

sqrt
T sqrt(T x)

Computes the square root of the given value.

tan
T tan(T x)

Computes tangent of the given value.

tanh
T tanh(T x)

Computes hyperbolic tangent of the given value.

trunc
T trunc(T x)

Computes the nearest integer value lower in magnitude than the given value.

Meta

Authors

Luna Nielsen