[Issue 5293] std.math: Error: shift by -48 is outside the range 0..32
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Nov 30 22:09:49 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5293
Iain Buclaw <ibuclaw at ubuntu.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ibuclaw at ubuntu.com
--- Comment #1 from Iain Buclaw <ibuclaw at ubuntu.com> 2010-11-30 22:08:20 PST ---
Actually, now I've woken up a bit, I *think* what it should be is:
@@ -1345,7 +1345,7 @@
// denormal
value *= F.RECIP_EPSILON;
ex = vu[F.EXPPOS_SHORT] & F.EXPMASK;
- exp = (ex - F.EXPBIAS)>>> 4 - real.mant_dig + 1;
+ exp = ((ex - F.EXPBIAS)>>> 4) - real.mant_dig + 1;
vu[F.EXPPOS_SHORT] =
cast(ushort)((0x8000 & vu[F.EXPPOS_SHORT]) | 0x3FE0);
}
Can someone confirm?
Regards
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list