From patchwork Thu May 22 21:07:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 351612 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id AD98114007C for ; Fri, 23 May 2014 07:07:19 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :content-type:content-transfer-encoding; q=dns; s=default; b=oSn clBrg4CFai5n4kUsot7pWjxH4gkQCY7BnVsk3c0Fg2Q1B2ZNux22whx0DTdKFGb5 vq1KIRNWQZLyjWMRvvn1Kqqwu44P2PAOQC47oNtLv/JEZd8iOncGaO1hi4SYDP5n grcXlxDEvVOYr7toCjeGpwtTHHtJomSe+QuiJ9Zo= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :content-type:content-transfer-encoding; s=default; bh=nCGhpexkZ rjfHFWOUcC5Yn6Ch/I=; b=U+lrKqlqgvfznlrVOUz126Y1ZP6dUGc9qxT9d2WWb nUKxrYHnzkjlCtt2+RgtMSwYvZj4BTJGyLTWd2T7kCNIHQy/x3eFIHQMX89GBSzb 3rvFqV+t9mNLUe21w0sDipsJrC0U5qtx1E2Swcf6YvjrH5rzja51jjTTr//ZZ6eU 4Y= Received: (qmail 13338 invoked by alias); 22 May 2014 21:07:13 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 13321 invoked by uid 89); 22 May 2014 21:07:12 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: e24smtp01.br.ibm.com Message-ID: <537E66F5.6080201@linux.vnet.ibm.com> Date: Thu, 22 May 2014 18:07:01 -0300 From: Adhemerval Zanella User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: "GNU C. Library" Subject: [COMMITTED] PowerPC: Remove unneeded copysign[f] macros X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14052221-1524-0000-0000-000009CB7FC5 Following Andreas Schwab suggestion, I just pushed the patch to remove the copysign/copysignf macro optimization, since they are already covered in generic version. --- 2014-05-22 Adhemerval Zanella * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded macro. [copysignf]: Likewise. --- diff --git a/sysdeps/powerpc/fpu/math_private.h b/sysdeps/powerpc/fpu/math_private.h index 1ec4881..b664be3 100644 --- a/sysdeps/powerpc/fpu/math_private.h +++ b/sysdeps/powerpc/fpu/math_private.h @@ -151,31 +151,4 @@ __ieee754_sqrtf (float __x) #endif /* defined _ARCH_PWR5X */ - -#if defined _ARCH_PWR6 - -# ifndef __copysign -# define __copysign(x, y) \ - ({ double __z; \ - __asm __volatile ( \ - " fcpsgn %0,%1,%2\n" \ - : "=f" (__z) \ - : "f" (y), "f" (x)); \ - __z; }) -# endif -# ifndef __copysignf -# define __copysignf(x, y) \ - ({ float __z; \ - float __x = x; \ - float __y = y; \ - __asm __volatile ( \ - " fcpsgn %0,%1,%2\n" \ - " frsp %0,%0\n" \ - : "=f" (__z) \ - : "f" (__y), "f" (__x));\ - __z; }) -# endif - -#endif /* defined _ARCH_PWR6 */ - #endif /* _PPC_MATH_PRIVATE_H_ */