From: Cherry Mui Date: Fri, 30 Jul 2021 17:12:27 +0000 (-0400) Subject: cmd/compile: correct a comment in uint64Tofloat X-Git-Tag: go1.18beta1~1494 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=a8aa6cfa6d41a1be17bf8d35c490f693935f81ac;p=gostls13.git cmd/compile: correct a comment in uint64Tofloat We only do z>>1 once (as it should be). Remove the extra one in the comment. Change-Id: I6fea05fe697de07e160bd686697377babcb3e4c1 Reviewed-on: https://go-review.googlesource.com/c/go/+/347400 Trust: Cherry Mui Reviewed-by: David Chase --- diff --git a/src/cmd/compile/internal/ssagen/ssa.go b/src/cmd/compile/internal/ssagen/ssa.go index 176e6438dc..c86501b88b 100644 --- a/src/cmd/compile/internal/ssagen/ssa.go +++ b/src/cmd/compile/internal/ssagen/ssa.go @@ -5808,7 +5808,6 @@ func (s *state) uint64Tofloat(cvttab *u642fcvtTab, n ir.Node, x *ssa.Value, ft, // } else { // y = uintX(x) ; y = x & 1 // z = uintX(x) ; z = z >> 1 - // z = z >> 1 // z = z | y // result = floatY(z) // result = result + result