From nobody Sat Nov 1 08:17:30 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1526336823205941.7621600184655; Mon, 14 May 2018 15:27:03 -0700 (PDT) Received: from localhost ([::1]:49962 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fILvq-0003Iq-BQ for importer@patchew.org; Mon, 14 May 2018 18:27:02 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52627) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fILiB-0008EQ-92 for qemu-devel@nongnu.org; Mon, 14 May 2018 18:12:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fILi8-0008I9-A2 for qemu-devel@nongnu.org; Mon, 14 May 2018 18:12:55 -0400 Received: from mail-pg0-x241.google.com ([2607:f8b0:400e:c05::241]:36603) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fILi8-0008Fm-1U for qemu-devel@nongnu.org; Mon, 14 May 2018 18:12:52 -0400 Received: by mail-pg0-x241.google.com with SMTP id z70-v6so6065203pgz.3 for ; Mon, 14 May 2018 15:12:52 -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 y2-v6sm14512457pgp.92.2018.05.14.15.12.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 May 2018 15:12:50 -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=B0Uh1jzxOOh72JWGxxTuSXYGeNK1unJxmboGYXUn8YQ=; b=kwLuUYqelCeApgC2/82EFw58JgRfdbcIjaK/LV/qGFf+PZ2hrnrnS4UCPKPUePqt4J vaIZAs3R6Sx4Pwv06v5+pR8VZ/DGhpQWpF003+CKO5TQhQ2YqoIWW+or1tZXerfA81Nn 4vBlR1cx8F8yzZs58sf8WDhMzmLzUUGRV4zGc= 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=B0Uh1jzxOOh72JWGxxTuSXYGeNK1unJxmboGYXUn8YQ=; b=TLjrZlyjb1f0D7AUWfj6pLgibLbIoV3eOK47vpT6kApRxURxLmTvj5v9qzjwHxd5mm nXZLLQmXno8MxAT7zWEkZYht7Resc889T3gglR10fsZKZZPfln1aVOJFu8xYFtherkU3 q4b0c80lgwCDhk7z8RGmZUjUBm/MtA7t8POaKgbjFOtOPI8MOG7/K+FYNsh2JE5u/lJM 7wSM+bLNtTGd0+SDGybIW9rkS6EQZuE8TbgjkfVWYpYvl2pb7+K/GeZO6hYuYo1W2xZS XSNYdi5EfYOLE0O/e3Z28bqcIjtbt1PwM0LYup96n+IjeMuaNlN6vvhIh/2f7x+Xrwf/ HxYA== X-Gm-Message-State: ALKqPwcfIRFt98ymgN2VV7V6MELuUdL86H0SWLA3xCldFDdTfy1F5Vtj lSY+1m/2YTZIbAq4bk+CEbmKe3EuVxk= X-Google-Smtp-Source: AB8JxZpmYqDabqfvhmeLF68htb2yVcWX/VJeXj6fKdbEH2Fo91bsioHyn+jY/z+pzMU32AVoS0baIQ== X-Received: by 2002:a65:414c:: with SMTP id x12-v6mr9951469pgp.70.1526335970843; Mon, 14 May 2018 15:12:50 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Mon, 14 May 2018 15:12:12 -0700 Message-Id: <20180514221219.7091-22-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180514221219.7091-1-richard.henderson@linaro.org> References: <20180514221219.7091-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::241 Subject: [Qemu-devel] [PATCH v5 21/28] 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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" These functions are now unused. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson Reviewed-by: Alex Benn=C3=A9e --- fpu/softfloat-specialize.h | 63 -------------------------------------- include/fpu/softfloat.h | 5 --- 2 files changed, 68 deletions(-) diff --git a/fpu/softfloat-specialize.h b/fpu/softfloat-specialize.h index 4fa068a5dc..d7033b7757 100644 --- a/fpu/softfloat-specialize.h +++ b/fpu/softfloat-specialize.h @@ -364,19 +364,6 @@ float16 float16_silence_nan(float16 a, float_status *s= tatus) #endif } =20 -/*------------------------------------------------------------------------= ---- -| 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)) { - return 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 *s= tatus) } #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)) { - return float32_silence_nan(a, status); - } - return a; -} =20 /*------------------------------------------------------------------------= ---- | Returns the result of converting the single-precision floating-point NaN @@ -864,18 +839,6 @@ float64 float64_silence_nan(float64 a, float_status *s= tatus) #endif } =20 -/*------------------------------------------------------------------------= ---- -| 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; -} =20 /*------------------------------------------------------------------------= ---- | Returns the result of converting the double-precision floating-point NaN @@ -1037,19 +1000,6 @@ floatx80 floatx80_silence_nan(floatx80 a, float_stat= us *status) #endif } =20 -/*------------------------------------------------------------------------= ---- -| 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, t= he @@ -1204,19 +1154,6 @@ float128 float128_silence_nan(float128 a, float_stat= us *status) #endif } =20 -/*------------------------------------------------------------------------= ---- -| 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_statu= s *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); =20 static inline int float16_is_any_nan(float16 a) { @@ -370,7 +369,6 @@ float32 float32_maxnummag(float32, float32, float_statu= s *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); =20 static inline float32 float32_abs(float32 a) @@ -500,7 +498,6 @@ float64 float64_maxnummag(float64, float64, float_statu= s *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); =20 static inline float64 float64_abs(float64 a) @@ -604,7 +601,6 @@ int floatx80_compare_quiet(floatx80, floatx80, float_st= atus *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); =20 static inline floatx80 floatx80_abs(floatx80 a) @@ -816,7 +812,6 @@ int float128_compare_quiet(float128, float128, float_st= atus *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); =20 static inline float128 float128_abs(float128 a) --=20 2.17.0