public inbox for glibc-cvs@sourceware.org help / color / mirror / Atom feed
From: Adhemerval Zanella <azanella@sourceware.org> To: glibc-cvs@sourceware.org Subject: [glibc/azanella/x86-libc_fe] Use libc_fe* macros in ldbl-128/e_expl.c. Date: Mon, 20 Apr 2020 18:53:00 +0000 (GMT) [thread overview] Message-ID: <20200420185300.9ABEF3858D31@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=035ed16ebeb4c30737e51507ed5cb03880aa148a commit 035ed16ebeb4c30737e51507ed5cb03880aa148a Author: Stefan Liebler via Libc-alpha <libc-alpha@sourceware.org> Date: Mon Apr 20 08:14:15 2020 -0300 Use libc_fe* macros in ldbl-128/e_expl.c. Diff: --- sysdeps/ieee754/ldbl-128/e_expl.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sysdeps/ieee754/ldbl-128/e_expl.c b/sysdeps/ieee754/ldbl-128/e_expl.c index 37c1538c08..104ace1690 100644 --- a/sysdeps/ieee754/ldbl-128/e_expl.c +++ b/sysdeps/ieee754/ldbl-128/e_expl.c @@ -66,6 +66,7 @@ #include <inttypes.h> #include <math-barriers.h> #include <math_private.h> +#include <fenv_private.h> #include <math-underflow.h> #include <stdlib.h> #include "t_expl.h" @@ -146,9 +147,10 @@ __ieee754_expl (_Float128 x) union ieee854_long_double ex2_u, scale_u; fenv_t oldenv; - feholdexcept (&oldenv); #ifdef FE_TONEAREST - fesetround (FE_TONEAREST); + libc_feholdexcept_setroundl (&oldenv, FE_TONEAREST); +#else + libc_feholdexceptl (&oldenv); #endif /* Calculate n. */ @@ -198,7 +200,7 @@ __ieee754_expl (_Float128 x) math_force_eval (x22); /* Return result. */ - fesetenv (&oldenv); + libc_fesetenvl (&oldenv); result = x22 * ex2_u.d + ex2_u.d;
reply other threads:[~2020-04-20 18:53 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20200420185300.9ABEF3858D31@sourceware.org \ --to=azanella@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).