- 19 Dec, 2011 21 commits
-
-
Mikio Hara authored
R=golang-dev, dave, rsc CC=golang-dev https://golang.org/cl/5496062
-
Ian Lance Taylor authored
TBR=bradfitz CC=golang-dev https://golang.org/cl/5494075
-
Rémy Oudompheng authored
The algorithm is the same as in the double-conversion library which also implements Florian Loitsch's fast printing algorithm. It uses extended floats with a 64-bit mantissa, but cannot give an answer for all cases. old ns/op new ns/op speedup BenchmarkAtof64Decimal 332 322 1.0x BenchmarkAtof64Float 385 373 1.0x BenchmarkAtof64FloatExp 9777 419 23.3x BenchmarkAtof64Big 3934 691 5.7x BenchmarkAtof64RandomBits 34060 899 37.9x BenchmarkAtof64RandomFloats 1329 680 2.0x See F. Loitsch, ``Printing Floating-Point Numbers Quickly and Accurately with Integers'', Proceedings of the ACM, 2010. R=ality, rsc CC=golang-dev, remy https://golang.org/cl/5494068
-
Rob Pike authored
They're out of date, a pain to maintain, and most of the material is better served by the Go Tour. Fixes #2101. R=golang-dev, rsc, r, adg CC=golang-dev https://golang.org/cl/5489053
-
Ian Lance Taylor authored
Enable new test in os. R=dave, iant, rsc CC=golang-dev https://golang.org/cl/5494061
-
Russ Cox authored
Keeps -u tracking simple. R=ken2 CC=golang-dev https://golang.org/cl/5495094
-
Russ Cox authored
This is like the ill-fated CL 5493063 except that I have written a shell script (autogen.sh) instead of thinking I could possibly write a correct Makefile. R=golang-dev, r CC=golang-dev https://golang.org/cl/5496075
-
Rémy Oudompheng authored
An old update for API changes in reflect package left several helper variables that do not have a meaning anymore, and the type checking of arrays vs slices was broken. Fixes #2513. R=ultrotter, rsc CC=golang-dev, remy https://golang.org/cl/5488094
-
Rémy Oudompheng authored
The longest numbers we have to represent are the smallest denormals. Their decimal mantissa is not longer than 5^1100. Taking into account some extra size for in-place operations, 800 digits are enough. This saves time used for zero intiialization of extra bytes. old ns/op new ns/op delta strconv_test.BenchmarkAtof64Decimal 521 334 -35.9% strconv_test.BenchmarkAtof64Float 572 391 -31.6% strconv_test.BenchmarkAtof64FloatExp 10242 10036 -2.0% strconv_test.BenchmarkAtof64Big 4229 4029 -4.7% strconv_test.BenchmarkFormatFloatDecimal 1396 934 -33.1% strconv_test.BenchmarkFormatFloat 4295 3341 -22.2% strconv_test.BenchmarkFormatFloatExp 12035 11181 -7.1% strconv_test.BenchmarkFormatFloatBig 4213 3229 -23.4% strconv_test.BenchmarkAppendFloatDecimal 1031 600 -41.8% strconv_test.BenchmarkAppendFloat 3971 3044 -23.3% strconv_test.BenchmarkAppendFloatExp 11699 11003 -5.9% strconv_test.BenchmarkAppendFloatBig 3836 2915 -24.0% R=golang-dev, bradfitz, rsc CC=golang-dev, remy https://golang.org/cl/5491064
-
Brad Fitzpatrick authored
R=rsc CC=golang-dev https://golang.org/cl/5490075
-
Christopher Nielsen authored
Not all syscalls are implemented, but many are. On the suggestion of Joel Sing <jsing@google.com>, the generated files were added with hg add instead of hg cp, since they are generated on an OS dependant basis. R=golang-dev, jsing, mikioh.mikioh CC=golang-dev https://golang.org/cl/5491050
-
Adam Langley authored
We still very much assume it in the code, but with this change in place we can implement other things later without changing and users of the package. Fixes #2319. R=golang-dev, bradfitz, r CC=golang-dev https://golang.org/cl/5489073
-
Alex Brainman authored
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5489082
-
Alex Brainman authored
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/5495086
-
Andrew Gerrand authored
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5493077
-
Andrew Gerrand authored
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5489084
-
Andrew Gerrand authored
Fixes #2574. R=golang-dev, bradfitz, adg, bradfitz CC=golang-dev https://golang.org/cl/5494072
-
Andrew Gerrand authored
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/5489080
-
Nigel Tao authored
Passes tests10.dat, test 6: <!DOCTYPE html><body><table><svg><g>foo</g></svg></table> | <!DOCTYPE html> | <html> | <head> | <body> | <svg svg> | <svg g> | "foo" | <table> Also pass tests through test 12: <!DOCTYPE html><body><table><caption><svg><g>foo</g><g>bar</g></svg><p>baz</caption></table> R=andybalholm CC=golang-dev https://golang.org/cl/5495061
-
Andrew Gerrand authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/5493075
-
Gustavo Niemeyer authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/5494070
-
- 18 Dec, 2011 2 commits
-
-
Paul Sbarra authored
The filetype needs to be set during BufRead in order for the did_filetype() check to prevent the file being detected as a conf file. One example where this can occur is if a cgo file has a #include at the top of the file. The # is detected in vim's generic configuration (conf file) toward the bottom of filetype.vim R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/5496066
-
Andrew Gerrand authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/5491069
-
- 17 Dec, 2011 4 commits
-
-
Christopher Nielsen authored
Add NetBSD to mksignals.sh and generate files. While we're here, also add netbsd to the +build list where appropriate. R=golang-dev, jsing CC=golang-dev https://golang.org/cl/5492064
-
Rob Pike authored
reported by fred richter R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/5494062
-
Andrew Gerrand authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/5495073
-
Andrew Gerrand authored
This leads to really confusing messages in goinstall. R=golang-dev, r CC=golang-dev https://golang.org/cl/5495074
-
- 16 Dec, 2011 13 commits
-
-
Russ Cox authored
That was the last build that was close to working. I will try that change again next week. Make is being very subtle today. At the reverted-to CL, the ARM traceback appears to be broken. I'll look into that next week too. R=golang-dev, r CC=golang-dev https://golang.org/cl/5492063
-
Robert Griesemer authored
- no empty lines inside empty structs and interfaces - top-level declarations are separated by a blank line if a) they are of different kind (e.g. const vs type); or b) there are documentation comments associated with a declaration (this is new) - applied gofmt -w misc src The actual changes are in go/printer/nodes.go:397-400 (empty structs/interfaces), and go/printer/printer.go:307-309 (extra line break). The remaining changes are cleanups w/o changing the existing functionality. Fixes issue 2570. R=rsc CC=golang-dev https://golang.org/cl/5493057
-
Russ Cox authored
Why it was not failing anywhere else I don't know, but the Makefile was definitely wrong. The rules must not run in parallel. TBR=r CC=golang-dev https://golang.org/cl/5489069
-
Russ Cox authored
I am looking forward to not supporting two build systems simultaneously. Make complains about a circular dependency still, but I don't understand it and it's probably not worth the time to figure out. TBR=r CC=golang-dev https://golang.org/cl/5496058
-
Olivier Duperray authored
R=golang-dev, rsc, r CC=golang-dev https://golang.org/cl/5491063
-
Russ Cox authored
R=golang-dev, r, r CC=golang-dev https://golang.org/cl/5493063
-
Russ Cox authored
TBR=r CC=golang-dev https://golang.org/cl/5493061
-
Russ Cox authored
Collapse the arch,os-specific directories into the main directory by renaming xxx/foo.c to foo_xxx.c, and so on. There are no substantial edits here, except to the Makefile. The assumption is that the Go tool will #define GOOS_darwin and GOARCH_amd64 and will make any file named something like signals_darwin.h available as signals_GOOS.h during the build. This replaces what used to be done with -I$(GOOS). There is still work to be done to make runtime build with standard tools, but this is a big step. After this we will have to write a script to generate all the generated files so they can be checked in (instead of generated during the build). R=r, iant, r, lucio.dere CC=golang-dev https://golang.org/cl/5490053
-
Rob Pike authored
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5494059
-
Rob Pike authored
Fixes #2577. R=golang-dev, r, gri CC=golang-dev https://golang.org/cl/5492058
-
Maxim Pimenov authored
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5489065
-
Volker Dobler authored
Types implementing CookieJar may be used in a Client to persist cookies. R=bradfitz, rsc CC=golang-dev https://golang.org/cl/5399043
-
Miki Tebeka authored
Fixes #2569 (hg undo crashes when CL not found). R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5489052
-