<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Mar 27, 2017 at 5:11 PM, Sean McBride <span dir="ltr"><<a href="mailto:sean@rogue-research.com" target="_blank">sean@rogue-research.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On Thu, 23 Mar 2017 14:07:03 +0000, Hahn, Steven E. said:<br>
<br>
>With std::isinf<int> clang generates code that is 3-4 times slower than<br>
>one would naively expect for a type that doesn’t contain infinity.<br>
<br>
</span>Is there a bug for that?  A quick search didn't reveal anything:<br></blockquote><div><br></div><div>This is the same underlying issue as:</div><div><a href="https://bugs.llvm.org//show_bug.cgi?id=18218">https://bugs.llvm.org//show_bug.cgi?id=18218</a><br></div><div><br></div><div>libc++ interpreted the standard in a way that doesn't make sense, such that any isinf and isnan arguments are cast to double (this makes no sense because the Inf bit pattern is a perfectly valid integer much smaller than the typemax).</div><div><br></div><div>Whereas libstdc++ only defines std::isinf for float/double/long double, and all other types are a constexpr false.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
<<a href="https://bugs.llvm.org//buglist.cgi?quicksearch=isinf" rel="noreferrer" target="_blank">https://bugs.llvm.org//<wbr>buglist.cgi?quicksearch=isinf</a>><br>
<br>
Cheers,<br>
<span class="gmail-HOEnZb"><font color="#888888"><br>
--<br>
______________________________<wbr>______________________________<br>
Sean McBride, B. Eng                 <a href="mailto:sean@rogue-research.com">sean@rogue-research.com</a><br>
Rogue Research                        <a href="http://www.rogue-research.com" rel="noreferrer" target="_blank">www.rogue-research.com</a><br>
Mac Software Developer              Montréal, Québec, Canada<br>
</font></span><div class="gmail-HOEnZb"><div class="gmail-h5">______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtk-<wbr>developers</a><br>
<br>
</div></div></blockquote></div><br></div></div>