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] math: Use builtin for ldbl-96 copysign Date: Thu, 7 Apr 2022 18:15:05 +0000 (GMT) [thread overview] Message-ID: <20220407181505.A96813858D28@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=0a4ae090e069e469c5acd49cee8258065480a11a commit 0a4ae090e069e469c5acd49cee8258065480a11a Author: Adhemerval Zanella <adhemerval.zanella@linaro.org> Date: Thu Apr 7 14:39:59 2022 -0300 math: Use builtin for ldbl-96 copysign All architectures that uses it (x86, ia64, m68k) implement the builtin. Checked on x86_64-linux-gnu and ia64-linux-gnu. Diff: --- sysdeps/ieee754/ldbl-96/s_copysignl.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/sysdeps/ieee754/ldbl-96/s_copysignl.c b/sysdeps/ieee754/ldbl-96/s_copysignl.c index 5a30fcc6d0..ad7539113f 100644 --- a/sysdeps/ieee754/ldbl-96/s_copysignl.c +++ b/sysdeps/ieee754/ldbl-96/s_copysignl.c @@ -24,15 +24,11 @@ static char rcsid[] = "$NetBSD: $"; #define NO_MATH_REDIRECT #include <math.h> -#include <math_private.h> #include <libm-alias-ldouble.h> -long double __copysignl(long double x, long double y) +long double +__copysignl (long double x, long double y) { - uint32_t es1,es2; - GET_LDOUBLE_EXP(es1,x); - GET_LDOUBLE_EXP(es2,y); - SET_LDOUBLE_EXP(x,(es1&0x7fff)|(es2&0x8000)); - return x; + return __builtin_copysignl (x, y); } libm_alias_ldouble (__copysign, copysign)
reply other threads:[~2022-04-07 18:15 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=20220407181505.A96813858D28@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).