]> Cypherpunks repositories - gostls13.git/commit
- factored out 128-bit muladd and div into arith.go
authorRobert Griesemer <gri@golang.org>
Tue, 11 Aug 2009 00:29:55 +0000 (17:29 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 11 Aug 2009 00:29:55 +0000 (17:29 -0700)
commit8db8682453e3579daebfd8aa24dc723b9f23ab20
treee4be0f7e0ab3e2cf8daf26b8fc6a7a3506f1055e
parentea8197cb4594ce5abd0b2bdb711d38b525b9edc5
- factored out 128-bit muladd and div into arith.go
- wrote corresponding fast versions in fast.arith.s
- implemented in-place operations for some routines
- updated existing code to be compatible with in-place
  routines

These changes allow the pidigits benchmark to run
approx. 30% faster. Enabling the assembly routines
in fast.arith.s will give another approx. 3%.

R=r
DELTA=486  (252 added, 68 deleted, 166 changed)
OCL=32980
CL=33003
src/pkg/bignum/Makefile
src/pkg/bignum/arith.go [new file with mode: 0644]
src/pkg/bignum/bignum.go
src/pkg/bignum/fast.arith.s [new file with mode: 0644]
src/pkg/bignum/integer.go
src/pkg/bignum/rational.go