From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8271 invoked by alias); 15 Jun 2012 19:21:19 -0000 Received: (qmail 8056 invoked by uid 22791); 15 Jun 2012 19:21:12 -0000 X-SWARE-Spam-Status: No, hits=-5.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-pb0-f41.google.com (HELO mail-pb0-f41.google.com) (209.85.160.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 15 Jun 2012 19:20:47 +0000 Received: by pbbrp2 with SMTP id rp2so6186889pbb.0 for ; Fri, 15 Jun 2012 12:20:47 -0700 (PDT) Received: by 10.68.227.163 with SMTP id sb3mr24021674pbc.74.1339788047139; Fri, 15 Jun 2012 12:20:47 -0700 (PDT) Received: from anchor.twiddle.home ([173.160.232.49]) by mx.google.com with ESMTPS id tm2sm14126864pbc.69.2012.06.15.12.20.46 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 15 Jun 2012 12:20:46 -0700 (PDT) From: Richard Henderson To: libc-ports@sourceware.org Subject: [PATCH 5/7] alpha: Use builtins for copysign Date: Fri, 15 Jun 2012 19:21:00 -0000 Message-Id: <1339788037-29519-6-git-send-email-rth@twiddle.net> In-Reply-To: <1339788037-29519-1-git-send-email-rth@twiddle.net> References: <1339788037-29519-1-git-send-email-rth@twiddle.net> X-IsSubscribed: yes Mailing-List: contact libc-ports-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: libc-ports-owner@sourceware.org X-SW-Source: 2012-06/txt/msg00061.txt.bz2 --- 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