From patchwork Sat May 12 00:43:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 135604 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1574284lji; Fri, 11 May 2018 17:58:33 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrErvkfiO0v2cJZ+/v4p78Zz9lRuv6t8L7+VlvdbJhyyKBPCmy0oWUbOfzJ65rpkoFYepzq X-Received: by 2002:ac8:2ff6:: with SMTP id m51-v6mr263249qta.265.1526086712968; Fri, 11 May 2018 17:58:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526086712; cv=none; d=google.com; s=arc-20160816; b=rifQ7Lz0/2/D1qr/ZON3anz+MXNPP0sZP9dvsFktPFy1Fcds9YltZUvB4yKH2pZPhH BPAXyNxWTRn4iNUh/a7YoyKupIW/MjlPjt7Sj9s7oZCJEDlpDSHosPZTymYW7bchLC2b 65fcMoL91lyFzmDxh55cjhQUWbbR60gCGiSAMSmsg1IUwPkz6CXai/m/odBnufUn1Phf +vXOXAQgb7Ovgod1ZHiqb0HLndfcsIDzczfC7Smo8+q7+KvE+cmxZ27jfKj5H+VnnSp+ M8kQzj+FBZNuUpwRBDh1Y6Zssqx6V69IeQAGy+xxz57w8RCMcOxkcfTGrwVTDxy5O6Qk EsUg== 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=wSDugTm/teP2CrsF2OH5tXaB6LTtiIgxQPsaPiD/oxM=; b=eaTAkbYCiDCWPvrotbjIa7td1XgVzBvx6AptkCiCyW2Ghj6MvmTpwO231xYQnX/C2x HiKG6GyyLQJdrxa8boji64XAHYXgRgTNzd8SlVQ6cwyByQNIYmCTADc8BPEm8O094M5w v/5+hdd6VRtn9raPShoDMZiaaV/19RYh6pgSdrowmXVsXidkdEoOoFzLUtFqbd0zpTcW SBw9YFv2OjLIEBAkAhr/dCnGrUqPaVUpGZUE7tLDSBZxPC79C4lecqVaSNRWOcz3M2Me Ha2jHCdRfdJNQAUm5lc2Gj9p86Pajd8+DoIvSukxbBrAAJxleXjx/ggWDCCKWqiVN4sr 5U8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=IHvpkdR0; 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 i20-v6si463904qti.354.2018.05.11.17.58.32 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 11 May 2018 17:58:32 -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=IHvpkdR0; 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]:59567 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fHIro-0006ol-Fc for patch@linaro.org; Fri, 11 May 2018 20:58:32 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33612) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fHIdY-00057q-MW for qemu-devel@nongnu.org; Fri, 11 May 2018 20:43:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fHIdX-00030W-Cd for qemu-devel@nongnu.org; Fri, 11 May 2018 20:43:48 -0400 Received: from mail-pl0-x241.google.com ([2607:f8b0:400e:c01::241]:39259) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fHIdX-00030I-3z for qemu-devel@nongnu.org; Fri, 11 May 2018 20:43:47 -0400 Received: by mail-pl0-x241.google.com with SMTP id c19-v6so4145680pls.6 for ; Fri, 11 May 2018 17:43:46 -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=wSDugTm/teP2CrsF2OH5tXaB6LTtiIgxQPsaPiD/oxM=; b=IHvpkdR0C1zA1c8IDCcLnQltW26MdGafW8cIHfkARWj+S/th9o3Ntn8wVeCL1Knzi+ ZZjMDOkZLaPp9HIvUgXMdl9uX/tnZrKA0BoxQcGYVUfSJVLgS1xusdBb3TPtVWL3eXVn AL744844rPvNJJf9/TQLMdzif8Kw1WIDGGRvs= 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=wSDugTm/teP2CrsF2OH5tXaB6LTtiIgxQPsaPiD/oxM=; b=TtJtPuDT+ESgJZwIC5IBG/afHwNc7nVY5ji7DUVFFlLLDvj18ZjaPIDN/+l8Yt136J 1fnacqJ//NbU+gm29lH/N3+zCnQzumxw2xiXSjUkJwpXUbE0br7jkoIulb+6O6eHQgKB fygnbXjNNEHbZoPuRQaGUgrPDWHCBkoWv2VRmPoTo5Dvyy8+LsVT6ofv6HPnDW6XP/0C nnyVep2D8HLujjFqOB6tbPYiJkG97QSiQc4FxGK/KDtx13ddm3kOjML7aE6yXz0ryoMq xYvGV11aW0Ci/W+AQkg3iAExuA+5xXHGXyhDa2b4cpaSZ5gB/gJTtIm2k56n17KIfU3/ QHqw== X-Gm-Message-State: ALKqPwcKOuaCk3WhyVwdW1hpb4vF8befMtjy/iYHty6ISyBgmd+NSBgS HCaRpdThlY2l/TckH7QL2xGbA8MyNSQ= X-Received: by 2002:a17:902:7444:: with SMTP id e4-v6mr260515plt.225.1526085825667; Fri, 11 May 2018 17:43:45 -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 k84-v6sm10756406pfh.93.2018.05.11.17.43.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 11 May 2018 17:43:44 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 11 May 2018 17:43:07 -0700 Message-Id: <20180512004311.9299-24-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180512004311.9299-1-richard.henderson@linaro.org> References: <20180512004311.9299-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:c01::241 Subject: [Qemu-devel] [PATCH v2 23/27] 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 Reviewed-by: Peter Maydell 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)