From patchwork Fri May 11 00:43:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 135454 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp249785lji; Thu, 10 May 2018 17:53:21 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoISmkd7OzhascBn1TgPlXKCuC9uEVeTi2tfWoEG1GhU7QOLmw6blu0neMEv8Cp/eQqsUZC X-Received: by 2002:a37:9342:: with SMTP id v63-v6mr3440016qkd.40.1526000001778; Thu, 10 May 2018 17:53:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526000001; cv=none; d=google.com; s=arc-20160816; b=SRvVFxojK2280ByBlYfk6kYsAPUMvxFm8I1ZXVgjTFt9vyrRUk4BTlGAbktU5TCOXT 6Rrfl8KY13rax21fvG1qGTp+uL/0t0EN0h084INsCWR8+j2RJ135q88TzGH/BURqK0Ka af+11Sa1c48TNy7lJbV94kkPWwiXjHu4dQCT6VnXDhq+RRLsyzmI5YykV24srXr77kGe QwCbIC2/Nt2vmNuR7GhH4I83tfgUtlDzR2GptWu7Gifa8uDD0qSW8ntiF4M9eUDa55xS Jeg0PLPphaiTGuKlYCRIO5kROxaGuOi5jZcicTWPwwjCwYL7564tsoBbZm0cdC2vdIpR nTyg== 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:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=oJWsgaqKrV22gmzFsZC0W5+oSo6K4eM7iZrE9Cwz8bQ=; b=acppNCm8hJjPCFQYmFMJW9ejhiw3Q+LgJ+AacUjJMh2yqgTl1J3Ln82Ws/00U4VAli XOUY3rfos4qyF52v5YQ83BqtCtvVW8UPZFOo5XwylsVug6tt+TNKdiJBRpuOruqi4ved elGzB0e262OetV7F6fsulxCfUFJ2cps3FK14lfhLrU9L088wTV869So1gsO78gudyEik ivUY0Tk4lkWUo+wi6NzdaBJlQQFNsdH8Larviag7266yC6qdZfgUBGPit3F+LjsI6+Gw HRp3N6YG723F0xN3LpUwZlsKVWE/jXtSYbIUfTgt72aDoi/2tsSPZZU6aB7+GXBKbgY8 k2Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ccIchCYk; 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 29-v6si2110173qto.253.2018.05.10.17.53.21 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 10 May 2018 17:53:21 -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=ccIchCYk; 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]:36205 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGwJF-0001Hu-5o for patch@linaro.org; Thu, 10 May 2018 20:53:21 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52112) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGwAO-0007Lv-KR for qemu-devel@nongnu.org; Thu, 10 May 2018 20:44:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGwAN-0004tq-IA for qemu-devel@nongnu.org; Thu, 10 May 2018 20:44:12 -0400 Received: from mail-pg0-x242.google.com ([2607:f8b0:400e:c05::242]:36260) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fGwAN-0004ta-9d for qemu-devel@nongnu.org; Thu, 10 May 2018 20:44:11 -0400 Received: by mail-pg0-x242.google.com with SMTP id z70-v6so1681560pgz.3 for ; Thu, 10 May 2018 17:44:11 -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; bh=oJWsgaqKrV22gmzFsZC0W5+oSo6K4eM7iZrE9Cwz8bQ=; b=ccIchCYkrBcHXruTQWngTq6EXQ11+WFtfaTOBpdobT3NtIf0dqIeVmVpRtfOGzFTC9 JM+k77ABHO1r8pyQ/mjr00gXbc4ZNRgw3rHUJR6T0aABzFQm694xHI7yFbrMx60monsU hKah9KXlwnJi11EnjxoURaSoxu/pubapauRys= 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; bh=oJWsgaqKrV22gmzFsZC0W5+oSo6K4eM7iZrE9Cwz8bQ=; b=P3tUJ4DlomrFT7eOwHJVtGJMIuzikzLAhECvxoULLFAwum9ALjLPJI7cZ3EYJ2VRBM fb2L8SIj+PA4qB5BDxWoGNjuo4/2E11R/FFuZAHqg6qKKx+sCimnLXHJqVUNDq+TTMRj 2S8IOX9bJU5S6xO/j1uzPxDrdbGBBjjRQLeiIu9qcqpMnjw4p8SNgUWNE62My0PUhn5L lY+EQfUTi8jdSd1GfGWwAW1jaBDGOXXKo4dApQ+b+EmzJ5RHX0IGIOhbWKG7pA5JxfjI xq2gtGZVBuV4oiNxB8h2d3zX5k57xBh3rDpgMH8CkM4IOGWOZ4AzVPZZ5K7QNYFIVyGP AV1w== X-Gm-Message-State: ALKqPwdiNvHZNM558JGj/QC7DFwbGHbYRHofe/PlqPhtnvOY5lowe/V0 OD3cXCTzga8fxw6G7tQ8zpySX6pj1sM= X-Received: by 2002:a65:6553:: with SMTP id a19-v6mr2679830pgw.3.1525999449912; Thu, 10 May 2018 17:44:09 -0700 (PDT) Received: from cloudburst.twiddle.net (97-113-2-170.tukw.qwest.net. [97.113.2.170]) by smtp.gmail.com with ESMTPSA id y24-v6sm4216728pfn.23.2018.05.10.17.44.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 10 May 2018 17:44:09 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 10 May 2018 17:43:42 -0700 Message-Id: <20180511004345.26708-17-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180511004345.26708-1-richard.henderson@linaro.org> References: <20180511004345.26708-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::242 Subject: [Qemu-devel] [PATCH 16/19] fpu/softfloat: Remove floatX_maybe_silence_nan 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, alex.bennee@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" These functions are now unused. Signed-off-by: Richard Henderson --- fpu/softfloat-specialize.h | 63 -------------------------------------- include/fpu/softfloat.h | 5 --- 2 files changed, 68 deletions(-) -- 2.17.0 diff --git a/fpu/softfloat-specialize.h b/fpu/softfloat-specialize.h index 08ab8181d5..d7033b7757 100644 --- a/fpu/softfloat-specialize.h +++ b/fpu/softfloat-specialize.h @@ -364,19 +364,6 @@ float16 float16_silence_nan(float16 a, float_status *status) #endif } -/*---------------------------------------------------------------------------- -| Returns a quiet NaN if the half-precision floating point value `a' is a -| signaling NaN; otherwise returns `a'. -*----------------------------------------------------------------------------*/ - -float16 float16_maybe_silence_nan(float16 a, float_status *status) -{ - if (float16_is_signaling_nan(a, status)) { - float16_silence_nan(a, status); - } - return a; -} - /*---------------------------------------------------------------------------- | Returns 1 if the single-precision floating-point value `a' is a quiet | NaN; otherwise returns 0. @@ -438,18 +425,6 @@ float32 float32_silence_nan(float32 a, float_status *status) } #endif } -/*---------------------------------------------------------------------------- -| Returns a quiet NaN if the single-precision floating point value `a' is a -| signaling NaN; otherwise returns `a'. -*----------------------------------------------------------------------------*/ - -float32 float32_maybe_silence_nan(float32 a, float_status *status) -{ - if (float32_is_signaling_nan(a, status)) { - float32_silence_nan(a, status); - } - return a; -} /*---------------------------------------------------------------------------- | Returns the result of converting the single-precision floating-point NaN @@ -864,18 +839,6 @@ float64 float64_silence_nan(float64 a, float_status *status) #endif } -/*---------------------------------------------------------------------------- -| Returns a quiet NaN if the double-precision floating point value `a' is a -| signaling NaN; otherwise returns `a'. -*----------------------------------------------------------------------------*/ - -float64 float64_maybe_silence_nan(float64 a, float_status *status) -{ - if (float64_is_signaling_nan(a, status)) { - return float64_silence_nan(a, status); - } - return a; -} /*---------------------------------------------------------------------------- | Returns the result of converting the double-precision floating-point NaN @@ -1037,19 +1000,6 @@ floatx80 floatx80_silence_nan(floatx80 a, float_status *status) #endif } -/*---------------------------------------------------------------------------- -| Returns a quiet NaN if the extended double-precision floating point value -| `a' is a signaling NaN; otherwise returns `a'. -*----------------------------------------------------------------------------*/ - -floatx80 floatx80_maybe_silence_nan(floatx80 a, float_status *status) -{ - if (floatx80_is_signaling_nan(a, status)) { - return floatx80_silence_nan(a, status); - } - return a; -} - /*---------------------------------------------------------------------------- | Returns the result of converting the extended double-precision floating- | point NaN `a' to the canonical NaN format. If `a' is a signaling NaN, the @@ -1204,19 +1154,6 @@ float128 float128_silence_nan(float128 a, float_status *status) #endif } -/*---------------------------------------------------------------------------- -| Returns a quiet NaN if the quadruple-precision floating point value `a' is -| a signaling NaN; otherwise returns `a'. -*----------------------------------------------------------------------------*/ - -float128 float128_maybe_silence_nan(float128 a, float_status *status) -{ - if (float128_is_signaling_nan(a, status)) { - return float128_silence_nan(a, status); - } - return a; -} - /*---------------------------------------------------------------------------- | Returns the result of converting the quadruple-precision floating-point NaN | `a' to the canonical NaN format. If `a' is a signaling NaN, the invalid diff --git a/include/fpu/softfloat.h b/include/fpu/softfloat.h index a6860e858d..69f4dbc4db 100644 --- a/include/fpu/softfloat.h +++ b/include/fpu/softfloat.h @@ -258,7 +258,6 @@ int float16_compare_quiet(float16, float16, float_status *status); int float16_is_quiet_nan(float16, float_status *status); int float16_is_signaling_nan(float16, float_status *status); float16 float16_silence_nan(float16, float_status *status); -float16 float16_maybe_silence_nan(float16, float_status *status); static inline int float16_is_any_nan(float16 a) { @@ -370,7 +369,6 @@ float32 float32_maxnummag(float32, float32, float_status *status); int float32_is_quiet_nan(float32, float_status *status); int float32_is_signaling_nan(float32, float_status *status); float32 float32_silence_nan(float32, float_status *status); -float32 float32_maybe_silence_nan(float32, float_status *status); float32 float32_scalbn(float32, int, float_status *status); static inline float32 float32_abs(float32 a) @@ -500,7 +498,6 @@ float64 float64_maxnummag(float64, float64, float_status *status); int float64_is_quiet_nan(float64 a, float_status *status); int float64_is_signaling_nan(float64, float_status *status); float64 float64_silence_nan(float64, float_status *status); -float64 float64_maybe_silence_nan(float64, float_status *status); float64 float64_scalbn(float64, int, float_status *status); static inline float64 float64_abs(float64 a) @@ -604,7 +601,6 @@ int floatx80_compare_quiet(floatx80, floatx80, float_status *status); int floatx80_is_quiet_nan(floatx80, float_status *status); int floatx80_is_signaling_nan(floatx80, float_status *status); floatx80 floatx80_silence_nan(floatx80, float_status *status); -floatx80 floatx80_maybe_silence_nan(floatx80, float_status *status); floatx80 floatx80_scalbn(floatx80, int, float_status *status); static inline floatx80 floatx80_abs(floatx80 a) @@ -816,7 +812,6 @@ int float128_compare_quiet(float128, float128, float_status *status); int float128_is_quiet_nan(float128, float_status *status); int float128_is_signaling_nan(float128, float_status *status); float128 float128_silence_nan(float128, float_status *status); -float128 float128_maybe_silence_nan(float128, float_status *status); float128 float128_scalbn(float128, int, float_status *status); static inline float128 float128_abs(float128 a)