Skip to content

Commit a8aa6cf

Browse files
committed
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 <[email protected]> Reviewed-by: David Chase <[email protected]>
1 parent 58244ee commit a8aa6cf

File tree

1 file changed

+0
-1
lines changed
  • src/cmd/compile/internal/ssagen

1 file changed

+0
-1
lines changed

src/cmd/compile/internal/ssagen/ssa.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5808,7 +5808,6 @@ func (s *state) uint64Tofloat(cvttab *u642fcvtTab, n ir.Node, x *ssa.Value, ft,
58085808
// } else {
58095809
// y = uintX(x) ; y = x & 1
58105810
// z = uintX(x) ; z = z >> 1
5811-
// z = z >> 1
58125811
// z = z | y
58135812
// result = floatY(z)
58145813
// result = result + result

0 commit comments

Comments
 (0)