1
0
mirror of https://github.com/golang/go synced 2024-11-18 11:55:01 -07:00
go/src
Mohit Agarwal 7eed848a17 math: speed up Gamma(+Inf)
Add special case for Gamma(+∞) which speeds it up:

benchmark            old ns/op     new ns/op     delta
BenchmarkGamma-4     14.5          7.44          -48.69%

The documentation for math.Gamma already specifies it as a special
case:

        Gamma(+Inf) = +Inf

The original C code that has been used as the reference implementation
(as mentioned in the comments in gamma.go) also treats Gamma(+∞) as a
special case:

if( x == INFINITY )
        return(x);

Change-Id: Idac36e19192b440475aec0796faa2d2c7f8abe0b
Reviewed-on: https://go-review.googlesource.com/31370
Reviewed-by: Robert Griesemer <gri@golang.org>
2016-10-18 22:12:03 +00:00
..
archive archive/tar: reduce allocations in formatOctal 2016-10-12 21:27:51 +00:00
bufio bufio: read from underlying reader at most once in Read 2016-10-18 12:56:55 +00:00
builtin
bytes bytes: encode size of rune read by ReadRune into lastRead to speed up UnreadRune 2016-10-17 06:00:35 +00:00
cmd cmd/go: print more env variables in "go env" 2016-10-18 20:24:45 +00:00
compress compress/flate: use correct table for size estimation 2016-10-17 09:00:41 +00:00
container
context
crypto crypto/tls: enable ChaCha20-Poly1305 cipher suites by default. 2016-10-18 06:54:30 +00:00
database/sql database/sql: support returning query database types 2016-10-18 10:52:57 +00:00
debug cmd/dist: use debug/pe directly for cmd/link 2016-10-17 15:22:17 +00:00
encoding encoding/xml: add wildcard support for collecting all attributes 2016-10-18 12:59:41 +00:00
errors
expvar expvar: add Value methods 2016-10-13 21:39:03 +00:00
flag
fmt fmt: always handle special methods if print operand is a reflect.Value 2016-10-18 10:50:26 +00:00
go crypto/tls: support ChaCha20-Poly1305. 2016-10-17 21:05:26 +00:00
hash
html html/template: fix Clone so that t.Lookup(t.Name()) yields t 2016-10-17 00:35:20 +00:00
image
index/suffixarray
internal os: use FindFirstFile when GetFileAttributesEx fails in Stat 2016-10-14 03:58:15 +00:00
io io: clarify Pipe docs 2016-10-18 12:53:56 +00:00
log
math math: speed up Gamma(+Inf) 2016-10-18 22:12:03 +00:00
mime
net net/http: update test to check Content-Length 0 Body more reliably 2016-10-18 21:53:31 +00:00
os os/exec: allow simultaneous cmd.Wait and Write of cmd.StdinPipe 2016-10-18 12:48:03 +00:00
path path/filepath: simplify TestToNorm 2016-10-16 09:21:57 +00:00
plugin
reflect runtime: fix getArgInfo for deferred reflection calls 2016-10-17 18:57:01 +00:00
regexp
runtime Revert "cmd/compile: inline convI2E" 2016-10-17 20:37:19 +00:00
sort
strconv strconv: strip \r in raw strings passed to Unquote 2016-10-17 18:34:02 +00:00
strings strings: use Index in Count 2016-10-15 16:39:31 +00:00
sync
syscall syscall, net: make deadline changes affect blocked read/write calls on nacl 2016-10-17 05:53:00 +00:00
testing testing: document that Skip cannot undo Error 2016-10-18 12:56:20 +00:00
text
time time: revise Timer comments for Stop, Reset 2016-10-18 12:55:24 +00:00
unicode runtime: speed up non-ASCII rune decoding 2016-10-17 11:25:22 +00:00
unsafe
vendor/golang_org/x vendor: update golang.org/x/crypto/chacha20poly1305 2016-10-17 21:05:08 +00:00
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
iostest.bash
make.bash
make.bat
Make.dist
make.rc
naclmake.bash
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc