From: Richard Henderson <rth@twiddle.net>
To: libc-ports@sourceware.org
Subject: [PATCH 5/7] alpha: Use builtins for copysign
Date: Fri, 15 Jun 2012 19:21:00 -0000 [thread overview]
Message-ID: <1339788037-29519-6-git-send-email-rth@twiddle.net> (raw)
In-Reply-To: <1339788037-29519-1-git-send-email-rth@twiddle.net>
---
sysdeps/alpha/fpu/s_copysign.c | 5 ++---
sysdeps/alpha/fpu/s_copysignf.c | 5 ++---
2 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/sysdeps/alpha/fpu/s_copysign.c b/sysdeps/alpha/fpu/s_copysign.c
index 51a5c64..b012027 100644
--- a/sysdeps/alpha/fpu/s_copysign.c
+++ b/sysdeps/alpha/fpu/s_copysign.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000, 2006 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 2006, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Richard Henderson.
@@ -22,8 +22,7 @@
double
__copysign (double x, double y)
{
- __asm ("cpys %1, %2, %0" : "=f" (x) : "f" (y), "f" (x));
- return x;
+ return __builtin_copysign (x, y);
}
weak_alias (__copysign, copysign)
diff --git a/sysdeps/alpha/fpu/s_copysignf.c b/sysdeps/alpha/fpu/s_copysignf.c
index 2ccd52e..c304949 100644
--- a/sysdeps/alpha/fpu/s_copysignf.c
+++ b/sysdeps/alpha/fpu/s_copysignf.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Richard Henderson.
@@ -21,8 +21,7 @@
float
__copysignf (float x, float y)
{
- __asm ("cpys %1, %2, %0" : "=f" (x) : "f" (y), "f" (x));
- return x;
+ return __builtin_copysignf (x, y);
}
weak_alias (__copysignf, copysignf)
--
1.7.7.6
next prev parent reply other threads:[~2012-06-15 19:21 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-15 19:20 [PATCH 0/7] Fixes for alpha problems Joseph noticed Richard Henderson
2012-06-15 19:21 ` Richard Henderson [this message]
2012-06-15 19:21 ` [PATCH 3/7] alpha: Add missing definitions in resource.h, shm.h Richard Henderson
2012-06-15 19:21 ` [PATCH 1/7] alpha: Fix float_t in bits/mathdef.h Richard Henderson
2012-06-15 19:21 ` [PATCH 4/7] alpha: Fix protection on UTIME_NOW Richard Henderson
2012-06-15 19:21 ` [PATCH 2/7] alpha: Remove some __GNUC_PREREQs that are too old Richard Henderson
2012-06-15 19:27 ` [PATCH 6/7] [BZ #13848] alpha: Fix s_nearbyint implementation Richard Henderson
2012-06-15 19:28 ` [PATCH 7/7] alpha: Always handle inexact in rint implementations Richard Henderson
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=1339788037-29519-6-git-send-email-rth@twiddle.net \
--to=rth@twiddle.net \
--cc=libc-ports@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: link
Be 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).