summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2010-01-11math: special cases for FmodCharles L. Dorian2-5/+124
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>
2010-01-11 cgo: Make constants #define'd in C available to Go (as consts)Devon H. O'Dell4-3/+77
Fixes issue 435 R=rsc CC=golang-dev http://codereview.appspot.com/181161 Committer: Russ Cox <rsc@golang.org>
2010-01-11gc: clean opnames.hYongjian Xu1-1/+1
R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/181186 Committer: Russ Cox <rsc@golang.org>
2010-01-11Remove -oldprinter flag from gofmt; all code isRobert Griesemer11-727/+684
now printed using the semicolon-free style. Removed NoSemis flag and mechanism dealing with optional semicolons from go/printer. Updated all go/printer output files using the semi-colon free style. Changes have no formatting impact on checked in go code under src and misc. R=rsc, r CC=golang-dev http://codereview.appspot.com/184068
2010-01-12Clean up and make consistent the comments in the math package.Rob Pike11-64/+60
R=rsc CC=golang-dev http://codereview.appspot.com/186042
2010-01-11math: fix pow10 comment, test portable SqrtRuss Cox3-5/+17
R=r CC= golang-dev, Charlie Dorian, golang-dev http://codereview.appspot.com/184058
2010-01-11Replicate signal names from syscall in os/signal.David Symonds3-2/+32
R=rsc CC=golang-dev http://codereview.appspot.com/183142 Committer: Russ Cox <rsc@golang.org>
2010-01-11Partial work-around for gofmt bug.Robert Griesemer5-26/+109
Addresses some cases and respects position of closing parenthesis; but doesn't work yet in all cases. Heuristic; will need to be replaced by a real solution eventually. Does not cause existing code to be reformatted. R=r CC=golang-dev, rsc http://codereview.appspot.com/186043
2010-01-10math: Sqrt using 386 FPU.Charles L. Dorian5-129/+162
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>
2010-01-09runtime: check for preemption due to garbage collectionRuss Cox6-2/+29
in various already expensive routines. helps keep cpu utilization up when GOMAXPROCS > 1, but not a full solution. http://groups.google.com/group/golang-nuts/t/7a9535c4136d3e2 R=r CC=golang-dev http://codereview.appspot.com/184043
2010-01-08math: special cases for Atan, Asin and AcosCharles L. Dorian4-86/+198
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>
2010-01-08gc: bug238Russ Cox2-1/+8
Fixes issue 471. R=ken2 CC=golang-dev http://codereview.appspot.com/181184
2010-01-07gc: bug219, bug239, bug240Russ Cox1-6/+22
Fixes issue 475. R=ken2 CC=golang-dev http://codereview.appspot.com/183157
2010-01-07gc: bug241Russ Cox1-1/+3
Fixes issue 495. R=ken2 CC=golang-dev http://codereview.appspot.com/183156
2010-01-08Rewrite tokenizer to clean up and fix a bug with spaces before delimited block.Rob Pike2-45/+73
Fixes issue 501. R=rsc CC=golang-dev http://codereview.appspot.com/181183
2010-01-07http: most of a URL shouldn't use URL-escapingRuss Cox3-18/+41
Fixes issue 502. R=r, hoisie CC=golang-dev http://codereview.appspot.com/181179
2010-01-08Add a parser to the time package, the inverse of time.FormatRob Pike2-1/+345
R=rsc CC=golang-dev http://codereview.appspot.com/183141
2010-01-07added some missing periodsRobert Griesemer1-4/+4
R=rsc CC=golang-dev http://codereview.appspot.com/181171
2010-01-07make Format about twice as fast by removing allocations, using a bytes.BufferRob Pike2-31/+28
add a benchmark R=rsc CC=golang-dev http://codereview.appspot.com/181164
2010-01-068g: float->uint64 conversion optimizationEvan Shaw1-9/+3
Using FUCOMIP instead of the FUCOMP-FSTSW-SAHF sequence gives better performance and saves code space. R=rsc CC=golang-dev http://codereview.appspot.com/183139 Committer: Russ Cox <rsc@golang.org>
2010-01-06libmach: Add disassembly for newly implemented opcodesEvan Shaw1-0/+4
R=rsc CC=golang-dev http://codereview.appspot.com/183140 Committer: Russ Cox <rsc@golang.org>
2010-01-06runtime: close TODO now that 8c bug is fixedRuss Cox2-23/+5
R=r CC=golang-dev http://codereview.appspot.com/183138
2010-01-07add a standard interface that wraps ReadByte, io.ReadByterRob Pike1-0/+8
R=rsc CC=golang-dev http://codereview.appspot.com/181163
2010-01-06sync make-arm.bash with make.bashRuss Cox1-3/+6
R=r CC=golang-dev http://codereview.appspot.com/183135
2010-01-068c: only refer to extern register variables in MOVL instructionsRuss Cox2-1/+8
R=ken2 http://codereview.appspot.com/183136
2010-01-06deps.bash: handle space between .go and \ in GOFILES=Russ Cox1-1/+1
R=r CC=golang-dev http://codereview.appspot.com/181157
2010-01-06Ported runtime to Windows.Hector Chu20-60/+600
R=rsc CC=golang-dev http://codereview.appspot.com/176066 Committer: Russ Cox <rsc@golang.org>
2010-01-06time: fix Makefile so deps.bash is happy (fixes build)Russ Cox1-1/+1
TBR=r http://codereview.appspot.com/183133
2010-01-06godoc: serve index.html in place of directory listing, when presentRuss Cox1-0/+10
R=gri CC=golang-dev http://codereview.appspot.com/181155
2010-01-06http: avoid header duplication - take struct fields out of Header mapRuss Cox1-2/+12
R=r CC=golang-dev, petar-m http://codereview.appspot.com/183132
2010-01-06cgo: Use -fno-eliminate-unused-debug-types when calling gcc to for dwarf stabs.Devon H. O'Dell1-0/+1
This keeps debug symbols in for e.g. unreferenced enums. Fixes issue 479 R=rsc CC=golang-dev, waltermundt http://codereview.appspot.com/181102 Committer: Russ Cox <rsc@golang.org>
2010-01-07New time formatter, time.Format(formatString)Rob Pike4-155/+259
The model is that formatString is a a representation of a standard time, and that Format converts the time to that representation. Standard representaitons are defined for ANSIC, RFC850, RFC1123, and ISO8601. There's also a humane Kitchen fomat: 3:04PM. R=rsc, benolive, cw CC=golang-dev http://codereview.appspot.com/181130
2010-01-06Fix missing explicit GOBIN in src/pkg/Makefile. Clean up creation ofDevon H. O'Dell3-18/+16
QUOTED_GOBIN. Re-take of 181077; fixes copy-pasta that broke build. Fixes issue 468 R=rsc CC=golang-dev http://codereview.appspot.com/183125 Committer: Russ Cox <rsc@golang.org>
2010-01-06Add http.CanonicalPath and tests for it. Remove BUG(rsc) from url.go.Ivan Krasin2-9/+95
R=rsc, imkrasin CC=golang-dev http://codereview.appspot.com/179126 Committer: Russ Cox <rsc@golang.org>
2010-01-06Propagate error to the caller in json.Marshal. Fixes issue 445.Ivan Krasin2-6/+21
R=rsc, imkrasin CC=golang-dev http://codereview.appspot.com/179125 Committer: Russ Cox <rsc@golang.org>
2010-01-058a, 8l: Add FCOMI, FCOMIP, FUCOMI, FUCOMIP instructionsEvan Shaw3-1/+13
Fixes issue 447 R=rsc CC=golang-dev http://codereview.appspot.com/183047 Committer: Russ Cox <rsc@golang.org>
2010-01-05rollback of http://codereview.appspot.com/181077Russ Cox3-16/+18
(broke build) TBR=dho http://codereview.appspot.com/181139
2010-01-05xml: Fix comment so that example code compilesEvan Shaw1-1/+1
R=rsc CC=golang-dev http://codereview.appspot.com/181138 Committer: Russ Cox <rsc@golang.org>
2010-01-05big: fix ProbablyPrime bug, commentsRuss Cox3-4/+14
(changes adopted from alc, agl) R=agl1, agl CC=golang-dev http://codereview.appspot.com/181137
2010-01-05Fix missing explicit GOBIN in src/pkg/Makefile. Clean up creation of ↵Devon H. O'Dell3-18/+16
QUOTED_GOBIN Fixes issue 468 R=rsc CC=golang-dev http://codereview.appspot.com/181077 Committer: Russ Cox <rsc@golang.org>
2010-01-05syscall: add nanosleep on FreeBSDDevon H. O'Dell3-0/+13
Fixes issue 461 R=rsc CC=golang-dev http://codereview.appspot.com/181059 Committer: Russ Cox <rsc@golang.org>
2010-01-05net: make Dial correctly return nil on error.Roger Peppe1-3/+15
R=rsc CC=golang-dev http://codereview.appspot.com/181135 Committer: Russ Cox <rsc@golang.org>
2010-01-04Simplified parser interface.Robert Griesemer4-54/+39
R=rsc, r CC=golang-dev, rog http://codereview.appspot.com/183116
2010-01-05Check for errors when writing fields of a struct.Rob Pike1-1/+5
R=rsc CC=golang-dev, jack.palevich http://codereview.appspot.com/183109
2010-01-04Allow a nil Ident to print without crashing.Roger Peppe2-6/+14
Allow Walk of []Decl R=gri CC=golang-dev, rsc http://codereview.appspot.com/183112 Committer: Robert Griesemer <gri@golang.org>
2010-01-02Remove redundant size check in resize. Let callers worry about that and ↵Yongjian Xu1-5/+2
resize should just do "resize". R=golang-dev, r CC=golang-dev http://codereview.appspot.com/181111 Committer: Rob Pike <r@golang.org>
2009-12-31trivial bug: []byte is special but [3]byte is not.Rob Pike2-5/+7
modify a test to verify the fix. R=rsc CC=golang-dev http://codereview.appspot.com/183090 Committer: Rob Pike <r@golang.org>
2009-12-30improve some type switches now that multiple types per case are supported.Rob Pike2-50/+6
R=rsc CC=golang-dev http://codereview.appspot.com/181089
2009-12-29Apply symmetric changes to sha1 and sha256 as to md4 and md5.Robert Griesemer2-24/+16
R=agl, agl1 CC=golang-dev http://codereview.appspot.com/183083
2009-12-29PNG decoder now handles transparent paletted images.Nigel Tao1-0/+32
Fixes issue 439. R=r CC=golang-dev http://codereview.appspot.com/181087