public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
From: "grugh at centrum dot cz" <sourceware-bugzilla@sourceware.org> To: glibc-bugs@sourceware.org Subject: [Bug math/5781] Slow dbl-64 sin/cos/sincos for special values Date: Fri, 14 Feb 2014 09:51:00 -0000 [thread overview] Message-ID: <bug-5781-131-xVWXY2IBoK@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-5781-131@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=5781 --- Comment #16 from Petr Cervenka <grugh at centrum dot cz> --- Simple workaround to use fast computation is to use functions from spec. header similar to following: #ifndef FAST_MATH_H #define FAST_MATH_H #include <cmath> inline double fast_sin(long double x) { return sinl(x); } inline double fast_cos(long double x) { return cosl(x); } inline double fast_tan(long double x) { return tanl(x); } inline double fast_asin(long double x) { return asinl(x); } inline double fast_acos(long double x) { return acosl(x); } inline double fast_atan(long double x) { return atanl(x); } inline double fast_atan2(long double x, long double y) { return atan2l(x, y); } inline double fast_sinh(long double x) { return sinhl(x); } inline double fast_cosh(long double x) { return coshl(x); } inline double fast_asinh(long double x) { return asinhl(x); } inline double fast_acosh(long double x) { return acoshl(x); } inline double fast_pow(long double x, long double y) { return powl(x, y); } inline double fast_sqrt(long double x) { return sqrtl(x); } inline double fast_exp(long double x) { return expl(x); } inline double fast_log(long double x) { return logl(x); } inline double fast_log10(long double x) { return log10l(x); } #endif /* FAST_MATH_H */ -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2014-02-14 9:51 UTC|newest] Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-5781-131@http.sourceware.org/bugzilla/> 2012-02-29 20:20 ` [Bug math/5781] Slow sine function for special values on AMD64 - second attempt jsm28 at gcc dot gnu.org 2013-04-01 12:54 ` siddhesh at redhat dot com 2013-04-10 4:25 ` siddhesh at redhat dot com 2013-12-03 18:40 ` jsm28 at gcc dot gnu.org 2014-02-05 21:07 ` john.wilkinson at spirent dot com 2014-02-06 7:40 ` john.wilkinson at spirent dot com 2014-02-06 15:48 ` carlos at redhat dot com 2014-02-06 18:27 ` [Bug math/5781] Slow sine function for special values jsm28 at gcc dot gnu.org 2014-02-06 18:29 ` [Bug math/5781] Slow dbl-64 sin/cos/sincos " jsm28 at gcc dot gnu.org 2014-02-06 18:31 ` jsm28 at gcc dot gnu.org 2014-02-07 8:22 ` john.wilkinson at spirent dot com 2014-02-07 14:57 ` carlos at redhat dot com 2014-02-14 9:51 ` grugh at centrum dot cz [this message] 2014-06-17 18:55 ` fweimer at redhat dot com 2015-04-16 11:37 ` vincent-srcware at vinc17 dot net 2015-04-24 20:36 ` joseph at codesourcery dot com 2021-03-11 14:44 ` wdijkstr at arm dot com 2021-03-11 21:12 ` joseph at codesourcery dot com 2021-03-12 4:54 ` siddhesh at sourceware dot org 2021-03-15 3:00 ` siddhesh at sourceware dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-5781-131-xVWXY2IBoK@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=glibc-bugs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).