go/src/pkg/math/rand
Rémy Oudompheng 1a0a09dafe math/rand: avoid use of math.Pow in tests.
The use of math.Pow for mere squaring can be extremely
slow on soft-float ARM. Even on systems with hardware
floating-point, a speedup in test duration is observed.

On amd64
Before: ok      math/rand       2.009s
After:  ok      math/rand       0.340s

Fixes #3740.

R=dave, golang-dev, r, r
CC=golang-dev
https://golang.org/cl/6348061
2012-07-04 00:38:01 +02:00
..
exp.go html,log,math: renamings 2011-11-03 12:42:57 -07:00
normal.go html,log,math: renamings 2011-11-03 12:42:57 -07:00
rand.go math/rand: Intn etc. should panic if their argument is <= 0. 2012-02-18 08:53:03 +11:00
rand_test.go math/rand: avoid use of math.Pow in tests. 2012-07-04 00:38:01 +02:00
rng.go html,log,math: renamings 2011-11-03 12:42:57 -07:00
zipf.go html,log,math: renamings 2011-11-03 12:42:57 -07:00