Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
Benchmark of exp to 28 ns/op from 64 ns/op,
on 2.53GHz Intel Core 2 Duo.
R=rsc
CC=golang-dev
http://codereview.appspot.com/1594041
Committer: Russ Cox <rsc@golang.org>
|
|
Was timing Exp, not Exp2.
R=rsc, r
CC=golang-dev
http://codereview.appspot.com/1521042
Committer: Rob Pike <r@golang.org>
|
|
Also added more tests for acosh, hypot, log, log10, log2
in all_test.go.
R=rsc
CC=golang-dev
http://codereview.appspot.com/1417041
Committer: Russ Cox <rsc@golang.org>
|
|
IEEE 754 says: sqrt(-0) = -0
R=rsc
CC=golang-dev
http://codereview.appspot.com/1098041
Committer: Russ Cox <rsc@golang.org>
|
|
R=rsc
CC=golang-dev
http://codereview.appspot.com/937042
Committer: Russ Cox <rsc@golang.org>
|
|
Added Signbit(), revised Copysign()
R=rsc
CC=golang-dev
http://codereview.appspot.com/822045
Committer: Russ Cox <rsc@golang.org>
|
|
Also amend j0.go (variable name conflict, small corrections).
R=rsc
CC=golang-dev
http://codereview.appspot.com/769041
Committer: Russ Cox <rsc@golang.org>
|
|
R=rsc
CC=golang-dev
http://codereview.appspot.com/661044
Committer: Russ Cox <rsc@golang.org>
|
|
R=rsc
CC=golang-dev
http://codereview.appspot.com/649041
Committer: Russ Cox <rsc@golang.org>
|
|
Use hardware sqrt for faster hypot; preserve software-only
hypot as hypotGo (like sqrtGo); enable benchmarking of
hypotGo.
R=rsc
CC=golang-dev
http://codereview.appspot.com/229049
Committer: Russ Cox <rsc@golang.org>
|
|
Also added expm1_386 and remainder_386; shortened exp_386
R=rsc
CC=golang-dev
http://codereview.appspot.com/217109
Committer: Russ Cox <rsc@golang.org>
|
|
- applied gofmt to src and misc
Note: This fix improved formatting of src/pkg/math/all_test.go but leads
to a degradation in src/pkg/exp/4s/xs.go. The latter happened to "work"
before accidentally. Fixing the alignment in that case in general will
be a separate CL.
Fixes issue 628.
R=rsc
CC=golang-dev
http://codereview.appspot.com/223054
|
|
Added lgamma.go, tests and special cases.
R=rsc
CC=golang-dev
http://codereview.appspot.com/217060
Committer: Russ Cox <rsc@golang.org>
|
|
Added special condition and benchmarks for Cbrt, Sincos. Took Frexp and Ldexp out of bits.go.
R=rsc
CC=golang-dev
http://codereview.appspot.com/206084
Committer: Russ Cox <rsc@golang.org>
|
|
Added tests and benchmarks for Exp2 (special cases same
as Exp). Log1p also enhances speed of inverse hyperbolics.
R=rsc
CC=golang-dev
http://codereview.appspot.com/206058
Committer: Russ Cox <rsc@golang.org>
|
|
Add functions, tests and benchmarks. Fix typos in comments
in expm1 and hypot_386. Fix Acosh domain error in benchmark
test.
R=rsc
CC=golang-dev
http://codereview.appspot.com/204069
Committer: Russ Cox <rsc@golang.org>
|
|
Added special cases, tests and benchmarks for Atan2;
added 386 FPU version of Atan2.
R=rsc
CC=golang-dev
http://codereview.appspot.com/201068
Committer: Russ Cox <rsc@golang.org>
|
|
Also moved Modf from bits.go into modf.go and added timing tests.
R=rsc
CC=golang-dev
http://codereview.appspot.com/202042
Committer: Russ Cox <rsc@golang.org>
|
|
R=r
CC=Charlie Dorian, golang-dev
http://codereview.appspot.com/199054
|
|
Added special cases to comments for asin.go and fabs.go.
Added Trunc() to floor.go and floor_386.s. Fixed formatting
error in hypot_386.s Added new functions Acosh, Asinh,
Atanh, Copysign, Erf, Erfc, Expm1, and Log1p. Added
386 FPU version of Fmod. Added tests, benchmarks, and
precision to expected results in all_test.go. Edited
makefile so it all compiles.
R=rsc
CC=golang-dev
http://codereview.appspot.com/195052
Committer: Russ Cox <rsc@golang.org>
|
|
Fixes issue 550.
R=rsc
CC=eds, golang-dev, jtomaschke
http://codereview.appspot.com/196063
Committer: Russ Cox <rsc@golang.org>
|
|
Added 386 FPU version of Hypot; modified all_test.go to test
Hypot with large arguments. Also edited sqrt.go to remove
Sqrt(0) as a special case.
R=rsc
CC=golang-dev
http://codereview.appspot.com/186180
Committer: Russ Cox <rsc@golang.org>
|
|
Added special case tests to all_test.go. Added tests to hypot.go,
otherwise hangs.
R=rsc
CC=golang-dev
http://codereview.appspot.com/186118
Committer: Russ Cox <rsc@golang.org>
|
|
Added special case tests to all_test.go. Added tests to Floor,
in-lined tests in Exp and Log.
R=rsc
CC=golang-dev
http://codereview.appspot.com/184081
Committer: Russ Cox <rsc@golang.org>
|
|
Added special case tests to all_test.go for Fmod. Fixed Fmod [hung
for Fmod(+/-Inf, <finite>)]. Also added test for Ceil in all_test.go.
R=rsc
CC=golang-dev
http://codereview.appspot.com/186076
Committer: Russ Cox <rsc@golang.org>
|
|
R=r
CC= golang-dev, Charlie Dorian, golang-dev
http://codereview.appspot.com/184058
|
|
Note: sqrt_decl.go already in src/pkg/math/.
R=rsc
CC=golang-dev
http://codereview.appspot.com/183155
Committer: Russ Cox <rsc@golang.org>
|
|
Added tests for NaN and out-of-range values.
Combined asin.go and atan.go into atan.go.
R=rsc
CC=golang-dev
http://codereview.appspot.com/180065
Committer: Russ Cox <rsc@golang.org>
|
|
R=rsc
CC=golang-dev
http://codereview.appspot.com/176064
Committer: Russ Cox <rsc@golang.org>
|
|
parsing and printing to new syntax.
Use -oldparser to parse the old syntax,
use -oldprinter to print the old syntax.
2) Change default gofmt formatting settings
to use tabs for indentation only and to use
spaces for alignment. This will make the code
alignment insensitive to an editor's tabwidth.
Use -spaces=false to use tabs for alignment.
3) Manually changed src/exp/parser/parser_test.go
so that it doesn't try to parse the parser's
source files using the old syntax (they have
new syntax now).
4) gofmt -w src misc test/bench
3rd set of files.
R=rsc
CC=golang-dev
http://codereview.appspot.com/180048
|
|
R=rsc
http://codereview.appspot.com/157160
|
|
* check for struct literal assignment to private fields.
* record, fix crash involving parallel map assignment.
* avoid infinite recursion in exportassignok.
* make floating point bounds check precise.
* avoid crash on invalid receiver.
* add context to error about implicit assignment.
Fixes issue 86.
Fixes issue 88.
Fixes issue 158.
Fixes issue 174.
Fixes issue 201.
Fixes issue 204.
R=ken2
http://codereview.appspot.com/154144
|
|
rsc's algorithm
- applied gofmt -w misc src
- partial CL (last chunk)
R=rsc, r
http://go/go-review/1024041
|
|
R=rsc, r
http://go/go-review/1025029
|
|
- enabled for function declarations (not just function literals)
- applied gofmt -w $GOROOT/src
(look for instance at src/pkg/debug/elf/elf.go)
R=r, rsc
CC=go-dev
http://go/go-review/1026006
|
|
R=rsc
http://go/go-review/1018061
|
|
R=gri
DELTA=566 (4 added, 14 deleted, 548 changed)
OCL=35410
CL=35419
|
|
whole-package compilation. new Makefiles,
tests now in separate package
bytes
flag
fmt
io
math
once
os
reflect
strconv
sync
time
utf8
delete import "xxx" in package xxx.
inside package xxx, xxx is not declared
anymore so s/xxx.//g
delete file and package level forward declarations.
note the new internal_test.go and sync
and strconv to provide public access to
internals during testing. the installed version
of the package omits that file and thus does
not open the internals to all clients.
R=r
OCL=33065
CL=33097
|
|
R=r
DELTA=95 (0 added, 0 deleted, 95 changed)
OCL=33012
CL=33012
|
|
tests: all.bash passes, gobuild still works, godoc still works.
R=rsc
OCL=30096
CL=30102
|