Ian Lance Taylor
5cf707b499
Clarify that conversions to complex are OK.
...
R=r
CC=golang-dev
https://golang.org/cl/296042
2010-03-08 13:45:03 -08:00
Adam Langley
df53544f4f
crypto/rsa: don't use safe primes.
...
Previously we would require safe primes for our RSA key generation.
Since this took rather a long time, this removes the requirement that
the primes be safe.
OpenSSL doesn't use safe primes for RSA key generation either
(openssl-0.9.8l/crypto/rsa/rsa_gen.c:122)
Fixes #649 .
R=rsc
CC=golang-dev
https://golang.org/cl/253041
2010-03-08 09:25:24 -05:00
Christopher Wedgwood
520621d24c
regex: Remove unneeded imports from test.
...
R=rsc, adg, r
CC=golang-dev
https://golang.org/cl/264041
2010-03-07 11:17:36 -08:00
Andrew Gerrand
f25e016c60
regexp: add ReplaceAllFunc and ReplaceAllStringFunc
...
R=r
CC=golang-dev
https://golang.org/cl/247041
2010-03-07 12:41:49 +11:00
Rob Pike
cba81d8058
fix bug in complex printing: imaginary didn't have same format as real.
...
add tests.
R=rsc, ken2, ken3
CC=golang-dev
https://golang.org/cl/261041
2010-03-06 13:38:14 -08:00
Ken Thompson
788b41751e
PTAL
...
R=r
CC=golang-dev
https://golang.org/cl/254043
2010-03-06 11:26:33 -08:00
Ken Thompson
426099f42e
6g complex type usable
...
8g and 5g have stubs to ignore complex
R=rsc
CC=golang-dev
https://golang.org/cl/257042
2010-03-05 20:16:04 -08:00
Russ Cox
a9b9afa930
gc: fix crash on complicated arg to make slice.
...
Fixes #615 .
R=ken2
CC=golang-dev
https://golang.org/cl/255043
2010-03-05 19:29:14 -08:00
Charles L. Dorian
067fe2840b
math: faster hypot
...
Use hardware sqrt for faster hypot; preserve software-only
hypot as hypotGo (like sqrtGo); enable benchmarking of
hypotGo.
R=rsc
CC=golang-dev
https://golang.org/cl/229049
2010-03-05 16:45:39 -08:00
Russ Cox
ac499ed7a5
gc: better compilation of floating point +=
...
R=ken2
CC=golang-dev
https://golang.org/cl/255042
2010-03-05 15:35:09 -08:00
Rob Pike
8c9944d8c8
bufio: WriteRune
...
also fix a printing error in the test for bytes.Buffer
R=golang-dev
CC=golang-dev
https://golang.org/cl/240042
2010-03-05 14:03:17 -08:00
Adam Langley
308064fc59
big: fix mistakes with probablyPrime
...
probablyPrime would return false negatives in some cases.
This code has now been tested against GMP for several million iterations without issues.
Fixes #638 .
R=rsc
CC=golang-dev
https://golang.org/cl/252041
2010-03-05 15:55:26 -05:00
Rob Pike
0ac5ef70db
Add ReadRune and WriteRune to bytes.Buffer
...
The comments mention bufio's WriteRune, which should come next.
R=rsc
CC=golang-dev
https://golang.org/cl/245041
2010-03-05 11:34:53 -08:00
Ian Lance Taylor
4b22e1bdb6
Generate same output on all architectures.
...
Passing an argument to bug260 will indicate which alignments
are wrong.
R=r
CC=golang-dev
https://golang.org/cl/231042
2010-03-05 10:43:33 -08:00
Robert Griesemer
a145829873
frexp.go: remove html from comment
...
R=r
CC=golang-dev
https://golang.org/cl/250041
2010-03-05 10:30:50 -08:00
Robert Griesemer
9a65a06e37
godoc: don't throw away function documentation
...
if there are multiple functions (for a package, type)
with the same name
Fixes #642 .
R=rsc
CC=golang-dev
https://golang.org/cl/243041
2010-03-05 10:13:58 -08:00
Robert Griesemer
e8a049b440
gofmt: modified algorithm for alignment of multi-line composite/list entries
...
- 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 #644 .
R=rsc, r
CC=golang-dev
https://golang.org/cl/241041
2010-03-04 17:37:15 -08:00
Russ Cox
3e4e4ec704
goinstall: an experiment in (external) package installation
...
R=adg, r
CC=cw, golang-dev
https://golang.org/cl/224043
2010-03-04 17:04:50 -08:00
Russ Cox
e6cd011e68
A+C: add Spring Mc (individual CLA)
...
R=adg
CC=golang-dev
https://golang.org/cl/240041
2010-03-04 16:16:56 -08:00
Spring Mc
3dcbf73c84
strings: make Split(s, "", n) faster
...
R=rsc
CC=golang-dev
https://golang.org/cl/223096
2010-03-04 16:15:51 -08:00
Russ Cox
36c5c5bf40
cc: disallow ... argument unless NOSPLIT is set.
...
check that NOSPLIT functions don't use too much stack.
correct some missing NOSPLITs in the runtime library.
Fixes bug reported in
https://groups.google.com/group/golang-nuts/t/efff68b73941eccf
R=ken2
CC=golang-dev
https://golang.org/cl/236041
2010-03-04 15:34:25 -08:00
Rob Pike
6e3853e294
add a test that structures pack. 6g fails.
...
R=rsc
CC=golang-dev
https://golang.org/cl/237041
2010-03-04 15:26:15 -08:00
Rob Pike
7297087101
Spec for complex numbers
...
R=rsc, ken2, gri, iant
CC=cw, golang-dev
https://golang.org/cl/227041
2010-03-04 12:35:16 -08:00
Andrew Gerrand
45d51f359f
release.2010-03-04 part two
...
R=rsc
CC=golang-dev
https://golang.org/cl/229050
2010-03-04 15:00:45 +11:00
Charles L. Dorian
6b80a5fa6d
math: added ilogb, logb, remainder, tests and special conditions
...
Also added expm1_386 and remainder_386; shortened exp_386
R=rsc
CC=golang-dev
https://golang.org/cl/217109
2010-03-03 18:17:13 -08:00
Andrew Gerrand
baa65fd106
release.2010-03-04
...
R=rsc
CC=golang-dev
https://golang.org/cl/229048
2010-03-04 13:00:29 +11:00
Andrew Gerrand
1d5af1553c
First run at a Programming FAQ
...
Moved a couple of FAQs from the main FAQ, and added some others
R=r, rsc, iant, gri
CC=golang-dev
https://golang.org/cl/218070
2010-03-04 12:56:08 +11:00
Russ Cox
e53f7d8993
net: put [ ] around IPv6 addresses for Dial
...
Update #538 .
R=r
CC=golang-dev
https://golang.org/cl/229045
2010-03-03 17:30:39 -08:00
Russ Cox
74b131c0ab
net: fix nil deref in testTimeout when Dial fails
...
Pointed out by Scott Schwartz.
Fixes #637 .
R=scotts
CC=golang-dev
https://golang.org/cl/225042
2010-03-03 17:30:29 -08:00
Russ Cox
f1550482fa
gc: fix imported and not used message - show path
...
R=ken2
CC=golang-dev
https://golang.org/cl/229046
2010-03-03 17:23:47 -08:00
Rob Pike
90367756bb
encoding/binary: fix error reporting bug
...
R=rsc
CC=golang-dev
https://golang.org/cl/224096
2010-03-03 12:35:16 -08:00
Stephen Ma
3b82f295b4
net: fix network timeout boundary condition.
...
Fixes #472 .
R=golang-dev
CC=golang-dev
https://golang.org/cl/223108
2010-03-03 18:43:36 +11:00
Stephen Ma
b73e592ed1
net: correct DNS configuration
...
Set defaults to the same values as various C DNS resolver libraries.
Use the timeout value from the configuration.
Fixes #632 .
R=rsc
CC=golang-dev
https://golang.org/cl/223094
2010-03-03 15:25:26 +11:00
Russ Cox
486d9eb48e
test: fix 386 build (missing complex)
...
R=ken2
CC=golang-dev
https://golang.org/cl/223106
2010-03-02 18:53:25 -08:00
Ken Thompson
7d4b1e4c0d
more on type complex.
...
getting close.
R=rsc
CC=golang-dev
https://golang.org/cl/224105
2010-03-02 18:32:11 -08:00
Robert Griesemer
305f5433f3
gofmt: fix alignment of multi-line var declarations
...
- gofmt -w src misc
R=rsc, r
CC=golang-dev
https://golang.org/cl/223101
2010-03-02 17:23:07 -08:00
Andrew Gerrand
e678afa891
codereview.py: fix for compatibility with hg >=1.4.3
...
hg.parseurl now returns a two-value tuple; codereview.py expected 3.
Changed to merely take the first return value.
R=rsc, iant
CC=golang-dev
https://golang.org/cl/223087
2010-03-03 09:03:31 +11:00
Andrew Gerrand
adf1e4c5fd
http: corrected comment for Response.GetHeader.
...
Fixes #622 .
R=rsc
CC=golang-dev
https://golang.org/cl/224084
2010-03-03 08:53:22 +11:00
Robert Griesemer
f44fa9b4c7
gofmt: experiment: align values in map composites where possible
...
- gofmt -w src misc
- looking for feedback
R=rsc, r
CC=golang-dev
https://golang.org/cl/223076
2010-03-02 13:46:51 -08:00
Robert Griesemer
36ea8bb7bf
Minor mistake in docs.
...
Fixes #633 .
R=adg
CC=golang-dev
https://golang.org/cl/224090
2010-03-01 16:22:22 -08:00
Andrey Mirtchovski
1f3222a57b
strings.Bytes -> []byte for documentation example, src/pkg/* comments, and htmlgen.go
...
R=rsc, adg
CC=golang-dev
https://golang.org/cl/224087
2010-03-02 11:18:22 +11:00
Andrew Gerrand
6d0f1fedbf
gotest: set $AS to $GOBIN/$AS
...
May address issue 624.
R=rsc
CC=golang-dev
https://golang.org/cl/223083
2010-02-28 21:49:06 -08:00
Stephen Ma
a627d61d5d
Count utf8 runes, not bytes when determining string width. Note
...
that pad() still counts bytes, but it's currently only used for
1 byte runes.
Fixes #612 .
R=r
CC=golang-dev
https://golang.org/cl/217064
2010-02-28 21:15:56 +11:00
Russ Cox
fe746055a2
testing/benchmark: paranoia - make sure n always grows
...
R=wcn
CC=golang-dev
https://golang.org/cl/223075
2010-02-26 17:18:43 -08:00
Raif S. Naffah
ef531c2b57
crypto/blowfish: new package
...
R=rsc
CC=golang-dev
https://golang.org/cl/217116
2010-02-26 15:24:46 -08:00
Russ Cox
297cddbb11
A+C: add Raif S. Naffah (individual CLA)
...
R=gri
CC=golang-dev
https://golang.org/cl/223073
2010-02-26 14:54:28 -08:00
Robert Griesemer
059bc2742a
go/parser cleanup: remove some state by writing more functional code
...
R=rsc
CC=golang-dev
https://golang.org/cl/223071
2010-02-26 14:50:12 -08:00
Russ Cox
bc6878331a
8g: fix out of register bug in byte(x) code
...
R=ken2
CC=golang-dev
https://golang.org/cl/223070
2010-02-26 14:21:52 -08:00
Ian Lance Taylor
e6443f6255
Add -r option to 6l/8l/5l.
...
This permits more flexibility with cgo and swig in cases where
the program is run on a machine other than the one on which it
is built. Rather than storing the absolute path to the shared
library in the DT_NEEDED entry, we can store just the name,
and let the dynamic linker find it using DT_RUNPATH or the
LD_LIBRARY_PATH environment variable.
R=rsc
CC=golang-dev
https://golang.org/cl/223068
2010-02-26 14:03:52 -08:00
Russ Cox
ba50599e46
8g: make a[byte(x)] truncate x
...
R=ken2
CC=golang-dev
https://golang.org/cl/223069
2010-02-26 13:15:29 -08:00