Functions that implement math functions.
Take care that some of the implementations will return results with less precision than what the FPU calculates.
|
|
float_v | sqrt (const float_v &v) |
| | Returns the square root of v.
|
| |
|
float_v | rsqrt (const float_v &v) |
| | Returns the reciprocal square root of v.
|
| |
|
float_v | reciprocal (const float_v &v) |
| | Returns the reciprocal of v.
|
| |
|
float_v | abs (const float_v &v) |
| | Returns the absolute value of v.
|
| |
|
float_v | round (const float_v &v) |
| | Returns the closest integer to v; 0.5 is rounded to even.
|
| |
| float_v | log (const float_v &v) |
| | Returns the natural logarithm of v. More...
|
| |
| float_v | log2 (const float_v &v) |
| | Returns the base-2 logarithm of v. More...
|
| |
| float_v | log10 (const float_v &v) |
| | Returns the base-10 logarithm of v. More...
|
| |
|
float_v | exp (const float_v &v) |
| | Returns the exponential of v.
|
| |
| float_v | sin (const float_v &v) |
| | Returns the sine of v. More...
|
| |
| float_v | cos (const float_v &v) |
| | Returns the cosine of v. More...
|
| |
| void | sincos (const float_v &v, float_v *sin, float_v *cos) |
| | Calculates the sine and cosine of v. More...
|
| |
| float_v | asin (const float_v &v) |
| | Returns the arcsine of v. More...
|
| |
| float_v | atan (const float_v &v) |
| | Returns the arctangent of v. More...
|
| |
|
float_v | atan2 (const float_v &x, const float_v &y) |
| | Returns the arctangent of x / y.
|
| |
|
float_v | min (const float_v &x, const float_v &y) |
| | Returns the minimum of x and y.
|
| |
|
float_v | max (const float_v &x, const float_v &y) |
| | Returns the maximum of x and y.
|
| |
| float_v | frexp (const float_v &x, int_v *e) |
| | Convert floating-point number to fractional and integral components. More...
|
| |
| float_v | ldexp (float_v x, int_v e) |
| | Multiply floating-point number by integral power of 2. More...
|
| |
|
float_m | isfinite (const float_v &x) |
| | Returns a mask that tells whether the values in the vector are finite (i.e. not NaN or +/-inf).
|
| |
|
float_m | isnan (const float_v &x) |
| | Returns a mask that tells whether the values in the vector are NaN.
|
| |
|
double_v | sqrt (const double_v &v) |
| | Returns the square root of v.
|
| |
|
double_v | rsqrt (const double_v &v) |
| | Returns the reciprocal square root of v.
|
| |
|
double_v | reciprocal (const double_v &v) |
| | Returns the reciprocal of v.
|
| |
|
double_v | abs (const double_v &v) |
| | Returns the absolute value of v.
|
| |
|
double_v | round (const double_v &v) |
| | Returns the closest integer to v; 0.5 is rounded to even.
|
| |
| double_v | log (const double_v &v) |
| | Returns the natural logarithm of v. More...
|
| |
| double_v | log2 (const double_v &v) |
| | Returns the base-2 logarithm of v. More...
|
| |
| double_v | log10 (const double_v &v) |
| | Returns the base-10 logarithm of v. More...
|
| |
|
double_v | exp (const double_v &v) |
| | Returns the exponential of v.
|
| |
| double_v | sin (const double_v &v) |
| | Returns the sine of v. More...
|
| |
| double_v | cos (const double_v &v) |
| | Returns the cosine of v. More...
|
| |
| void | sincos (const double_v &v, double_v *sin, double_v *cos) |
| | Calculates the sine and cosine of v. More...
|
| |
| double_v | asin (const double_v &v) |
| | Returns the arcsine of v. More...
|
| |
| double_v | atan (const double_v &v) |
| | Returns the arctangent of v. More...
|
| |
|
double_v | atan2 (const double_v &x, const double_v &y) |
| | Returns the arctangent of x / y.
|
| |
|
double_v | min (const double_v &x, const double_v &y) |
| | Returns the minimum of x and y.
|
| |
|
double_v | max (const double_v &x, const double_v &y) |
| | Returns the maximum of x and y.
|
| |
| double_v | frexp (const double_v &x, int_v *e) |
| | Convert floating-point number to fractional and integral components. More...
|
| |
| double_v | ldexp (double_v x, int_v e) |
| | Multiply floating-point number by integral power of 2. More...
|
| |
|
double_m | isfinite (const double_v &x) |
| | Returns a mask that tells whether the values in the vector are finite (i.e. not NaN or +/-inf).
|
| |
|
double_m | isnan (const double_v &x) |
| | Returns a mask that tells whether the values in the vector are NaN.
|
| |
|
sfloat_v | sqrt (const sfloat_v &v) |
| | Returns the square root of v.
|
| |
|
sfloat_v | rsqrt (const sfloat_v &v) |
| | Returns the reciprocal square root of v.
|
| |
|
sfloat_v | reciprocal (const sfloat_v &v) |
| | Returns the reciprocal of v.
|
| |
|
sfloat_v | abs (const sfloat_v &v) |
| | Returns the absolute value of v.
|
| |
|
sfloat_v | round (const sfloat_v &v) |
| | Returns the closest integer to v; 0.5 is rounded to even.
|
| |
| sfloat_v | log (const sfloat_v &v) |
| | Returns the natural logarithm of v. More...
|
| |
| sfloat_v | log2 (const sfloat_v &v) |
| | Returns the base-2 logarithm of v. More...
|
| |
| sfloat_v | log10 (const sfloat_v &v) |
| | Returns the base-10 logarithm of v. More...
|
| |
|
sfloat_v | exp (const sfloat_v &v) |
| | Returns the exponential of v.
|
| |
| sfloat_v | sin (const sfloat_v &v) |
| | Returns the sine of v. More...
|
| |
| sfloat_v | cos (const sfloat_v &v) |
| | Returns the cosine of v. More...
|
| |
| void | sincos (const sfloat_v &v, sfloat_v *sin, sfloat_v *cos) |
| | Calculates the sine and cosine of v. More...
|
| |
| sfloat_v | asin (const sfloat_v &v) |
| | Returns the arcsine of v. More...
|
| |
| sfloat_v | atan (const sfloat_v &v) |
| | Returns the arctangent of v. More...
|
| |
|
sfloat_v | atan2 (const sfloat_v &x, const sfloat_v &y) |
| | Returns the arctangent of x / y.
|
| |
|
sfloat_v | min (const sfloat_v &x, const sfloat_v &y) |
| | Returns the minimum of x and y.
|
| |
|
sfloat_v | max (const sfloat_v &x, const sfloat_v &y) |
| | Returns the maximum of x and y.
|
| |
| sfloat_v | frexp (const sfloat_v &x, short_v *e) |
| | Convert floating-point number to fractional and integral components. More...
|
| |
| sfloat_v | ldexp (sfloat_v x, short_v e) |
| | Multiply floating-point number by integral power of 2. More...
|
| |
|
sfloat_m | isfinite (const sfloat_v &x) |
| | Returns a mask that tells whether the values in the vector are finite (i.e. not NaN or +/-inf).
|
| |
|
sfloat_m | isnan (const sfloat_v &x) |
| | Returns a mask that tells whether the values in the vector are NaN.
|
| |