summaryrefslogtreecommitdiff
path: root/src/pkg
AgeCommit message (Collapse)AuthorFilesLines
2010-05-07big: more cleanupRobert Griesemer6-216/+183
- pass []Word instead of *Word to core arithmetic functions - remove dead code R=rsc CC=golang-dev http://codereview.appspot.com/1154042
2010-05-07compress: renamings.Rob Pike17-159/+159
NewDeflater -> NewWriter NewInflater -> NewReader Deflater -> Compressor Inflater -> Decompressor R=rsc CC=golang-dev http://codereview.appspot.com/1166041
2010-05-07gob: bug fix: errors encoding the payload were notRob Pike1-2/+6
returned to caller. R=rsc CC=golang-dev http://codereview.appspot.com/1164041
2010-05-07gob: add an internal commentary example showing how theRob Pike2-176/+249
values are encoded for transmission. R=rsc CC=golang-dev http://codereview.appspot.com/1146041
2010-05-06Save the scheduling state even predawn.Ian Lance Taylor1-4/+4
This permits cgo callbacks to work when run in init code. Otherwise cgocallback switches to the wrong stack address. R=rsc CC=golang-dev http://codereview.appspot.com/1123043
2010-05-06fix build (typo in arith_386.s)Robert Griesemer1-1/+1
R=rsc CC=golang-dev http://codereview.appspot.com/1139042
2010-05-06big: implemented overlap-tolerant shifts in assemblyRobert Griesemer5-164/+188
- no need to make copies in cases of aliases - removed deprecated internal shift functions - minor unrelated simplifications This change improves pidigits -s -n10000 by almost 20%: user 0m6.156s (old) user 0m4.999s (new) (pidigits -s -n20000 goes from ~25s to ~19s) R=rsc CC=golang-dev http://codereview.appspot.com/1149041
2010-05-06runtime.GOMAXPROCS: hack it to have it return the old value.Rob Pike4-7/+16
R=rsc CC=golang-dev http://codereview.appspot.com/1140041
2010-05-06gob: add test for indirect maps, slices, arrays.Rob Pike2-3/+67
fix a bug in the handling of indirect maps. R=rsc CC=golang-dev http://codereview.appspot.com/1132042
2010-05-06Make exp/draw/x11 respect $XAUTHORITY.Nigel Tao1-13/+17
R=rsc, cw, nigeltao_golang CC=golang-dev http://codereview.appspot.com/1134041
2010-05-05gob: add support for maps.Rob Pike6-43/+254
Because maps are mostly a hidden type, they must be implemented using reflection values and will not be as efficient as arrays and slices. R=rsc CC=golang-dev http://codereview.appspot.com/1127041
2010-05-05pkg/Makefile: add netchan to standard package listRob Pike1-0/+1
R=golang-dev CC=golang-dev http://codereview.appspot.com/1121041
2010-05-05Conversion from loop to copy().Kyle Consalus1-3/+1
R=golang-dev, gri CC=golang-dev http://codereview.appspot.com/1072041 Committer: Robert Griesemer <gri@golang.org>
2010-05-05Fix a typo in net/unixsockConrad Meyer1-1/+1
R=golang-dev, gri CC=golang-dev http://codereview.appspot.com/1113041 Committer: Robert Griesemer <gri@golang.org>
2010-05-03big: completed set of Int division routines & cleanupsRobert Griesemer7-170/+330
- renamed Len -> BitLen, simplified implementation - renamed old Div, Mod, DivMod -> Que, Rem, QuoRem - implemented Div, Mod, DivMod (Euclidian definition, more useful in a mathematical context) - fixed a bug in Exp (-0 was possible) - added extra tests to check normalized results everywhere - uniformly set Int.neg flag at the end of computations - minor cosmetic cleanups - ran all tests R=rsc CC=golang-dev http://codereview.appspot.com/1091041
2010-05-03runtime, strconv: tiny cleanupsRuss Cox2-15/+6
R=r CC=golang-dev http://codereview.appspot.com/1081042
2010-05-03big: fix memory corruption in nat.shrRuss Cox1-1/+1
R=gri CC=golang-dev http://codereview.appspot.com/1084041
2010-05-03runtime/arm: fix buildRuss Cox1-7/+7
Import _mulv from Inferno again, change R9 to R2. Not sure what the other differences were for, but they weren't working. TBR=kaib CC=golang-dev http://codereview.appspot.com/1079041
2010-05-03big: Add bitwise methods for IntEvan Shaw4-12/+355
R=gri CC=golang-dev http://codereview.appspot.com/987041 Committer: Robert Griesemer <gri@golang.org>
2010-05-03syscall: fix arm build (fix bugs in generator, to add O_LARGEFILE)Russ Cox10-442/+662
R=r CC=golang-dev http://codereview.appspot.com/1021043
2010-05-03bytes: Change IndexAny to look for UTF-8 encoded characters.Rob Pike2-16/+41
Also improve the implementations of Equals and Compare. R=rsc CC=golang-dev http://codereview.appspot.com/969047
2010-05-03runtime: update godefs usage comment for GOARCH=386 GOOS={darwin,freebsd}Giles Lean4-4/+4
When trying to regenerate src/pkg/runtime/darwin/386/defs.h on a 64 bit capable Snow Leopard (OS X 10.6.3) system I needed to add -f -m32 to godefs, as this OS and hardware combination defaults to 64 bit compilation. For safety, make the same change to the 32 bit FreeBSD instructions in .../freebsd/defs.c. (Tested OK and no problems introduced.) R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/1052042 Committer: Russ Cox <rsc@golang.org>
2010-05-02math: fix typo in Cbrt descriptionCharles L. Dorian1-3/+3
R=rsc CC=golang-dev http://codereview.appspot.com/979043 Committer: Russ Cox <rsc@golang.org>
2010-05-01big: cleanup and removal of redundant functionalityRobert Griesemer3-63/+33
R=rsc CC=golang-dev http://codereview.appspot.com/1048041
2010-05-01gc: be pickier about slice, chan, array, and map sizesRuss Cox4-16/+25
Fixes issue 589. R=ken2 CC=golang-dev http://codereview.appspot.com/1032044
2010-05-01vector: use correct capacity in call to makeRuss Cox3-6/+11
R=gri, r, bflm CC=golang-dev http://codereview.appspot.com/1032043
2010-04-30big: use fast shift routinesRobert Griesemer4-44/+93
- fixed a couple of bugs in the process (shift right was incorrect for negative numbers) - added more tests and made some tests more robust - changed pidigits back to using shifts to multiply by 2 instead of add This improves pidigit -s -n 10000 by approx. 5%: user 0m6.496s (old) user 0m6.156s (new) R=rsc CC=golang-dev http://codereview.appspot.com/963044
2010-04-30big/arith: assembly routines for 386 long shifts (2nd round)Robert Griesemer1-19/+16
R=rsc CC=golang-dev http://codereview.appspot.com/986044
2010-04-30syscall: handle EOF on pipe - special case on WindowsAlex Brainman2-0/+5
R=rsc CC=golang-dev http://codereview.appspot.com/962046 Committer: Russ Cox <rsc@golang.org>
2010-04-30fix buildRobert Griesemer1-0/+6
R=rsc CC=golang-dev http://codereview.appspot.com/1044041
2010-04-30big: improved computation of "karatsuba length" for faster multipliesRobert Griesemer3-64/+77
This results in an improvement of > 35% for the existing Mul benchmark using the same karatsuba threshold, and an improvement of > 50% with a slightly higher threshold (32 instead of 30): big.BenchmarkMul 500 6731846 ns/op (old alg.) big.BenchmarkMul 500 4351122 ns/op (new alg.) big.BenchmarkMul 500 3133782 ns/op (new alg., new theshold) Also: - tweaked calibrate.go, use same benchmark as for Mul benchmark R=rsc CC=golang-dev http://codereview.appspot.com/1037041
2010-04-30big: assembly routines for 386 long shiftsRobert Griesemer1-32/+67
R=rsc CC=golang-dev http://codereview.appspot.com/974043
2010-04-30big: implemented core shift routines in arith.go andRobert Griesemer5-0/+134
provide assembly versions (for x86-64 for now) (Not yet used - waiting for previous CL to clear) R=rsc CC=golang-dev http://codereview.appspot.com/1040041
2010-04-30Add EWOULDBLOCK to sycall_nacl.go.Nigel Tao1-0/+4
R=rsc CC=go-dev, golang-dev http://codereview.appspot.com/1006045
2010-04-29rename GOOS=mingw to GOOS=windowsAlex Brainman30-42/+42
R=rsc, Joe Poirier CC=golang-dev http://codereview.appspot.com/1015043 Committer: Russ Cox <rsc@golang.org>
2010-04-29syscall: force O_LARGEFILE in Linux open system callRuss Cox7-32/+65
Fixes issue 717. R=adg, PeterGo CC=golang-dev http://codereview.appspot.com/1032041
2010-04-29syscall: mingw SleepJoe Poirier2-1/+16
R=rsc, brainman CC=golang-dev http://codereview.appspot.com/961047 Committer: Russ Cox <rsc@golang.org>
2010-04-29net: use short variable declarationChristopher Wedgwood1-2/+1
R=rsc CC=golang-dev http://codereview.appspot.com/1019043 Committer: Russ Cox <rsc@golang.org>
2010-04-29net: parser should handle EOF without newline properly.Christopher Wedgwood1-10/+14
Fixes issue 686. R=rsc CC=adg, golang-dev http://codereview.appspot.com/979044 Committer: Russ Cox <rsc@golang.org>
2010-04-28darwin: bsdthread_create can fail; print good errorRuss Cox4-6/+11
Fixes issue 549. R=adg CC=golang-dev http://codereview.appspot.com/1019042
2010-04-28net: do not require newline at end of resolv.confRuss Cox1-0/+5
Fixes issue 686. R=adg CC=golang-dev http://codereview.appspot.com/961046
2010-04-28xml: allow text segments to end at EOFRuss Cox3-7/+31
Fixes issue 674. R=adg CC=golang-dev http://codereview.appspot.com/1018042
2010-04-28fmt: %T print <nil> for nilChristopher Wedgwood2-0/+5
R=r CC=golang-dev, rsc http://codereview.appspot.com/1014043 Committer: Rob Pike <r@golang.org>
2010-04-28Remove destination of symlink test in case it got left behindIan Lance Taylor1-0/+1
earlier. R=rsc CC=golang-dev http://codereview.appspot.com/972045
2010-04-275l, 6l, 8l, runtime: make -s binaries workRuss Cox1-17/+8
5l, 6l, 8l: change ELF header so that strip doesn't destroy binary Fixes issue 261. R=iant, r CC=golang-dev http://codereview.appspot.com/994044
2010-04-27big: implemented Karatsuba multiplicationRobert Griesemer5-92/+491
Plus: - calibration "test" - include in tests with gotest -calibrate - basic Mul benchmark - extra multiplication tests - various cleanups This change improves multiplication speed of numbers >= 30 words in length (current threshold; found empirically with calibrate): The multiplication benchmark (multiplication of a variety of long numbers) improves by ~35%, individual multiplies can be significantly faster. gotest -benchmarks=Mul big.BenchmarkMul 500 6829290 ns/op (w/ Karatsuba) big.BenchmarkMul 100 10600760 ns/op There's no impact on pidigits for -n=10000 or -n=20000 because the operands are are too small. R=rsc CC=golang-dev http://codereview.appspot.com/1004042 Committer: Robert Griesemer <gri@golang.org>
2010-04-27net: drop non-RHEL-4.6 ports from testRuss Cox1-2/+0
Fixes issue 610. R=adg CC=golang-dev http://codereview.appspot.com/1006044
2010-04-27iterable: expose iterFunc as iterable.FuncRuss Cox1-16/+17
Fixes issue 483. R=dsymonds, dsymonds1 CC=golang-dev http://codereview.appspot.com/965044
2010-04-27net: fix bug in internetSocket introduced by error cleanup.Russ Cox1-1/+1
Fixes issue 750. R=adg CC=golang-dev http://codereview.appspot.com/988043
2010-04-28template: remove reference to json-templateAndrew Gerrand1-3/+1
Rather than confuse people by linking to a spec we don't fully support, let them just use the package docs. R=r, rsc CC=golang-dev http://codereview.appspot.com/1016041