------- Comment #6 from burnus at gcc dot gnu dot org  2007-11-22 18:41 -------
Created an attachment (id=14609)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14609&action=view)
Patch (reverted Rev 117584) plus test case

Initial implementation by reverting Rev. 117584 as suggested by Steve.

Problems:
- nearest(x,-1) for negative denormal x does not give a smaller number
- returned values are not the smallest possible:
  4.9406564584124654E-324 vs. 1.11253692925360069E-308
  1.4012985E-45 vs. 5.87747175E-39
- NaN, INF, -INF test cases missing.

Probably makes sense to check this in first and worry about the rest later.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34192

Reply via email to