[Bug target/54686] std::abs (long long) resorts to std::abs (double) if llabs is absent

glisse at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Oct 5 19:10:00 GMT 2012


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

--- Comment #42 from Marc Glisse <glisse at gcc dot gnu.org> 2012-10-05 19:10:27 UTC ---
Author: glisse
Date: Fri Oct  5 19:10:22 2012
New Revision: 192138

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=192138
Log:
2012-10-05  Marc Glisse  <marc.glisse@inria.fr>

    PR libstdc++/54686
    * include/c_global/cstdlib (abs(long long)): Define with
    __builtin_llabs when we have long long.
    (abs(long)): Use __builtin_labs.
    (abs(__int128)): Define when we have __int128.


Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/c_global/cstdlib



More information about the Gcc-bugs mailing list