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 Netto X-Patchwork-Id: 1082 Return-Path: X-Original-To: siddhesh@wilcox.dreamhost.com Delivered-To: siddhesh@wilcox.dreamhost.com Received: from homiemail-mx22.g.dreamhost.com (peon2454.g.dreamhost.com [208.113.200.127]) by wilcox.dreamhost.com (Postfix) with ESMTP id BB04D3600B4 for ; Thu, 22 May 2014 14:07:17 -0700 (PDT) Received: by homiemail-mx22.g.dreamhost.com (Postfix, from userid 14307373) id 5C6B95DDE0AE; Thu, 22 May 2014 14:07:16 -0700 (PDT) X-Original-To: glibc@patchwork.siddhesh.in Delivered-To: x14307373@homiemail-mx22.g.dreamhost.com 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 homiemail-mx22.g.dreamhost.com (Postfix) with ESMTPS id 33F0B5DDE06D for ; Thu, 22 May 2014 14:07:16 -0700 (PDT) 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=Vad B7d31WM6AVpJqjsSPbCxZP2lazTc+UIQLw4ZtvLtuQrUrv+RZZ5rUm+xVkFmU5y4 GeYxxZNgrb0WL2SPPIFOmNIZQ5XOVaqLlwgOSPs3/4LyXZR42Br+WeOfuB47RpQ2 A+yPnakCqYmQ5KrNQ2XNo9BS/Ce945qF71E2K4sc= 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=Crc/V5F2mTrDLCsNp8wOu2M5hK9xIM9EclYNmfHSK IxBUqPBD4AlZzJLNIo5nLx3lEFF9o3LRsjpeV8PngAztimpBxgEgbx0P6qtDA5Un L5gx9POqLSC3UWpVx01h7ViNvTfDxqlG4JD6WUX5OlnaGFYn0+I8ppiBR24fXzTR /0= 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 X-DH-Original-To: glibc@patchwork.siddhesh.in 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_ */