This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/79973] atanh() constant-folds differently than it would evaluate at runtime


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

--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> ---
gcc computes the exact, correctly-rounded value, while at runtime you are using
code from some library (probably glibc) that trades off some precision for
speed. What would you like to happen? That gcc stops constant folding atanh?
You can do that with -fno-builtin-atanh. Or that glibc computes the correctly
rounded value? There are libraries out there that do that, but they are usually
quite a bit slower...

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]