ref: 408acb5431ff66619be76109f0a83f7f06df5d69
parent: 5de1231c0605526b22779dd827cc96461de40f77
author: S. Gilles <sgilles@math.umd.edu>
date: Thu Mar 22 08:39:41 EDT 2018
Even more subnormal detection in flt32fromflt64.
--- a/lib/math/fma-impl.myr
+++ b/lib/math/fma-impl.myr
@@ -144,7 +144,9 @@
te++
;;
;;
- -> std.flt32assem(n, te, ts)
+ if te >= -126
+ -> std.flt32assem(n, te, ts)
+ ;;
;;
/* subnormal already, will have to go to 0 */
--- a/lib/math/test/fma-impl.myr
+++ b/lib/math/test/fma-impl.myr
@@ -44,6 +44,7 @@
(0x0d580b86, 0x435768a8, 0x966c8d6f, 0x966c5ffd),
(0xa19e9a6f, 0xb49af3e3, 0xa2468b59, 0xa2468b57),
(0xd119e996, 0x8e5ad0e3, 0x247e0028, 0x247e83b7),
+ (0x381adbc6, 0x00ee4f61, 0x005f2aeb, 0x005f2d2c),
][:]
for (x, y, z, r) : inputs