tts v2.3.0
The Tiny Test System
 
Loading...
Searching...
No Matches

◆ ulp_distance()

template<typename T , typename U >
double tts::ulp_distance ( T const &  a,
U const &  b 
)
inline

Compute the distance in ULP between two values.

This function can be overloaded in the tts namespace to compute the distance in ULP for external types.

Parameters
aValue to compare
bValue to compare
Returns
The distance in ULP between a and b