1
0
mirror of https://github.com/golang/go synced 2024-11-15 05:40:32 -07:00

cmd/internal/ssa: fix typo in comment

Change-Id: Ib66830792ebb15538596f4bf4a51d2b3f05c7fe7
GitHub-Last-Rev: 947445916a
GitHub-Pull-Request: golang/go#66460
Reviewed-on: https://go-review.googlesource.com/c/go/+/573557
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Keith Randall <khr@google.com>
This commit is contained in:
guoguangwu 2024-03-22 06:17:00 +00:00 committed by Gopher Robot
parent 8bf9f4bb66
commit 4217877670

View File

@ -267,7 +267,7 @@ func smagic64(c int64) smagicData { return smagic(64, c) }
//
// Where d0*2^k was replaced by c on the right hand side.
// udivisibleOK reports whether we should strength reduce an unsigned n-bit divisibilty check by c.
// udivisibleOK reports whether we should strength reduce an unsigned n-bit divisibility check by c.
func udivisibleOK(n uint, c int64) bool {
// Convert from ConstX auxint values to the real uint64 constant they represent.
d := uint64(c) << (64 - n) >> (64 - n)
@ -369,7 +369,7 @@ func udivisible64(c int64) udivisibleData { return udivisible(64, c) }
// Note that the calculation is performed using unsigned integers.
// Since a' can have n-1 bits, 2a' may have n bits and there is no risk of overflow.
// sdivisibleOK reports whether we should strength reduce a signed n-bit divisibilty check by c.
// sdivisibleOK reports whether we should strength reduce a signed n-bit divisibility check by c.
func sdivisibleOK(n uint, c int64) bool {
if c < 0 {
// Doesn't work for negative c.