From patchwork Tue May 15 22:25:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 135949 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp85729lji; Tue, 15 May 2018 15:39:41 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrrfQDctrsapyLb8/Xd53p4x0cmWDT/WEAIvBS52/YG7p//lld4mZF5z8rQFKQzqLCvjqN1 X-Received: by 2002:aed:21a3:: with SMTP id l32-v6mr15557913qtc.213.1526423981449; Tue, 15 May 2018 15:39:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526423981; cv=none; d=google.com; s=arc-20160816; b=bAhHjOKW4dFIel5izDzlAYyokXoyegdmD2TZHt5eIzCIU9md0RFVZFc9sDPHJ/AcZP 7CmqECosuvVS7DB5rygcN5c5WfoMFwFUyYDKCNbJUmGw54/2LPASvcBMHm/f163ishoD fy8Q2zUhBa3P6ixpxfLT9yzXoKHB2GIlA6JE+kpIqn3ufeaghxMmo/eiq4zfhqYv9jao Ug1egiWvYqnCIJYC6XBp83eqgRnAynDBAiDqS/2Qcrb+PSOlXndVblycMPE2PbK9vQ+Q 7v90cfSsD5ea6I4mdtE4t8pMdHGDaizPPjmn2uWIpQZk3xmAcUrnKHVvTVRdoY3/Fksb LAbA== 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:arc-authentication-results; bh=RsqR6JXjuFwzF6uI5jtDfE8pIEemv36hmgqjkM16TQs=; b=G7zLXbfHni6mWqkGccHZ2ezss4bhjJen5aYs+pyqf/XZ7YQ2ts3JcwCTh4EUF9UAb9 F8p+8ogTcCXTjE5Jbqaab0lsrNJ2KKqs5OY9K4LKHvX9RGjWd+yYf6uMFtJxFxm2yYYW veQUnmzXgSdmUKcYx8gGrITm7hoY/Ak2Tgx2hnpOCAMzs/nmYkm68BihURBr/E6NhksX dSVgVVNogz304TeAeOAL1L53pIDbffQV7ZcsjHDzNksPTxihw70fEwQRmVgHfo278JIi EVJZl25J+VyI1gCuMdqz2GCTjibcFKErye+QKly8FyblkrQYWv4Ph/M1AgL6FK/WUz4L G5Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=LGBhHPea; 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 g21-v6si1150570qki.316.2018.05.15.15.39.41 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 15 May 2018 15:39:41 -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=LGBhHPea; 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]:36379 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fIibc-0004st-NF for patch@linaro.org; Tue, 15 May 2018 18:39:40 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39726) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fIiOe-0003fV-Vk for qemu-devel@nongnu.org; Tue, 15 May 2018 18:26:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fIiOc-0007VA-SK for qemu-devel@nongnu.org; Tue, 15 May 2018 18:26:16 -0400 Received: from mail-pl0-x244.google.com ([2607:f8b0:400e:c01::244]:45624) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fIiOc-0007Lc-Hn for qemu-devel@nongnu.org; Tue, 15 May 2018 18:26:14 -0400 Received: by mail-pl0-x244.google.com with SMTP id bi12-v6so854212plb.12 for ; Tue, 15 May 2018 15:26:14 -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=RsqR6JXjuFwzF6uI5jtDfE8pIEemv36hmgqjkM16TQs=; b=LGBhHPeagXfuCO0ARHAZMKcRNaRtq6p4Rpz31E35mKotSzHt7gYBvu4tIW3d5VYnrr XlyOMpxBW2LSxG6++xm4fCxGBij0oN0QXVqBhMfio3RLTXHAk3ryl4sS2tqOmk8bMfbi mTmHiFCXIdCmaLBkcfSACiNmBrHcjQoVTMgNs= 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=RsqR6JXjuFwzF6uI5jtDfE8pIEemv36hmgqjkM16TQs=; b=F639k6vAsIMIAPQ4MCgckjMguxfE0YS8WXrXkvYrsly4f+V4G8xwqzqjuhkgaeBlKV kwUgUVKyxVcQQCrCZtfG5wNajrWWqErjMSargfaczrxCJr2gQr7dxnNtU0DTdVmQihlu jaB1Q88LmRX2JhHNnsMYSiAdmssgBQeu86o6i+M8JP3kzNKnhvDI1NCRPu9JWgCbtyPn Gzbpub4az4j/EYgDNVsEep7kWv9H4SjABSqQivErlcQeZ4PtKGDUXgcc/gQ7faDQOcHa qDIOLROYI0vtzV1ldU74LSYzle/Yei+AJJUEPZIe628CP41j3+BZ5xoxcbjXOoqX1kQm J5Bg== X-Gm-Message-State: ALKqPwc6jAF2GUrm3R4jUZxtKCvBKknVQYaTKthc2BOBCBXkyta7iFDn MGjN0mNZEDczxp3qxyH4k74EIw28utI= X-Received: by 2002:a17:902:aa94:: with SMTP id d20-v6mr16822742plr.323.1526423173136; Tue, 15 May 2018 15:26:13 -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 g11-v6sm941419pgq.62.2018.05.15.15.26.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 May 2018 15:26:12 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 15 May 2018 15:25:33 -0700 Message-Id: <20180515222540.9988-22-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180515222540.9988-1-richard.henderson@linaro.org> References: <20180515222540.9988-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:400e:c01::244 Subject: [Qemu-devel] [PATCH v6 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. Tested-by: Alex Bennée Reviewed-by: Alex Bennée 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 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)