CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions
approx_math Namespace Reference

Classes

union  binary32
 

Functions

constexpr float fpfloor (float x)
 

Function Documentation

constexpr float approx_math::fpfloor ( float  x)

Definition at line 25 of file approx_math.h.

References runTheMatrix::ret, and approx_math::binary32::ui32.

Referenced by unsafe_expf_impl().

25  {
26  int32_t ret = x;
27  binary32 xx(x);
28  ret -= (xx.ui32 >> 31);
29  return ret;
30  }
tuple ret
prodAgent to be discontinued
uint16_t const *__restrict__ x
Definition: gpuClustering.h:39