[Llvm-bgq-discuss] rint() with -ffast-math

Erik Schnetter schnetter at cct.lsu.edu
Wed Jun 19 09:30:31 CDT 2013


The function rint() is supposed to round to the nearest integer, breaking
ties to even. With -ffast-math, it breaks ties away from zero. That is, in
corner cases the result is incorrectly rounded.

Is this intended? This (BGQ with Clang) is the first system that does so.
(I understand why one would do this given the machine instructions
available.)

-erik


-- 
Erik Schnetter <schnetter at cct.lsu.edu>
http://www.perimeterinstitute.ca/personal/eschnetter/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alcf.anl.gov/pipermail/llvm-bgq-discuss/attachments/20130619/1d475ad7/attachment-0001.html>


More information about the llvm-bgq-discuss mailing list