1
0
mirror of https://github.com/golang/go synced 2024-10-04 08:31:22 -06:00
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
normal.go
rand_test.go math/rand: avoid use of math.Pow in tests. 2012-07-04 00:38:01 +02:00
rand.go math/rand: Intn etc. should panic if their argument is <= 0. 2012-02-18 08:53:03 +11:00
rng.go
zipf.go