ulp.c File Reference

#include "common.h"
#include <float.h>
Include dependency graph for ulp.c:

Go to the source code of this file.

Functions

double bn_epsilon ()
float bn_epsilonf ()
double bn_dbl_min ()
double bn_dbl_max ()
double bn_flt_min ()
double bn_flt_max ()
double bn_ulp (double val)

Detailed Description

Routines useful for performing comparisons and dynamically calculating floating point limits including the Unit in the Last Place (ULP).

In this context, ULP is the distance to the next normalized floating point value larger that a given input value.

TODO: handle NaN, +-Inf, underflow, overflow, non-IEEE, float.h

This file is completely in flux, incomplete, limited, and subject to drastic changes. Do NOT use it for anything.

It also assumes an IEEE 754 compliant floating point representation.

Definition in file ulp.c.


Function Documentation

double bn_epsilon (  ) 

Definition at line 44 of file ulp.c.

float bn_epsilonf (  ) 

Definition at line 63 of file ulp.c.

double bn_dbl_min (  ) 

Definition at line 82 of file ulp.c.

double bn_dbl_max (  ) 

Definition at line 90 of file ulp.c.

double bn_flt_min (  ) 

Definition at line 99 of file ulp.c.

double bn_flt_max (  ) 

Definition at line 107 of file ulp.c.

double bn_ulp ( double  val  ) 

Definition at line 116 of file ulp.c.

Generated on Tue Dec 11 13:14:28 2012 for LIBBN by  doxygen 1.6.3