]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/internal/ssa: fix typo in comment
authorguoguangwu <guoguangwug@gmail.com>
Fri, 22 Mar 2024 06:17:00 +0000 (06:17 +0000)
committerGopher Robot <gobot@golang.org>
Tue, 26 Mar 2024 19:58:25 +0000 (19:58 +0000)
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 <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>
src/cmd/compile/internal/ssa/magic.go

index 235b0e5e5c6aa302a8b7da225c17f8c827c6bd38..29a57fb3cc3543218eddbcdfaec25e0f1a3d1c1c 100644 (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.