[Bug libstdc++/96733] std::clamp for floats and doubles produces worse code than a combo of std::min / std::max

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Aug 24 19:17:16 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96733

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|middle-end                  |libstdc++

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Yes, it looks like we might want to do that then. We can have different code
for different types if needed.

Reassigning to libstdc++.


More information about the Gcc-bugs mailing list