]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1] runtime: replace runtime·rnd function with ROUND macro
authorRuss Cox <rsc@golang.org>
Fri, 21 Sep 2012 19:53:37 +0000 (05:53 +1000)
committerRuss Cox <rsc@golang.org>
Fri, 21 Sep 2012 19:53:37 +0000 (05:53 +1000)
commit63608ff3be2a8304467301d1660fa1b65a9297ba
treee4b0d1ba07cac50692075d5d06b484220a88dff0
parent1f107b58f7fdac2daf5567673b25a05766b4f29c
[release-branch.go1] runtime: replace runtime·rnd function with ROUND macro

««« backport 722bb90ae3ee
runtime: replace runtime·rnd function with ROUND macro

It's sad to introduce a new macro, but rnd shows up consistently
in profiles, and the function call overwhelms the two arithmetic
instructions it performs.

R=r
CC=golang-dev
https://golang.org/cl/6260051

»»»
src/cmd/gc/reflect.c
src/pkg/runtime/chan.c
src/pkg/runtime/hashmap.c
src/pkg/runtime/iface.c
src/pkg/runtime/print.c
src/pkg/runtime/runtime.c
src/pkg/runtime/runtime.h