CMS 3D CMS Logo

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, approx_math::binary32::ui32, and geometryCSVtoXML::xx.

Referenced by unsafe_expf_impl().

25  {
26  int32_t ret = x;
27  binary32 xx(x);
28  ret -= (xx.ui32 >> 31);
29  return ret;
30  }
ret
prodAgent to be discontinued