mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: change sys.PtrSize to goarch.PtrSize in comments
The code was updated, the comments were not. Change-Id: If387779f3abd5e8a1b487fe34c33dcf9ce5fa7ff Reviewed-on: https://go-review.googlesource.com/c/go/+/383495 Trust: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Michael Knyszek <mknyszek@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
parent
7c9885def5
commit
d588f48770
5 changed files with 10 additions and 10 deletions
|
|
@ -214,7 +214,7 @@ func growslice(et *_type, old slice, cap int) slice {
|
|||
var lenmem, newlenmem, capmem uintptr
|
||||
// Specialize for common values of et.size.
|
||||
// For 1 we don't need any division/multiplication.
|
||||
// For sys.PtrSize, compiler will optimize division/multiplication into a shift by a constant.
|
||||
// For goarch.PtrSize, compiler will optimize division/multiplication into a shift by a constant.
|
||||
// For powers of 2, use a variable shift.
|
||||
switch {
|
||||
case et.size == 1:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue