]> Cypherpunks repositories - gostls13.git/commit
runtime: replace runtime·rnd function with ROUND macro
authorRuss Cox <rsc@golang.org>
Tue, 29 May 2012 18:02:29 +0000 (14:02 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 29 May 2012 18:02:29 +0000 (14:02 -0400)
commit6dbaa206fbe7345fac181ec3d91a4157d5532fbd
tree204ab4c0484f2f4febe859e9f3bd83723ea2e9d1
parent90d59c586197a2300188206e4bbe99bb714e1833
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