From: Caleb Spare Date: Fri, 23 Oct 2015 21:49:56 +0000 (-0700) Subject: runtime: copy sqrt normalization bugfix from math X-Git-Tag: go1.6beta1~724 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=fb7178e7cc219062efe7d5da5df4f85b01b0f8ac;p=gostls13.git runtime: copy sqrt normalization bugfix from math This copies the change from CL 16158 (applied as 22d4c8bf13d5edf4670dbdaf0854d653d9c2b81a). Updates #13013 Change-Id: Id7d02e63d92806f06a4e064a91b2fb6574fe385f Reviewed-on: https://go-review.googlesource.com/16291 Reviewed-by: Minux Ma Run-TryBot: Minux Ma TryBot-Result: Gobot Gobot --- diff --git a/src/runtime/sqrt.go b/src/runtime/sqrt.go index 7452a61f3c..1b130e3b01 100644 --- a/src/runtime/sqrt.go +++ b/src/runtime/sqrt.go @@ -117,7 +117,7 @@ func sqrt(ix uint64) uint64 { // normalize x exp := int((ix >> float64Shift) & float64Mask) if exp == 0 { // subnormal x - for ix&1<