From patchwork Mon May 14 22:12:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 135776 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp197613lji; Mon, 14 May 2018 15:27:50 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrBxroapWcoAnyWUMAELTtwDUbPISq8/xKshpvc+LXV2r8am3ab8lGkvZp9rbt9lwQkuunP X-Received: by 2002:a0c:92af:: with SMTP id b44-v6mr11083076qvb.169.1526336870725; Mon, 14 May 2018 15:27:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526336870; cv=none; d=google.com; s=arc-20160816; b=DKR+YyjrVDV/RfKkKAym7gLTxbhKJ8zW6Cg+OT2/cLCbT30/LgwD8B8WvdTZKWiUng x0n/lJv6Xh2cDfFsUQdvMRPkwW8LKcbdN1/+9V3WSn+STnoka/hwPVaGqk8fnFlMTshH jN+W3Z2pPpUok17FKVz4I/XzDj5OYRxYdODAsy9i3cSmq9sZ2/fQd+vlkk1or0IRoRKH Kz6YMj/3imeCia+BAUCYZn2gS478CCAAAXXAgOBGIIsXMp1cl1Aay25A7GIEKR9UwkWf izJxH7crKBmRwr8JlJS8Y3jwSTCCqq6dEvQrpIB2PPF7MnzUA9mez7Zh7dDE9WSSPKm7 gkCA== 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=B0Uh1jzxOOh72JWGxxTuSXYGeNK1unJxmboGYXUn8YQ=; b=g5sihqyybfXHvlrv/EGslIXU99gyd/+CUh0QclUEqV4wZPx1wy6hoPJwTHa/8/FvRN 8Zo+T6tyRSwuPyj93MOgOsG3GyPE2rlwGI2iymZfm9iIrDi6KElhyFDleucQpAEIvAw7 MH251fy2OAz6c6KMyf5lkgThzcPge/VTxP4SyMILLIRlmyKKYZr3yYl/H3oJmOwbMbQx N5iyz8bJOHK2HOUUhJvCAfdMk51iaRFvfXXLnD1cc1jI+IzLB5qomnyCP7OPssMb7zuK S+wTmDIZtZrdnKgfJfQ82wa9OqOk9JA/UR3mCWYchpf/7XZVFOHu50QdDfbg6Ctu8csD H9AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=kwLuUYqe; 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 y67-v6si4049553qky.323.2018.05.14.15.27.50 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 14 May 2018 15:27:50 -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=kwLuUYqe; 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]:49962 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fILwc-0003Iq-4L for patch@linaro.org; Mon, 14 May 2018 18:27:50 -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) 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-Received: by 2002:a65:414c:: with SMTP id x12-v6mr9951469pgp.70.1526335970843; Mon, 14 May 2018 15:12:50 -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) 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+patch=linaro.org@nongnu.org Sender: "Qemu-devel" These functions are now unused. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- fpu/softfloat-specialize.h | 63 -------------------------------------- include/fpu/softfloat.h | 5 --- 2 files changed, 68 deletions(-) -- 2.17.0 Reviewed-by: Alex Bennée 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 *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)) { - 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 *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)) { - return 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)