Commit fbe7ae98 authored by Heiko Becker's avatar Heiko Becker

Allow 0 ranges

parent 0be38ed0
......@@ -54,8 +54,7 @@ object FinitePrecision {
// checks whether the range contains only denormal numbers in the given precision
def isDenormalOnlyRange(i: Interval, prec: Precision): Boolean = prec match {
case Float32 | Float64 =>
- prec.minNormal < i.xlo && i.xhi < prec.minNormal
- prec.minNormal < i.xlo && i.xhi < prec.minNormal && (! (i.xlo == 0 && i.xhi == 0))
case _ => false
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment