mirror of https://github.com/golang/go.git
cmd/internal/ssa: fix typo in comment
Signed-off-by: guoguangwu <guoguangwug@gmail.com>
This commit is contained in:
parent
a6ecdf29e3
commit
947445916a
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue