<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Sep 26, 2014 at 3:14 PM, Joerg Sonnenberger <span dir="ltr"><<a href="mailto:joerg@britannica.bec.de" target="_blank">joerg@britannica.bec.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Fri, Sep 26, 2014 at 01:52:19PM -0500, Bill Schmidt wrote:<br>
> At the least, we should constant-fold to NaN for the non fast-math sqrt<br>
> calls...there's no point in going through the libcall overhead when we<br>
> know the answer in advance. I can prepare a patch for that if everyone<br>
> agrees.<br>
<br>
</span>The crux is that sqrt(-1) can set errno, can't it?<br></blockquote><div><br></div><div>I'm pretty sure -ffast-math means you don't care about that. </div></div></div></div>