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 X-Patchwork-Id: 161138 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp4297330jan; Mon, 25 Mar 2019 11:38:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqwdTfGmt8jg6xQZXkZZK55S2aWpAwf1Yxm8kIUlcu5I0xb3cjvzgClNusRL45Z5Y4jp0T8U X-Received: by 2002:a65:4244:: with SMTP id d4mr24816991pgq.419.1553539128752; Mon, 25 Mar 2019 11:38:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553539128; cv=none; d=google.com; s=arc-20160816; b=auqDNKUOdgVF4nWMi1i/uPVSXqrFzjNkb5i0e5//CMvJr1nnkHy1DUAIChVjhqvId+ O/UUoZo/vEFZSe2dYd8GWTcnhke10NOveQU/J/LoSwG0lJndxJmXu7uf5yugj6hazqI2 dHCiKao+CWNqo6M7VLzxCM+ycx1Eixjk0pIE5Z1X0ScgXVRfwwXk1lkwdPps74JbhfEF LXDLNV5J7qNf6hSLbs4j3lncEEsmnZPZfCo6nGtRhcJH6Xns0LRagiEb9tVhbASjGEC7 H628h2YtOz1fDhrcKaBNKo8AbXl6aiSa/0bV9zbBk0JzmYPS3AlYheezFgjdadZ//RXm tGBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:dkim-signature:delivered-to:sender:list-help:list-post :list-archive:list-subscribe:list-unsubscribe:list-id:precedence :mailing-list:dkim-signature:domainkey-signature; bh=8fBWuegifpS/dsB28YswBbLN2SCbqqFkJ0nsenXpXC0=; b=YAy3Wz088/nieXpeX4mUG9Rq6qoWjiHv+sGPMDm6CR9isEQYHvFZs1/uaGqvllCToK 4ejGV0leKMS5taVHEE8Pdg19xjw8iOyrdlf/RomAwsFQYmVxNs5uXPjYtmsxDfjsR4li RNxzqKW7TRmghugI2nUdB55Xjta+mZ7gzWV+tCFoYhO2Lw8nUdS2ov5OYbpL3O2rUGli F/38hqIPV0cbJzqkqpPUutIaetC02P8vnZ/XwACxzp7OKZy2z3FfYa+3BpoAkjSRaGsC ujHVn4cvicOz/P6PQYGdYaYjq3dZ31UUDpTsrL4nhEYQ57+2NA3V1HQrRniOT8GxUvdK SnDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=DBJaq5Fi; dkim=pass header.i=@linaro.org header.s=google header.b=FFGeZ0g0; spf=pass (google.com: domain of libc-alpha-return-100884-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="libc-alpha-return-100884-patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id e65si14199984pfa.80.2019.03.25.11.38.48 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Mar 2019 11:38:48 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-100884-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=DBJaq5Fi; dkim=pass header.i=@linaro.org header.s=google header.b=FFGeZ0g0; spf=pass (google.com: domain of libc-alpha-return-100884-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="libc-alpha-return-100884-patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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=JR7 zpuGJtgrB0CFOtkZ5v2HnKPtu0MxC1MMIHYi+5MnqJ+MJnZczqPdjUIqYUw0Ypwd UPtl6q39ogykg/DYp8mviC9Hcm3TzzxeIWKCAHw93jN5I8MH0NYNQ0yMIJdevcL2 39r5Tjqi3ttGB60X5/PVj9InYO1Xflak7pgr7XfA= 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=DBJaq5Fi565tuS1C2s6o4OpanQ3OKrZTMyEdka6ZQ BD9Tjg8t+63UH+6mscA1XBPzNdt/uEtht7gdCfPODsZKrQq2Yuw0PZj3hakaY9yl yrKpyKxcaCb8HNiWhWTsDEn+IFe+vwqLZMLwGVPMFh+qyyzv228PeGBWl8yN2Em/ Co= 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== Return-Path: 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 -- 2.17.1 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 */