]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: correct a comment in uint64Tofloat
authorCherry Mui <cherryyz@google.com>
Fri, 30 Jul 2021 17:12:27 +0000 (13:12 -0400)
committerCherry Mui <cherryyz@google.com>
Thu, 2 Sep 2021 19:36:22 +0000 (19:36 +0000)
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 <cherryyz@google.com>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/ssagen/ssa.go

index 176e6438dc5c8dc2345a75787a09e5f28afb70da..c86501b88b31223c481bf085c253606659a71f45 100644 (file)
@@ -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