From patchwork Mon Mar 25 18:38:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 1064701 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-100884-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="dq7hOISA"; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="FFGeZ0g0"; dkim-atps=neutral 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 44SjhP2WCQz9sR5 for ; Tue, 26 Mar 2019 05:38:45 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=default; b=wl2 3j/mw4Q2W6U8Mz5+Dq52TNbSIvBNOQRdfO5CIiGfk1Bj5SuLzQ25vPrTF+iyZXv+ bKjietiybsdWvMe84flvJ6qOoNX7DrKyu7TPJdhVBv9XjpIBljoXSMF7plPI3HoB do3Oat1AWPhCuxPWnOkesUarD+msZoA8U+Qc+FFA= 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:from:to:subject:date:message-id:mime-version :content-type:content-transfer-encoding; s=default; bh=LkIRUf1eD Kw49LQikcRRtLKlt2o=; b=dq7hOISABm0qiBbw7IWAWicOQxeevqlTioVstHuy/ c7W/SDFK7ZmrI1prJgxlpQM7guAKR4FpTjtP6/FCHgJkG+bv+LVfY9r/lH86vmSp TlPEoEjTX/7tUvakiQzc9bauyl7lQJTAB+C+Ih6UxUVjJjnUoMDU91X4U4923HZV qE= Received: (qmail 92895 invoked by alias); 25 Mar 2019 18:38:37 -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 92886 invoked by uid 89); 25 Mar 2019 18:38:37 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-21.9 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=prototypes, contributed, distributed X-HELO: mail-vs1-f44.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=8fBWuegifpS/dsB28YswBbLN2SCbqqFkJ0nsenXpXC0=; b=FFGeZ0g0W0bcN44GXJg7uPha5jLAbI4o1D3xFi83zan0SPUtsMh8So1m35ImXxhErM SkxDF8GQmGFeYsHArNZUR02t4HgMj5Y7xIu6mQGxiMRxf/Htq2zhtKErP+zxdmTRkUME mKVuvM8ilG1TruTGynvgGo9xVmhlsUmvPFLA1XF/hLOjdAljRPTBSXev3QEGPh21u3l+ EBYCFD+8M6jaJRQaRirjQiTzzxZhCXhmhiTNvbGJmLUbvBL5il0VDwTKGKdYYh5ksLvl ycqbiEylUl0/f84Oza6ub7AF1VqcNuioqF9NySrwfgASOE0QZKTXrRqNcWzjWDpi9WCS NtnA== From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [COMMITTED] powerpc: Remove ununsed s_float_bitwise.h Date: Mon, 25 Mar 2019 15:38:28 -0300 Message-Id: <20190325183828.12481-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 This file is not used anywhere since removal of {k,e}_rem_pio2f.c (commit ca3aac57efa89). Checked with a build for powerpc-linux-gnu (with --with-cpu=power4 and --with-cpu=power7), powerpc64-linux-gnu (with --with-cpu=power4 and --with-cpu=power7), and powerpc64le-linux (with --with-cpu=power8). * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file. --- ChangeLog | 4 + sysdeps/powerpc/fpu/s_float_bitwise.h | 115 -------------------------- 2 files changed, 4 insertions(+), 115 deletions(-) delete mode 100644 sysdeps/powerpc/fpu/s_float_bitwise.h diff --git a/ChangeLog b/ChangeLog index 75bab0f2bf..82e03e8d05 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2019-03-25 Adhemerval Zanella + + * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file. + 2019-03-25 Andreas K. Hüttel * nss/tst-nss-files-alias-leak.c (do_test): add missing opening diff --git a/sysdeps/powerpc/fpu/s_float_bitwise.h b/sysdeps/powerpc/fpu/s_float_bitwise.h deleted file mode 100644 index aaed50e631..0000000000 --- a/sysdeps/powerpc/fpu/s_float_bitwise.h +++ /dev/null @@ -1,115 +0,0 @@ -/* Bitwise manipulation over float. Function prototypes. - Copyright (C) 2011-2019 Free Software Foundation, Inc. - This file is part of the GNU C Library. - Contributed by Adhemerval Zanella , 2011 - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _FLOAT_BITWISE_ -#define _FLOAT_BITWISE_ 1 - -#include - -/* Returns (int)(num & 0x7FFFFFF0 == value) */ -static inline int -__float_and_test28 (float num, float value) -{ - float ret; -#ifdef _ARCH_PWR7 - union { - int i; - float f; - } mask = { .i = 0x7ffffff0 }; - __asm__ ( - /* the 'f' constraint is used on mask because we just need - * to compare floats, not full vector */ - "xxland %x0,%x1,%x2" : "=f" (ret) : "f" (num), "f" (mask.f) - ); -#else - int32_t inum; - GET_FLOAT_WORD(inum, num); - inum = (inum & 0x7ffffff0); - SET_FLOAT_WORD(ret, inum); -#endif - return (ret == value); -} - -/* Returns (int)(num & 0x7FFFFF00 == value) */ -static inline int -__float_and_test24 (float num, float value) -{ - float ret; -#ifdef _ARCH_PWR7 - union { - int i; - float f; - } mask = { .i = 0x7fffff00 }; - __asm__ ( - "xxland %x0,%x1,%x2" : "=f" (ret) : "f" (num), "f" (mask.f) - ); -#else - int32_t inum; - GET_FLOAT_WORD(inum, num); - inum = (inum & 0x7fffff00); - SET_FLOAT_WORD(ret, inum); -#endif - return (ret == value); -} - -/* Returns (float)(num & 0x7F800000) */ -static inline float -__float_and8 (float num) -{ - float ret; -#ifdef _ARCH_PWR7 - union { - int i; - float f; - } mask = { .i = 0x7f800000 }; - __asm__ ( - "xxland %x0,%x1,%x2" : "=f" (ret) : "f" (num), "f" (mask.f) - ); -#else - int32_t inum; - GET_FLOAT_WORD(inum, num); - inum = (inum & 0x7f800000); - SET_FLOAT_WORD(ret, inum); -#endif - return ret; -} - -/* Returns ((int32_t)(num & 0x7F800000) >> 23) */ -static inline int32_t -__float_get_exp (float num) -{ - int32_t inum; -#ifdef _ARCH_PWR7 - float ret; - union { - int i; - float f; - } mask = { .i = 0x7f800000 }; - __asm__ ( - "xxland %x0,%x1,%x2" : "=f" (ret) : "f" (num), "f" (mask.f) - ); - GET_FLOAT_WORD(inum, ret); -#else - GET_FLOAT_WORD(inum, num); - inum = inum & 0x7f800000; -#endif - return inum >> 23; -} - -#endif /* s_float_bitwise.h */