From patchwork Fri Oct 5 18:01:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 148285 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp758910lji; Fri, 5 Oct 2018 11:07:52 -0700 (PDT) X-Google-Smtp-Source: ACcGV6370bk3z5g/GTfINxoZBBCbJFXhuKJMRZd7gBp4TIZZZUpnOXUX3vsgcv8ObffksjjyB2+W X-Received: by 2002:a0c:c506:: with SMTP id x6-v6mr10025096qvi.154.1538762872422; Fri, 05 Oct 2018 11:07:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538762872; cv=none; d=google.com; s=arc-20160816; b=im0Cm+ZadpE37wyIqoorkQN+86dac6q7l7zF4N0kSpFWk6fB3OaHghVkR5S2clH1L9 aPbSeWsKIEA0QIOKcwuTU0Jg/pf/PZbLmtR/5xQQHrnWszz/xDC70uMHqB3plGaAjind nYywq9E+q6QGKT1MaUas5FcOU5FOReKkjk9Tj8j3PhtpEw91hi39fZt/prr5rpIkwXo4 noK1xlLVaAOx3eNi6RICcBaPLbC57ZuCbZM3x60fudVUdhoz0VJVqHA/3dHMi2Z7EMXG YFh3z42u1Y9ycMIfIx2vT3zgdXbs9WXFgCjklV9+pTw9GvMt5GrrHo6Oy/+saxnSlrui We8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=wtgXuXwbTi5jnIUhc1c7D6B23wTZbvstWyvOoHi0AzI=; b=FgjuECbaUS/68/9Bjn1QX184ngbxB1BJPyXlDn0hZqRKh7/5JyWFzTbLhTvhpfaAkt C6D+4AXxJfTuZFUuRPDdOLRmA7Nnv134b3j55GPzTArVgqv8WIWxfaReNQVFJpb8ueO8 cedDdJi2Rsr7MJNq8YYXIGzRH5CU5kdGPtaq4UVjuzGbx0pX0rc4x5XaMfb0+HIc0Lks HTGnNFwzgfn4x7J/pjudNeQzAN1/fCGS61yy011jZ56T2/TTqaP0GtiUVMwhXu51K9N/ MRKwvpIab3ufRz9dzFsXId2D+jcXA0CVGqvG6A9vXBhDMMJnnA9bVXId7Xmc6FEZKojT RfDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=AkUCBy6l; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 1-v6si786098qtn.80.2018.10.05.11.07.52 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 05 Oct 2018 11:07:52 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=AkUCBy6l; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:36408 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g8UVz-00062v-QI for patch@linaro.org; Fri, 05 Oct 2018 14:07:51 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38470) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g8UQU-0000Jj-Da for qemu-devel@nongnu.org; Fri, 05 Oct 2018 14:02:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g8UQT-0003ix-CD for qemu-devel@nongnu.org; Fri, 05 Oct 2018 14:02:10 -0400 Received: from mail-ot1-x32d.google.com ([2607:f8b0:4864:20::32d]:43586) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g8UQT-0003ex-2a for qemu-devel@nongnu.org; Fri, 05 Oct 2018 14:02:09 -0400 Received: by mail-ot1-x32d.google.com with SMTP id e21-v6so13542196otk.10 for ; Fri, 05 Oct 2018 11:02:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wtgXuXwbTi5jnIUhc1c7D6B23wTZbvstWyvOoHi0AzI=; b=AkUCBy6lFhTSuAx8TUYz8XHlnB6IoKV5Jws0pKgXp2S4Xp1ZbNCS+trsec3Rr8DifO R+j3ZWb37nTfqCGVvsqaRRfT+p3ZyhpCzZVfEJkukzivgP9CkYbytGgNIRJB2Ax1vCHy edjIw5AGcrmJdEJHifwd+NLOs6vWt7lRHxQlQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=wtgXuXwbTi5jnIUhc1c7D6B23wTZbvstWyvOoHi0AzI=; b=cFPOwylmpdDFo/lgVdIJ9v4mMMQ01NT+x4CCY3D3oOjr/trfqztWruHWkrFEKYhXRX KeShmYMi+Lf3xEcEP8Lyz9tmuV77GCXWiu7mR8qfFiKLYs8NivpZ7IWEfy8YHZyb+OUv OtLcBYOn8xkoxItbU3lcaRtyhGj8BEPLfRZVqUebgTRWUM+8bZCBuVYZ3qwDQhcBQ6te NwCWdWwQy7A/KTxcftzeZ59iqaOYBza9iD8IgFVK/HGkhRrsiYdKqScD8OoGEf6Jdt9c xRTHMkuCL5aYhtVDFc/SozQo5ynwiDmDRcBtoYQ+Td5jZHylIUEv+8xOEqB00cugeast EHMA== X-Gm-Message-State: ABuFfog3HeyaReT7uC/2tAbfCLViOuhcy9m3eVNjXNWy8Cs7Xw0wUncm 0uRaSJgH/pqkSIdylf6xeUaeYUUUaAOpjRkJ1S8= X-Received: by 2002:a9d:9a3:: with SMTP id q32mr6087831otd.252.1538762527903; Fri, 05 Oct 2018 11:02:07 -0700 (PDT) Received: from cloudburst.twiddle.net ([187.217.230.84]) by smtp.gmail.com with ESMTPSA id d37-v6sm2601302otb.0.2018.10.05.11.02.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 05 Oct 2018 11:02:07 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 5 Oct 2018 13:01:54 -0500 Message-Id: <20181005180201.11387-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181005180201.11387-1-richard.henderson@linaro.org> References: <20181005180201.11387-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::32d Subject: [Qemu-devel] [PULL 1/8] 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: peter.maydell@linaro.org, "Emilio G. Cota" Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: "Emilio G. Cota" 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. Reviewed-by: Alex Bennée Signed-off-by: Emilio G. Cota Signed-off-by: Richard Henderson --- include/fpu/softfloat.h | 1 - fpu/softfloat.c | 7 ------- 2 files changed, 8 deletions(-) -- 2.17.1 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