Library for performing comparisons and dynamically calculating floating point limits including the Unit in the Last Place (ULP).
More...
Library for performing comparisons and dynamically calculating floating point limits including the Unit in the Last Place (ULP).
◆ bn_dbl_epsilon()
◆ bn_flt_epsilon()
◆ bn_dbl_min()
◆ bn_dbl_max()
◆ bn_flt_min()
◆ bn_flt_max()
◆ bn_flt_min_sqrt()
◆ bn_flt_max_sqrt()
◆ bn_dbl_min_sqrt()
◆ bn_dbl_max_sqrt()
◆ bn_nextafter_up()
◆ bn_nextafter_dn()
◆ bn_nextafterf_up()
◆ bn_nextafterf_dn()
◆ bn_ulp()
Calculate unit in the last place (ULP) for a given value.
If provided value is positive, it's the positive distance to the next double. If provided value is negative, it's the negative distance to the next negative double.
- Parameters
-
val | the input double value. |
- Returns
- distance to the next representable double precision value
◆ bn_ulpf()
same as bn_ulp() but for single precision floating point.