]> Cypherpunks repositories - gostls13.git/commit
math: faster Gamma
authorCharles L. Dorian <cldorian@gmail.com>
Sat, 5 Nov 2011 19:25:36 +0000 (12:25 -0700)
committerRob Pike <r@golang.org>
Sat, 5 Nov 2011 19:25:36 +0000 (12:25 -0700)
commitc171633780923d6eb02d2bf63446797e7940f9d1
tree10bf1f2d58ccd2573b05eee38abc085490b3ad5b
parentc29cd8abb9e17c468843b097cb0d944ace6b2625
math: faster Gamma

Having the compiler count the number of array elements speeds up Gamma from 63.7 to 56.6 ns/op.

R=rsc, golang-dev, r
CC=golang-dev
https://golang.org/cl/5362043
src/pkg/math/gamma.go