public inbox for glibc-cvs@sourceware.org help / color / mirror / Atom feed
From: Sunil Pandey <skpgkp2@sourceware.org> To: glibc-cvs@sourceware.org Subject: [glibc/users/skpgkp2/2.33/master] Update math: redirect roundeven function Date: Wed, 28 Sep 2022 19:11:36 +0000 (GMT) [thread overview] Message-ID: <20220928191136.EBEBD3857C42@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=a2f4d73dc888f890e428e5a735c02397e3779f1a commit a2f4d73dc888f890e428e5a735c02397e3779f1a Author: H.J. Lu <hjl.tools@gmail.com> Date: Wed Jun 23 13:29:41 2021 -0700 Update math: redirect roundeven function Redirect target specific roundeven functions for aarch64, ldbl-128ibm and riscv. (cherry picked from commit 3213ed770cbc5821920d16caa93c85e92dd7b9f6) Diff: --- sysdeps/aarch64/fpu/s_roundeven.c | 2 +- sysdeps/aarch64/fpu/s_roundevenf.c | 1 + sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c | 1 + sysdeps/riscv/rv64/rvd/s_roundeven.c | 2 +- sysdeps/riscv/rvf/s_roundevenf.c | 1 + 5 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sysdeps/aarch64/fpu/s_roundeven.c b/sysdeps/aarch64/fpu/s_roundeven.c index d74b40daf5..fbce9aaded 100644 --- a/sysdeps/aarch64/fpu/s_roundeven.c +++ b/sysdeps/aarch64/fpu/s_roundeven.c @@ -16,6 +16,7 @@ License along with the GNU C Library; if not, see <https://www.gnu.org/licenses/>. */ +#define NO_MATH_REDIRECT #include <math.h> #include <libm-alias-double.h> @@ -25,5 +26,4 @@ __roundeven (double x) asm volatile ("frintn \t%d0, %d1" : "=w" (x) : "w" (x)); return x; } -hidden_def (__roundeven) libm_alias_double (__roundeven, roundeven) diff --git a/sysdeps/aarch64/fpu/s_roundevenf.c b/sysdeps/aarch64/fpu/s_roundevenf.c index dfc492c2f8..7985ca5f30 100644 --- a/sysdeps/aarch64/fpu/s_roundevenf.c +++ b/sysdeps/aarch64/fpu/s_roundevenf.c @@ -16,6 +16,7 @@ License along with the GNU C Library; if not, see <https://www.gnu.org/licenses/>. */ +#define NO_MATH_REDIRECT #include <math.h> #include <libm-alias-float.h> diff --git a/sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c b/sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c index 6701970f4a..90eecf496b 100644 --- a/sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c +++ b/sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c @@ -17,6 +17,7 @@ License along with the GNU C Library; if not, see <https://www.gnu.org/licenses/>. */ +#define NO_MATH_REDIRECT #include <math.h> #include <math_private.h> diff --git a/sysdeps/riscv/rv64/rvd/s_roundeven.c b/sysdeps/riscv/rv64/rvd/s_roundeven.c index e77d8307d1..02dd0f7a9a 100644 --- a/sysdeps/riscv/rv64/rvd/s_roundeven.c +++ b/sysdeps/riscv/rv64/rvd/s_roundeven.c @@ -16,6 +16,7 @@ License along with the GNU C Library; if not, see <https://www.gnu.org/licenses/>. */ +#define NO_MATH_REDIRECT #include <math.h> #include <fenv_private.h> #include <libm-alias-double.h> @@ -49,5 +50,4 @@ __roundeven (double x) return x; } -hidden_def (__roundeven) libm_alias_double (__roundeven, roundeven) diff --git a/sysdeps/riscv/rvf/s_roundevenf.c b/sysdeps/riscv/rvf/s_roundevenf.c index fa594d46bd..be22d047e2 100644 --- a/sysdeps/riscv/rvf/s_roundevenf.c +++ b/sysdeps/riscv/rvf/s_roundevenf.c @@ -16,6 +16,7 @@ License along with the GNU C Library; if not, see <https://www.gnu.org/licenses/>. */ +#define NO_MATH_REDIRECT #include <math.h> #include <fenv_private.h> #include <libm-alias-float.h>
next reply other threads:[~2022-09-28 19:11 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-09-28 19:11 Sunil Pandey [this message] 2022-09-29 20:18 Sunil Pandey
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=20220928191136.EBEBD3857C42@sourceware.org \ --to=skpgkp2@sourceware.org \ --cc=glibc-cvs@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).