1
0
mirror of https://github.com/golang/go synced 2024-11-20 05:54:43 -07:00
go/src/pkg
Russ Cox f64bb56bae rand: add explicit Int31n to avoid 64-bit divide on 32-bit machines
use Int31n in Intn when possible.

Fixes #390.

(using 8g)
Intn1000      50000000         38 ns/op
Int31n1000    50000000         39 ns/op
Int63n1000    20000000        114 ns/op

R=r
CC=golang-dev, skybrian
https://golang.org/cl/180054
2009-12-15 17:21:34 -08:00
..
archive/tar 1) Change default gofmt default settings for 2009-12-15 15:33:31 -08:00
asn1 1) Change default gofmt default settings for 2009-12-15 15:33:31 -08:00
big 1) Change default gofmt default settings for 2009-12-15 15:33:31 -08:00
bignum 1) Change default gofmt default settings for 2009-12-15 15:33:31 -08:00
bufio 1) Change default gofmt default settings for 2009-12-15 15:33:31 -08:00
bytes 1) Change default gofmt default settings for 2009-12-15 15:33:31 -08:00
compress 1) Change default gofmt default settings for 2009-12-15 15:33:31 -08:00
container 1) Change default gofmt default settings for 2009-12-15 15:33:31 -08:00
crypto 1) Change default gofmt default settings for 2009-12-15 15:33:31 -08:00
debug 1) Change default gofmt default settings for 2009-12-15 15:27:16 -08:00
ebnf 1) Change default gofmt default settings for 2009-12-15 15:27:16 -08:00
encoding 1) Change default gofmt default settings for 2009-12-15 15:27:16 -08:00
exec 1) Change default gofmt default settings for 2009-12-15 15:27:16 -08:00
exp 1) Change default gofmt default settings for 2009-12-15 15:27:16 -08:00
expvar 1) Change default gofmt default settings for 2009-12-15 15:27:16 -08:00
flag 1) Change default gofmt default settings for 2009-12-15 15:27:16 -08:00
fmt 1) Change default gofmt default settings for 2009-12-15 15:27:16 -08:00
go 1) Change default gofmt default settings for 2009-12-15 15:35:38 -08:00
gob 1) Change default gofmt default settings for 2009-12-15 15:35:38 -08:00
hash 1) Change default gofmt default settings for 2009-12-15 15:35:38 -08:00
http Add basic http authentication support. 2009-12-15 16:27:45 -08:00
image 1) Change default gofmt default settings for 2009-12-15 15:35:38 -08:00
io 1) Change default gofmt default settings for 2009-12-15 15:35:38 -08:00
json 1) Change default gofmt default settings for 2009-12-15 15:35:38 -08:00
log 1) Change default gofmt default settings for 2009-12-15 15:35:38 -08:00
malloc 1) Change default gofmt default settings for 2009-12-15 15:35:38 -08:00
math math: faster, easier to inline IsNaN, IsInf 2009-12-15 17:21:01 -08:00
net 1) Change default gofmt default settings for 2009-12-15 15:35:38 -08:00
once 1) Change default gofmt default settings for 2009-12-15 15:40:16 -08:00
os 1) Change default gofmt default settings for 2009-12-15 15:40:16 -08:00
patch 1) Change default gofmt default settings for 2009-12-15 15:40:16 -08:00
path 1) Change default gofmt default settings for 2009-12-15 15:40:16 -08:00
rand rand: add explicit Int31n to avoid 64-bit divide on 32-bit machines 2009-12-15 17:21:34 -08:00
reflect 1) Change default gofmt default settings for 2009-12-15 15:40:16 -08:00
regexp 1) Change default gofmt default settings for 2009-12-15 15:40:16 -08:00
rpc 1) Change default gofmt default settings for 2009-12-15 15:40:16 -08:00
runtime runtime: return zero value in x, ok = <-c when ok == false 2009-12-15 16:59:23 -08:00
sort 1) Change default gofmt default settings for 2009-12-15 15:40:16 -08:00
strconv 1) Change default gofmt default settings for 2009-12-15 15:40:16 -08:00
strings 1) Change default gofmt default settings for 2009-12-15 15:40:16 -08:00
sync 1) Change default gofmt default settings for 2009-12-15 15:40:16 -08:00
syscall 1) Change default gofmt default settings for 2009-12-15 15:40:16 -08:00
syslog 1) Change default gofmt default settings for 2009-12-15 15:41:46 -08:00
tabwriter 1) Change default gofmt default settings for 2009-12-15 15:41:46 -08:00
template 1) Change default gofmt default settings for 2009-12-15 15:41:46 -08:00
testing 1) Change default gofmt default settings for 2009-12-15 15:41:46 -08:00
time 1) Change default gofmt default settings for 2009-12-15 15:41:46 -08:00
unicode 1) Change default gofmt default settings for 2009-12-15 15:41:46 -08:00
unsafe runtime: introduce unsafe.New and unsafe.NewArray 2009-12-07 15:51:58 -08:00
utf8 1) Change default gofmt default settings for 2009-12-15 15:41:46 -08:00
websocket 1) Change default gofmt default settings for 2009-12-15 15:41:46 -08:00
xgb 1) Change default gofmt default settings for 2009-12-15 15:41:46 -08:00
xml 1) Change default gofmt default settings for 2009-12-15 15:41:46 -08:00
deps.bash Build changes to support work on the BSDs. 2009-11-14 15:29:09 -08:00
Makefile crypto/sha256: new package 2009-12-14 15:09:49 -08:00