float: almost_equal takes unsigned ULPs

This commit is contained in:
Danny Robson 2015-01-29 15:44:30 +11:00
parent b704e66d3d
commit 794a688470
2 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ template <unsigned int E, unsigned int S>
bool bool
ieee_float<E, S>::almost_equal (floating_t _a, ieee_float<E, S>::almost_equal (floating_t _a,
floating_t _b, floating_t _b,
uint_t ulps) unsigned ulps)
{ {
// Ensure ULPs is small enough that the default NaNs won't compare as // Ensure ULPs is small enough that the default NaNs won't compare as
// equal to anything else. // equal to anything else.

View File

@ -51,7 +51,7 @@ class ieee_float {
bool operator== (floating_t) const; bool operator== (floating_t) const;
static bool almost_equal (floating_t, floating_t); static bool almost_equal (floating_t, floating_t);
static bool almost_equal (floating_t, floating_t, uint_t ulps); static bool almost_equal (floating_t, floating_t, unsigned ulps);
}; };