From: guoguangwu Date: Fri, 22 Mar 2024 06:17:00 +0000 (+0000) Subject: cmd/internal/ssa: fix typo in comment X-Git-Tag: go1.23rc1~764 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4217877670e94b88ddd1ee1041b31d5825b08e2a;p=gostls13.git cmd/internal/ssa: fix typo in comment Change-Id: Ib66830792ebb15538596f4bf4a51d2b3f05c7fe7 GitHub-Last-Rev: 947445916abc91331f51e29c0541c510bd9c623c GitHub-Pull-Request: golang/go#66460 Reviewed-on: https://go-review.googlesource.com/c/go/+/573557 LUCI-TryBot-Result: Go LUCI Auto-Submit: Keith Randall Reviewed-by: Keith Randall Reviewed-by: Than McIntosh Reviewed-by: Keith Randall --- diff --git a/src/cmd/compile/internal/ssa/magic.go b/src/cmd/compile/internal/ssa/magic.go index 235b0e5e5c..29a57fb3cc 100644 --- a/src/cmd/compile/internal/ssa/magic.go +++ b/src/cmd/compile/internal/ssa/magic.go @@ -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.