1
0
mirror of https://github.com/golang/go synced 2024-10-04 17:11:21 -06:00
go/src/pkg/big
Robert Griesemer 52cc058172 big: cleanups and performance tuning
- removed last argument (n) from all core arithmetic routines;
  instead, use the length of the result

- simplified nat.make implementation and chose a better capacity
  for new values, removed a TODO in the process

Changing the constant e from 1 (old) to 4 (new) improved
pidigits -s -n 10000 by ~9% (on a 3.06GHz Intel Core 2 Duo):

user	0m3.882s (old)
user	0m3.549s (new)

R=rsc
CC=golang-dev
https://golang.org/cl/1133043
2010-05-08 13:52:36 -07:00
..
arith_386.s big: cleanups and performance tuning 2010-05-08 13:52:36 -07:00
arith_amd64.s big: cleanups and performance tuning 2010-05-08 13:52:36 -07:00
arith_arm.s big: implemented core shift routines in arith.go and 2010-04-30 09:29:11 -07:00
arith_test.go big: cleanups and performance tuning 2010-05-08 13:52:36 -07:00
arith.go big: cleanups and performance tuning 2010-05-08 13:52:36 -07:00
calibrate_test.go big: improved computation of "karatsuba length" for faster multiplies 2010-04-30 11:54:27 -07:00
int_test.go big: completed set of Int division routines & cleanups 2010-05-03 18:48:05 -07:00
int.go big: more cleanup 2010-05-07 18:26:31 -07:00
Makefile go: makes it build for the case $GOROOT has whitespaces 2009-11-23 17:32:51 -08:00
nat_test.go big: Add bitwise methods for Int 2010-05-03 11:20:52 -07:00
nat.go big: cleanups and performance tuning 2010-05-08 13:52:36 -07:00