From patchwork Thu Sep 13 21:39:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Emilio Cota X-Patchwork-Id: 969548 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=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=braap.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=braap.org header.i=@braap.org header.b="gvlmsFWw"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="GElS/87c"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42BBwg1Zv1z9s4V for ; Fri, 14 Sep 2018 07:43:31 +1000 (AEST) Received: from localhost ([::1]:44413 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g0ZOa-0001SG-Pu for incoming@patchwork.ozlabs.org; Thu, 13 Sep 2018 17:43:28 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59493) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g0ZML-000068-Kz for qemu-devel@nongnu.org; Thu, 13 Sep 2018 17:41:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g0ZMB-0000N0-6x for qemu-devel@nongnu.org; Thu, 13 Sep 2018 17:41:04 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:33099) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g0ZM7-0007yM-Bk for qemu-devel@nongnu.org; Thu, 13 Sep 2018 17:40:55 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 43AA821E09; Thu, 13 Sep 2018 17:39:30 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 13 Sep 2018 17:39:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=braap.org; h=cc :date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=mesmtp; bh=ewvjqrPK93qd5f LliDJbdBvv38s1TKpRvM1tk5mQsi4=; b=gvlmsFWwLTj0cg0n22N9xJJS+WWiJT QI8pRHWrPg+v2wtuLqsbJ2VjF/cvi0/YfW8zkGes9lZxiPSdACRzQ7KRI15WP6Lp ZISTMr42yRown8RTsyA9yIkRoaZ8Q/EbqBRRBxbbwUGM9+A6gJI3YnM1XmzRcZha NVlaeBPeem834= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=ewvjqrPK93qd5fLliDJbdBvv38s1TKpRvM1tk5mQsi4=; b=GElS/87c pJSRf5Vu+rxkhTQD/E20el2oqRp32MgCZ6yORR9vspgnpRrQX+qehME7wUUeuHPG GKuz2g7DgPeUO9+3kg3YvMM5vJEhMrk1pM777Qyps5HkTM3o4FWqzFmxOcgvEvI+ WUO/VRndvMLvsCdNfzOIUll0UCd6JcOcOX/mcRXk+484kXO31ElH25hk+b95OwEa k/qlbfCt864quMujCRIDum/woGVEzOTL8SuTL0ofwBZyjqn4xazh0IrbK9+JodKH Tw07VmNVPPsYoQgP+4MmMRKELHvQoXFgOasu7Og3gyu7OkzofrP6n0phK3JhsP1K K9Rx5SDchTZpaw== X-ME-Proxy: X-ME-Sender: Received: from localhost (flamenco.cs.columbia.edu [128.59.20.216]) by mail.messagingengine.com (Postfix) with ESMTPA id 6EF35102D6; Thu, 13 Sep 2018 17:39:29 -0400 (EDT) From: "Emilio G. Cota" To: qemu-devel@nongnu.org Date: Thu, 13 Sep 2018 17:39:08 -0400 Message-Id: <20180913213910.28189-2-cota@braap.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180913213910.28189-1-cota@braap.org> References: <20180913213910.28189-1-cota@braap.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.25 Subject: [Qemu-devel] [PATCH v3 1/3] softfloat: remove float64_trunc_to_int X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , Peter Maydell , Richard Henderson , Laurent Vivier , Aurelien Jarno Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" It has not had users since f83311e476 ("target-m68k: use floatx80 internally", 2017-06-21). Note that no other bit-width has floatX_trunc_to_int. Signed-off-by: Emilio G. Cota Reviewed-by: Alex Bennée --- include/fpu/softfloat.h | 1 - fpu/softfloat.c | 7 ------- 2 files changed, 8 deletions(-) diff --git a/include/fpu/softfloat.h b/include/fpu/softfloat.h index cc1b58b029..8fd9f9bbae 100644 --- a/include/fpu/softfloat.h +++ b/include/fpu/softfloat.h @@ -535,7 +535,6 @@ float128 float64_to_float128(float64, float_status *status); | Software IEC/IEEE double-precision operations. *----------------------------------------------------------------------------*/ float64 float64_round_to_int(float64, float_status *status); -float64 float64_trunc_to_int(float64, float_status *status); float64 float64_add(float64, float64, float_status *status); float64 float64_sub(float64, float64, float_status *status); float64 float64_mul(float64, float64, float_status *status); diff --git a/fpu/softfloat.c b/fpu/softfloat.c index 59ca356d0e..9405f12a03 100644 --- a/fpu/softfloat.c +++ b/fpu/softfloat.c @@ -1409,13 +1409,6 @@ float64 float64_round_to_int(float64 a, float_status *s) return float64_round_pack_canonical(pr, s); } -float64 float64_trunc_to_int(float64 a, float_status *s) -{ - FloatParts pa = float64_unpack_canonical(a, s); - FloatParts pr = round_to_int(pa, float_round_to_zero, 0, s); - return float64_round_pack_canonical(pr, s); -} - /* * Returns the result of converting the floating-point value `a' to * the two's complement integer format. The conversion is performed