float: almost_equal takes unsigned ULPs
This commit is contained in:
parent
b704e66d3d
commit
794a688470
@ -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.
|
||||||
|
@ -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);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user