GlobeEngine
half_float::detail::functions Struct Reference

Wrapper implementing unspecialized half-precision functions. More...

#include <Half.h>

Static Public Member Functions

static expr plus (float x, float y)
 
static expr minus (float x, float y)
 
static expr multiplies (float x, float y)
 
static expr divides (float x, float y)
 
template<typename charT , typename traits >
static std::basic_ostream< charT, traits > & write (std::basic_ostream< charT, traits > &out, float arg)
 
template<typename charT , typename traits >
static std::basic_istream< charT, traits > & read (std::basic_istream< charT, traits > &in, half &arg)
 
static expr fmod (float x, float y)
 
static expr remainder (float x, float y)
 
static expr remquo (float x, float y, int *quo)
 
static expr fdim (float x, float y)
 
static expr fma (float x, float y, float z)
 
static half nanh (const char *)
 
static expr exp (float arg)
 
static expr expm1 (float arg)
 
static expr exp2 (float arg)
 
static expr log (float arg)
 
static expr log10 (float arg)
 
static expr log1p (float arg)
 
static expr log2 (float arg)
 
static expr sqrt (float arg)
 
static expr cbrt (float arg)
 
static expr hypot (float x, float y)
 
static expr pow (float base, float exp)
 
static expr sin (float arg)
 
static expr cos (float arg)
 
static expr tan (float arg)
 
static expr asin (float arg)
 
static expr acos (float arg)
 
static expr atan (float arg)
 
static expr atan2 (float x, float y)
 
static expr sinh (float arg)
 
static expr cosh (float arg)
 
static expr tanh (float arg)
 
static expr asinh (float arg)
 
static expr acosh (float arg)
 
static expr atanh (float arg)
 
static expr erf (float arg)
 
static expr erfc (float arg)
 
static expr lgamma (float arg)
 
static expr tgamma (float arg)
 
static half floor (half arg)
 
static half ceil (half arg)
 
static half trunc (half arg)
 
static half round (half arg)
 
static long lround (half arg)
 
static half rint (half arg)
 
static long lrint (half arg)
 
static half frexp (half arg, int *exp)
 
static half modf (half arg, half *iptr)
 
static half scalbln (half arg, long exp)
 
static int ilogb (half arg)
 
static half logb (half arg)
 
static half nextafter (half from, half to)
 
static half nexttoward (half from, long double to)
 
static half copysign (half x, half y)
 
static int fpclassify (half arg)
 
static bool isfinite (half arg)
 
static bool isinf (half arg)
 
static bool isnan (half arg)
 
static bool isnormal (half arg)
 
static bool signbit (half arg)
 
static bool isequal (half x, half y)
 
static bool isnotequal (half x, half y)
 
static bool isgreater (half x, half y)
 
static bool isgreaterequal (half x, half y)
 
static bool isless (half x, half y)
 
static bool islessequal (half x, half y)
 
static bool islessgreater (half x, half y)
 
static bool isunordered (half x, half y)
 

Detailed Description

Wrapper implementing unspecialized half-precision functions.

Member Function Documentation

static expr half_float::detail::functions::acos ( float  arg)
inlinestatic

Arc cosine implementation.

Parameters
argfunction argument
Returns
function value stored in single-preicision
static expr half_float::detail::functions::acosh ( float  arg)
inlinestatic

Hyperbolic area cosine implementation.

Parameters
argfunction argument
Returns
function value stored in single-preicision
static expr half_float::detail::functions::asin ( float  arg)
inlinestatic

Arc sine implementation.

Parameters
argfunction argument
Returns
function value stored in single-preicision
static expr half_float::detail::functions::asinh ( float  arg)
inlinestatic

Hyperbolic area sine implementation.

Parameters
argfunction argument
Returns
function value stored in single-preicision
static expr half_float::detail::functions::atan ( float  arg)
inlinestatic

Arc tangent implementation.

Parameters
argfunction argument
Returns
function value stored in single-preicision
static expr half_float::detail::functions::atan2 ( float  x,
float  y 
)
inlinestatic

Arc tangent implementation.

Parameters
xfirst argument
ysecond argument
Returns
function value stored in single-preicision
static expr half_float::detail::functions::atanh ( float  arg)
inlinestatic

Hyperbolic area tangent implementation.

Parameters
argfunction argument
Returns
function value stored in single-preicision
static expr half_float::detail::functions::cbrt ( float  arg)
inlinestatic

Cubic root implementation.

Parameters
argfunction argument
Returns
function value stored in single-preicision
static half half_float::detail::functions::ceil ( half  arg)
inlinestatic

Ceiling implementation.

Parameters
argvalue to round
Returns
rounded value
static half half_float::detail::functions::copysign ( half  x,
half  y 
)
inlinestatic

Sign implementation

Parameters
xfirst operand
ysecond operand
Returns
composed value
static expr half_float::detail::functions::cos ( float  arg)
inlinestatic

Cosine implementation.

Parameters
argfunction argument
Returns
function value stored in single-preicision
static expr half_float::detail::functions::cosh ( float  arg)
inlinestatic

Hyperbolic cosine implementation.

Parameters
argfunction argument
Returns
function value stored in single-preicision
static expr half_float::detail::functions::divides ( float  x,
float  y 
)
inlinestatic

Division implementation.

Parameters
xfirst operand
ysecond operand
Returns
Half-precision quotient stored in single-precision
static expr half_float::detail::functions::erf ( float  arg)
inlinestatic

Error function implementation.

Parameters
argfunction argument
Returns
function value stored in single-preicision
static expr half_float::detail::functions::erfc ( float  arg)
inlinestatic

Complementary implementation.

Parameters
argfunction argument
Returns
function value stored in single-preicision
static expr half_float::detail::functions::exp ( float  arg)
inlinestatic

Exponential implementation.

Parameters
argfunction argument
Returns
function value stored in single-preicision
static expr half_float::detail::functions::exp2 ( float  arg)
inlinestatic

Binary exponential implementation.

Parameters
argfunction argument
Returns
function value stored in single-preicision
static expr half_float::detail::functions::expm1 ( float  arg)
inlinestatic

Exponential implementation.

Parameters
argfunction argument
Returns
function value stored in single-preicision
static expr half_float::detail::functions::fdim ( float  x,
float  y 
)
inlinestatic

Positive difference implementation.

Parameters
xfirst operand
ysecond operand
Returns
Positive difference stored in single-precision
static half half_float::detail::functions::floor ( half  arg)
inlinestatic

Floor implementation.

Parameters
argvalue to round
Returns
rounded value
static expr half_float::detail::functions::fma ( float  x,
float  y,
float  z 
)
inlinestatic

Fused multiply-add implementation.

Parameters
xfirst operand
ysecond operand
zthird operand
Returns
x * y + z stored in single-precision
static expr half_float::detail::functions::fmod ( float  x,
float  y 
)
inlinestatic

Modulo implementation.

Parameters
xfirst operand
ysecond operand
Returns
Half-precision division remainder stored in single-precision
static int half_float::detail::functions::fpclassify ( half  arg)
inlinestatic

Classification implementation.

Parameters
argvalue to classify
Return values
trueif infinite number
falseelse
static half half_float::detail::functions::frexp ( half  arg,
int exp 
)
inlinestatic

Decompression implementation.

Parameters
argnumber to decompress
expaddress to store exponent at
Returns
normalized significant
static expr half_float::detail::functions::hypot ( float  x,
float  y 
)
inlinestatic

Hypotenuse implementation.

Parameters
xfirst argument
ysecond argument
Returns
function value stored in single-preicision
static int half_float::detail::functions::ilogb ( half  arg)
inlinestatic

Exponent implementation.

Parameters
argnumber to query
Returns
floating point exponent
static bool half_float::detail::functions::isequal ( half  x,
half  y 
)
inlinestatic

Comparison implementation.

Parameters
xfirst operand
ysecond operand
Return values
trueif operands equal
falseelse
static bool half_float::detail::functions::isfinite ( half  arg)
inlinestatic

Classification implementation.

Parameters
argvalue to classify
Return values
trueif finite number
falseelse
static bool half_float::detail::functions::isgreater ( half  x,
half  y 
)
inlinestatic

Comparison implementation.

Parameters
xfirst operand
ysecond operand
Return values
trueif x > y
falseelse
static bool half_float::detail::functions::isgreaterequal ( half  x,
half  y 
)
inlinestatic

Comparison implementation.

Parameters
xfirst operand
ysecond operand
Return values
trueif x >= y
falseelse
static bool half_float::detail::functions::isinf ( half  arg)
inlinestatic

Classification implementation.

Parameters
argvalue to classify
Return values
trueif infinite number
falseelse
static bool half_float::detail::functions::isless ( half  x,
half  y 
)
inlinestatic

Comparison implementation.

Parameters
xfirst operand
ysecond operand
Return values
trueif x < y
falseelse
static bool half_float::detail::functions::islessequal ( half  x,
half  y 
)
inlinestatic

Comparison implementation.

Parameters
xfirst operand
ysecond operand
Return values
trueif x <= y
falseelse
static bool half_float::detail::functions::islessgreater ( half  x,
half  y 
)
inlinestatic

Comparison implementation.

Parameters
xfirst operand
ysecond operand
Return values
trueneither x > y nor x < y
falseelse
static bool half_float::detail::functions::isnan ( half  arg)
inlinestatic

Classification implementation.

Parameters
argvalue to classify
Return values
trueif not a number
falseelse
static bool half_float::detail::functions::isnormal ( half  arg)
inlinestatic

Classification implementation.

Parameters
argvalue to classify
Return values
trueif normal number
falseelse
static bool half_float::detail::functions::isnotequal ( half  x,
half  y 
)
inlinestatic

Comparison implementation.

Parameters
xfirst operand
ysecond operand
Return values
trueif operands not equal
falseelse
static bool half_float::detail::functions::isunordered ( half  x,
half  y 
)
inlinestatic

Comparison implementation.

Parameters
xfirst operand
ysecond operand
Return values
trueif operand unordered
falseelse
static expr half_float::detail::functions::lgamma ( float  arg)
inlinestatic

Gamma logarithm implementation.

Parameters
argfunction argument
Returns
function value stored in single-preicision
static expr half_float::detail::functions::log ( float  arg)
inlinestatic

Logarithm implementation.

Parameters
argfunction argument
Returns
function value stored in single-preicision
static expr half_float::detail::functions::log10 ( float  arg)
inlinestatic

Common logarithm implementation.

Parameters
argfunction argument
Returns
function value stored in single-preicision
static expr half_float::detail::functions::log1p ( float  arg)
inlinestatic

Logarithm implementation.

Parameters
argfunction argument
Returns
function value stored in single-preicision
static expr half_float::detail::functions::log2 ( float  arg)
inlinestatic

Binary logarithm implementation.

Parameters
argfunction argument
Returns
function value stored in single-preicision
static half half_float::detail::functions::logb ( half  arg)
inlinestatic

Exponent implementation.

Parameters
argnumber to query
Returns
floating point exponent
static long half_float::detail::functions::lrint ( half  arg)
inlinestatic

Nearest integer implementation.

Parameters
argvalue to round
Returns
rounded value
static long half_float::detail::functions::lround ( half  arg)
inlinestatic

Nearest integer implementation.

Parameters
argvalue to round
Returns
rounded value
static expr half_float::detail::functions::minus ( float  x,
float  y 
)
inlinestatic

Subtraction implementation.

Parameters
xfirst operand
ysecond operand
Returns
Half-precision difference stored in single-precision
static half half_float::detail::functions::modf ( half  arg,
half iptr 
)
inlinestatic

Decompression implementation.

Parameters
argnumber to decompress
iptraddress to store integer part at
Returns
fractional part
static expr half_float::detail::functions::multiplies ( float  x,
float  y 
)
inlinestatic

Multiplication implementation.

Parameters
xfirst operand
ysecond operand
Returns
Half-precision product stored in single-precision
static half half_float::detail::functions::nanh ( const char *  )
inlinestatic

Get NaN.

Returns
Half-precision quiet NaN
static half half_float::detail::functions::nextafter ( half  from,
half  to 
)
inlinestatic

Enumeration implementation.

Parameters
fromnumber to increase/decrease
todirection to enumerate into
Returns
next representable number
static half half_float::detail::functions::nexttoward ( half  from,
long double  to 
)
inlinestatic

Enumeration implementation.

Parameters
fromnumber to increase/decrease
todirection to enumerate into
Returns
next representable number
static expr half_float::detail::functions::plus ( float  x,
float  y 
)
inlinestatic

Addition implementation.

Parameters
xfirst operand
ysecond operand
Returns
Half-precision sum stored in single-precision
static expr half_float::detail::functions::pow ( float  base,
float  exp 
)
inlinestatic

Power implementation.

Parameters
basevalue to exponentiate
exppower to expontiate to
Returns
function value stored in single-preicision
template<typename charT , typename traits >
static std::basic_istream<charT,traits>& half_float::detail::functions::read ( std::basic_istream< charT, traits > &  in,
half arg 
)
inlinestatic

Input implementation.

Parameters
instream to read from
arghalf to read into
Returns
reference to stream
static expr half_float::detail::functions::remainder ( float  x,
float  y 
)
inlinestatic

Remainder implementation.

Parameters
xfirst operand
ysecond operand
Returns
Half-precision division remainder stored in single-precision
static expr half_float::detail::functions::remquo ( float  x,
float  y,
int quo 
)
inlinestatic

Remainder implementation.

Parameters
xfirst operand
ysecond operand
quoaddress to store quotient bits at
Returns
Half-precision division remainder stored in single-precision
static half half_float::detail::functions::rint ( half  arg)
inlinestatic

Nearest integer implementation.

Parameters
argvalue to round
Returns
rounded value
static half half_float::detail::functions::round ( half  arg)
inlinestatic

Nearest integer implementation.

Parameters
argvalue to round
Returns
rounded value
static half half_float::detail::functions::scalbln ( half  arg,
long  exp 
)
inlinestatic

Scaling implementation.

Parameters
argnumber to scale
exppower of two to scale by
Returns
scaled number
static bool half_float::detail::functions::signbit ( half  arg)
inlinestatic

Sign bit implementation.

Parameters
argvalue to check
Return values
trueif signed
falseif unsigned
static expr half_float::detail::functions::sin ( float  arg)
inlinestatic

Sine implementation.

Parameters
argfunction argument
Returns
function value stored in single-preicision
static expr half_float::detail::functions::sinh ( float  arg)
inlinestatic

Hyperbolic sine implementation.

Parameters
argfunction argument
Returns
function value stored in single-preicision
static expr half_float::detail::functions::sqrt ( float  arg)
inlinestatic

Square root implementation.

Parameters
argfunction argument
Returns
function value stored in single-preicision
static expr half_float::detail::functions::tan ( float  arg)
inlinestatic

Tan implementation.

Parameters
argfunction argument
Returns
function value stored in single-preicision
static expr half_float::detail::functions::tanh ( float  arg)
inlinestatic

Hyperbolic tangent implementation.

Parameters
argfunction argument
Returns
function value stored in single-preicision
static expr half_float::detail::functions::tgamma ( float  arg)
inlinestatic

Gamma implementation.

Parameters
argfunction argument
Returns
function value stored in single-preicision
static half half_float::detail::functions::trunc ( half  arg)
inlinestatic

Truncation implementation.

Parameters
argvalue to round
Returns
rounded value
template<typename charT , typename traits >
static std::basic_ostream<charT,traits>& half_float::detail::functions::write ( std::basic_ostream< charT, traits > &  out,
float  arg 
)
inlinestatic

Output implementation.

Parameters
outstream to write to
argvalue to write
Returns
reference to stream

The documentation for this struct was generated from the following file: