From: surechen Date: Wed, 6 May 2020 12:04:35 +0000 (+0800) Subject: math: Remove redundant local variable Ln2 X-Git-Tag: go1.16beta1~986 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=73eb24ccb6d8dd2cf9dd807acf69987a05e8d142;p=gostls13.git math: Remove redundant local variable Ln2 Use the const variable Ln2 in math/const.go for function acosh. Change-Id: I5381d03dd3142c227ae5773ece9be6c8f377615e Reviewed-on: https://go-review.googlesource.com/c/go/+/232517 Reviewed-by: Robert Griesemer Trust: Robert Griesemer Trust: Giovanni Bajo --- diff --git a/src/math/acosh.go b/src/math/acosh.go index cc8195ce32..41ca87123c 100644 --- a/src/math/acosh.go +++ b/src/math/acosh.go @@ -42,10 +42,7 @@ package math func Acosh(x float64) float64 func acosh(x float64) float64 { - const ( - Ln2 = 6.93147180559945286227e-01 // 0x3FE62E42FEFA39EF - Large = 1 << 28 // 2**28 - ) + const Large = 1 << 28 // 2**28 // first case is special case switch { case x < 1 || IsNaN(x):