[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] when reading a float with ieee754f, always return quiet NaN
[Thread Prev] | [Thread Next]
[Date Prev] | [Date Next]
- Subject: [PATCH] when reading a float with ieee754f, always return quiet NaN
- From: okovko <okovko@xxxxxxxxx>
- Date: Sun, 15 Jul 2018 12:59:04 -0700
- To: faqe-devel@xxxxxxxxxx
--- ieee754.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/ieee754.c b/ieee754.c index 7995bd8..aa1fb74 100644 --- a/ieee754.c +++ b/ieee754.c @@ -22,8 +22,6 @@ float ieee754f(unsigned long b) if (exp == 0xff) { if (n) { - /* TODO: work out what a negative NaN means */ - assert(!isneg); return NAN; } else { return isneg ? -INFINITY : INFINITY; -- 2.15.1 (Apple Git-101)
Re: [PATCH] when reading a float with ieee754f, always return quiet NaN | Tomasz Kramkowski <tk@xxxxxxxxxx> |