summaryrefslogtreecommitdiff
path: root/src/pkg/exp
AgeCommit message (Collapse)AuthorFilesLines
2013-03-23Imported Upstream version 1.1~hg20130323upstream/1.1_hg20130323Michael Stapelberg21-11832/+0
2013-03-04Imported Upstream version 1.1~hg20130304upstream/1.1_hg20130304Michael Stapelberg21-0/+11832
2012-04-06Imported Upstream version 1upstream/1Ondřej Surý43-16118/+0
2011-11-28Imported Upstream version 60.3upstream/60.3Ondřej Surý4-1420/+0
2011-09-13Imported Upstream version 60upstream/60Ondřej Surý47-0/+17538
2011-09-13Imported Upstream version 60Ondřej Surý68-22081/+0
2011-08-03Imported Upstream version 59upstream/59Ondřej Surý22-1/+6470
2011-06-30Imported Upstream version 58upstream/58Ondřej Surý15-625/+36
2011-04-28Imported Upstream version 2011.04.27upstream/2011.04.27Ondřej Surý8-10/+10
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý13-103/+99
2011-04-20Imported Upstream version 2011.03.07.1upstream/2011.03.07.1Ondřej Surý2-6/+8
2011-02-18Imported Upstream version 2011.02.15upstream/2011.02.15Ondřej Surý5-25/+23
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý18-76/+565
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý68-15773/+953
2010-07-01strings and bytes.Split: make count of 0 mean 0, not infinite.Rob Pike2-2/+2
Use a count of -1 for infinity. Ditto for Replace. R=rsc CC=golang-dev http://codereview.appspot.com/1704044 Committer: Rob Pike <r@golang.org>
2010-06-29exp/draw/x11: implement the mapping from keycodes to keysyms.Nigel Tao1-31/+78
R=rsc CC=golang-dev, rog http://codereview.appspot.com/1739042
2010-06-20reflect: add Kind, remove Int8Type, Int8Value, etc.Russ Cox3-29/+37
update other code to match. R=r CC=golang-dev http://codereview.appspot.com/1680044
2010-06-18nacl: fix buildRuss Cox2-2/+2
TBR=r CC=golang-dev http://codereview.appspot.com/1706044
2010-06-14remove uses of ... from tree, add one testRuss Cox2-19/+12
R=r CC=golang-dev http://codereview.appspot.com/1662041
2010-06-14exp/draw: small draw.drawGlyphOver optimization.Nigel Tao1-10/+11
Make dpix variable names consistent. R=rsc CC=golang-dev http://codereview.appspot.com/1563041
2010-06-09exp/eval test: fix buildRobert Griesemer1-3/+3
R=r CC=golang-dev http://codereview.appspot.com/1599043
2010-06-04Fixes issue 836.Nigel Tao2-1/+15
R=gri CC=golang-dev http://codereview.appspot.com/1548042
2010-06-03draw.Draw fast paths for the Over operator.Nigel Tao1-34/+93
Time (us) to draw a 200x200 src onto an image.RGBA dst with the Over operator. Each case was measured three separate times, and the sorted times are reported. Fill case (where src is an image.ColorImage): Before: 7438, 7511, 7526 After: 3073, 3087, 3102 Copy case (where src is an image.RGBA): Before: 9506, 9510, 9563 After: 5262, 5300, 5344 R=rsc CC=golang-dev http://codereview.appspot.com/1532041
2010-05-28Make image.Color.RGBA return 16 bit color instead of 32 bit color.Nigel Tao4-39/+2
R=rsc CC=golang-dev http://codereview.appspot.com/1388041
2010-05-27Add Rectangle.Eq and Point.In.Roger Peppe1-0/+14
Fix Rectangle.Clip. It could return a non-canonical rectangle if its arguments did not overlap. e.g. Rect(0, 0, 10, 10).Clip(Rect(0, 20, 10, 30)) -> Rect(0, 20, 10, 10) R=rsc, r CC=golang-dev, golang-dev http://codereview.appspot.com/1290041 Committer: Rob Pike <r@golang.org>
2010-05-24Optimize exp/draw/x11 flusher inner loop.Nigel Tao1-6/+6
On my laptop, time to prepare and write 800x600 pixels over the socket falls from 125-ish ms to 80-ish ms. Thanks to Roger Peppe for the suggestion. R=r CC=golang-dev http://codereview.appspot.com/1228044
2010-05-24Fix typo in exp/draw/x11.Nigel Tao1-1/+1
R=rsc CC=golang-dev http://codereview.appspot.com/1282041
2010-05-24Make draw/x11 treat $DISPLAY the same way x-go-bindings does.Nigel Tao2-44/+97
This ought to make draw/x11 work on a Mac. R=rsc CC=golang-dev http://codereview.appspot.com/1265042
2010-05-21go/printer, gofmt: fix printing of labels,Robert Griesemer1-1/+2
apply gofmt to src, misc Fixes issue 752. R=rsc CC=golang-dev http://codereview.appspot.com/1240044 Committer: Robert Griesemer <gri@golang.org>
2010-05-21bignum: deprecate by moving into exp directoryRobert Griesemer16-8/+2802
R=rsc CC=golang-dev http://codereview.appspot.com/1211047
2010-05-20Fix Rectangle.Canon()Roger Peppe1-2/+2
R=rsc, r, gri CC=golang-dev http://codereview.appspot.com/1239043 Committer: Robert Griesemer <gri@golang.org>
2010-05-20Fast-ish path for drawing onto an image.RGBA destination.Nigel Tao2-13/+121
Time to draw.Draw a 200x200 image fell from 18.4ms (and 1 malloc) to 5.6ms (and 0 mallocs). It's still relatively slow since it assumes nothing about the src or mask images, but it does remove the malloc. There are existing faster, more specialized paths for copies, fills and image glyph masks. Also added a "compare to a slow but obviously correct implementation" check to draw_test.go. R=rsc, r CC=golang-dev http://codereview.appspot.com/1223044
2010-05-11drawGlyphOver optimization.Nigel Tao1-4/+5
Timings (as for change 1122043) go from 49ms to 48ms ish. It's mostly lost in the noise, but it probably doesn't hurt. R=r CC=golang-dev http://codereview.appspot.com/1179041
2010-05-10exp/draw fast path for glyph images.Nigel Tao1-1/+43
To draw.Draw a 32x32 image.Alpha 10000 times, Before: 633ms with 10000 mallocs After: 49ms with 0 mallocs These times are just blitting an image.Alpha, and do not include rasterizing a glyph's vector contours to an image.Alpha. The "generic" test case in draw_test.go tests this fast path. R=rsc CC=golang-dev http://codereview.appspot.com/1122043
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-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-15exp/eval: Always read float literals as base 10Evan Shaw2-1/+2
We were letting bignum decide, which caused problems with float literals with a leading 0. R=gri CC=golang-dev http://codereview.appspot.com/816047 Committer: Robert Griesemer <gri@golang.org>
2010-04-15exp/eval: Implement x[lo:]Evan Shaw2-6/+23
R=golang-dev, gri CC=golang-dev http://codereview.appspot.com/908044 Committer: Robert Griesemer <gri@golang.org>
2010-04-13Remove exp/exception as it's no longer relevantChristopher Wedgwood3-155/+0
R=gri, adg CC=golang-dev, r, rsc http://codereview.appspot.com/857048 Committer: Andrew Gerrand <adg@golang.org>
2010-04-11exp/eval: Fix example and add target to MakefileEvan Shaw2-4/+10
R=rsc CC=golang-dev http://codereview.appspot.com/901042 Committer: Russ Cox <rsc@golang.org>
2010-04-11nacl: update documentation to match current coding styleChristopher Wedgwood1-3/+3
R=rsc, r CC=golang-dev http://codereview.appspot.com/822047 Committer: Rob Pike <r@golang.org>
2010-03-30simplify various code using new map index ruleRuss Cox4-7/+4
R=r CC=golang-dev http://codereview.appspot.com/833044
2010-03-30single argument panicRuss Cox7-49/+45
note that sortmain.go has been run through hg gofmt; only the formatting of the day initializers changed. i'm happy to revert that formatting if you'd prefer. stop on error in doc/progs/run R=r CC=golang-dev http://codereview.appspot.com/850041
2010-03-24delete all uses of panicln by rewriting them using panic or,Rob Pike3-7/+6
in the tests, println+panic. gofmt some tests too. R=rsc CC=golang-dev http://codereview.appspot.com/741041
2010-03-04gofmt: modified algorithm for alignment of multi-line composite/list entriesRobert Griesemer1-5/+5
- only manual changes are in src/pkg/go/printer/nodes.go - use a heuristic to determine "outliers" such that not entire composites are forced to align with them - improves several places that were not unligned before due too simple heuristic - unalignes some cases that contain "outliers" - gofmt -w src misc Fixes issue 644. R=rsc, r CC=golang-dev http://codereview.appspot.com/241041
2010-03-02gofmt: fix alignment of multi-line var declarationsRobert Griesemer1-7/+7
- gofmt -w src misc R=rsc, r CC=golang-dev http://codereview.appspot.com/223101
2010-03-02gofmt: experiment: align values in map composites where possibleRobert Griesemer11-64/+64
- gofmt -w src misc - looking for feedback R=rsc, r CC=golang-dev http://codereview.appspot.com/223076
2010-02-25go/printer, gofmt: align comments in multi-line expression listsRobert Griesemer1-7/+7
- gofmt -w src misc - improves several lists and fixes minor degradation introduced with the fix for issue 628 - removed some dead code (stringList) R=rsc CC=golang-dev http://codereview.appspot.com/223058
2010-02-25strings: delete Runes, BytesRuss Cox3-6/+4
gofmt -w -r 'strings.Bytes(a) -> []byte(a)' src/cmd src/pkg test/bench gofmt -w -r 'strings.Runes(a) -> []int(a)' src/cmd src/pkg test/bench delete unused imports R=r CC=golang-dev http://codereview.appspot.com/224062
2010-02-25go/printer, gofmt: correct indentation after certain /*-style commentsRobert Griesemer1-7/+7
- 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