CMS 3D CMS Logo

Classes | Functions

approx_math Namespace Reference

Classes

union  binary32

Functions

float fpfloor (float x)

Function Documentation

float approx_math::fpfloor ( float  x) [inline]

Definition at line 61 of file approx_exp.h.

References run_regression::ret, approx_math::binary32::ui32, and x.

Referenced by unsafe_expf_impl().

                                {
    int32_t ret = x;
    binary32 xx(x);
    ret-=(xx.ui32>>31);  
    return ret;
  }