When a denormal underflows to zero, raise an underflow exception.

Thanks to marcel for helping me test this.
This commit is contained in:
das 2004-05-06 09:36:11 +00:00
parent c73ba67e32
commit 3edaa65c3a

View File

@ -312,6 +312,9 @@ makefloat(int sign, int exp, u_int64_t frac,
break;
}
if (frac == 0)
*status |= FPCR_UNF;
/*
* Rounding up may take us to TWO if
* fraclo == (TWO - epsilon). Also If fraclo has been