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 28 of file approx_math.h.

References approx_math::binary32::ui32, and geometryCSVtoXML::xx.

Referenced by unsafe_expf_impl().

28  {
29  int32_t ret = x;
30  binary32 xx(x);
31  ret-=(xx.ui32>>31);
32  return ret;
33  }