mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: remove go prefix from a few routines
They are no longer needed now that C is gone. goatoi -> atoi gofuncname/funcname -> funcname/cfuncname goroundupsize -> already existing roundupsize Change-Id: I278bc33d279e1fdc5e8a2a04e961c4c1573b28c7 Reviewed-on: https://go-review.googlesource.com/2154 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Minux Ma <minux@golang.org>
This commit is contained in:
parent
ab0535ae3f
commit
0bb8fc6614
12 changed files with 35 additions and 49 deletions
|
|
@ -76,7 +76,7 @@ func growslice(t *slicetype, old sliceStruct, n int64) sliceStruct {
|
|||
panic(errorString("growslice: cap out of range"))
|
||||
}
|
||||
lenmem := uintptr(old.len) * uintptr(et.size)
|
||||
capmem := goroundupsize(uintptr(newcap) * uintptr(et.size))
|
||||
capmem := roundupsize(uintptr(newcap) * uintptr(et.size))
|
||||
newcap = int(capmem / uintptr(et.size))
|
||||
var p unsafe.Pointer
|
||||
if et.kind&kindNoPointers != 0 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue