1
0
mirror of https://github.com/golang/go synced 2024-10-04 08:21:22 -06:00
go/src/pkg/math
Russ Cox 1a936ebcfa math/rand: speed up Float32, Float64
Actually, speed up Int31n and Int63n by avoiding retry loop.

benchmark           old ns/op    new ns/op    delta
BenchmarkFloat32           32           26  -19.45%
BenchmarkFloat64           46           23  -49.47%

Fixes #7267.

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/69980047
2014-03-03 20:43:23 -05:00
..
big all: nacl import round 2 2014-02-25 17:00:08 -05:00
cmplx
rand math/rand: speed up Float32, Float64 2014-03-03 20:43:23 -05:00
abs_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
abs_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
abs_amd64p32.s all: nacl import round 2 2014-02-25 17:00:08 -05:00
abs_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
abs.go
acosh.go
all_test.go math: handle exponent separately in Log2 2012-12-20 12:23:27 -05:00
asin_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
asin_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
asin_amd64p32.s all: nacl import round 2 2014-02-25 17:00:08 -05:00
asin_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
asin.go math: the trig functions work in radians; document that 2013-10-07 16:32:47 -07:00
asinh.go
atan2_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
atan2_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
atan2_amd64p32.s all: nacl import round 2 2014-02-25 17:00:08 -05:00
atan2_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
atan2.go
atan_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
atan_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
atan_amd64p32.s all: nacl import round 2 2014-02-25 17:00:08 -05:00
atan_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
atan.go math: the trig functions work in radians; document that 2013-10-07 16:32:47 -07:00
atanh.go
bits.go all: be more idiomatic when documenting boolean return values. 2013-07-23 11:59:49 +10:00
cbrt.go
const.go
copysign.go
dim_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
dim_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
dim_amd64p32.s all: nacl import round 2 2014-02-25 17:00:08 -05:00
dim_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
dim.go
erf.go
exp2_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
exp2_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
exp2_amd64p32.s all: nacl import round 2 2014-02-25 17:00:08 -05:00
exp2_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
exp_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
exp_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
exp_amd64p32.s all: nacl import round 2 2014-02-25 17:00:08 -05:00
exp_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
exp.go
expm1_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
expm1_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
expm1_amd64p32.s all: nacl import round 2 2014-02-25 17:00:08 -05:00
expm1_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
expm1.go
export_test.go
floor_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
floor_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
floor_amd64p32.s all: nacl import round 2 2014-02-25 17:00:08 -05:00
floor_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
floor.go
frexp_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
frexp_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
frexp_amd64p32.s all: nacl import round 2 2014-02-25 17:00:08 -05:00
frexp_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
frexp.go
gamma.go
hypot_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
hypot_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
hypot_amd64p32.s all: nacl import round 2 2014-02-25 17:00:08 -05:00
hypot_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
hypot.go math: make Hypot special cases look like others 2013-03-25 17:01:40 -04:00
j0.go
j1.go
jn.go
ldexp_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
ldexp_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
ldexp_amd64p32.s all: nacl import round 2 2014-02-25 17:00:08 -05:00
ldexp_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
ldexp.go
lgamma.go
log1p_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
log1p_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
log1p_amd64p32.s all: nacl import round 2 2014-02-25 17:00:08 -05:00
log1p_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
log1p.go
log10_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
log10_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
log10_amd64p32.s all: nacl import round 2 2014-02-25 17:00:08 -05:00
log10_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
log10.go math: handle exponent separately in Log2 2012-12-20 12:23:27 -05:00
log_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
log_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
log_amd64p32.s all: nacl import round 2 2014-02-25 17:00:08 -05:00
log_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
log.go
logb.go
mod_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
mod_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
mod_amd64p32.s all: nacl import round 2 2014-02-25 17:00:08 -05:00
mod_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
mod.go
modf_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
modf_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
modf_amd64p32.s all: nacl import round 2 2014-02-25 17:00:08 -05:00
modf_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
modf.go
nextafter.go
pow10.go
pow.go
remainder_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
remainder_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
remainder_amd64p32.s all: nacl import round 2 2014-02-25 17:00:08 -05:00
remainder_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
remainder.go
signbit.go
sin_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
sin_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
sin_amd64p32.s all: nacl import round 2 2014-02-25 17:00:08 -05:00
sin_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
sin.go math: the trig functions work in radians; document that 2013-10-07 16:32:47 -07:00
sincos_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
sincos_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
sincos_amd64p32.s all: nacl import round 2 2014-02-25 17:00:08 -05:00
sincos_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
sincos.go
sinh.go
sqrt_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
sqrt_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
sqrt_amd64p32.s all: nacl import round 2 2014-02-25 17:00:08 -05:00
sqrt_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
sqrt.go math: remove repeated comment. 2013-03-22 14:54:20 +11:00
tan_386.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
tan_amd64.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
tan_amd64p32.s all: nacl import round 2 2014-02-25 17:00:08 -05:00
tan_arm.s math: convert textflags from numbers to symbols 2013-08-12 10:25:18 -07:00
tan.go math: the trig functions work in radians; document that 2013-10-07 16:32:47 -07:00
tanh.go math: modify a comment to the convention format. 2013-03-25 08:43:51 -07:00
unsafe.go