]> Cypherpunks repositories - gostls13.git/commit
big: add Int methods to act on numbered bits.
authorRoger Peppe <rogpeppe@gmail.com>
Tue, 17 May 2011 20:38:21 +0000 (13:38 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 17 May 2011 20:38:21 +0000 (13:38 -0700)
commit83fd82b349009ad2a0f7da1d11499cc9e3d0ca1b
treebfa829f044199c3e6ba61a0dae2c1bd0250297c5
parent8f57f493981704fa1118c1f916edc787d4c2bccd
big: add Int methods to act on numbered bits.
Speeds up setting individual bits by ~75%, useful
when using big.Int as a bit set.

R=gri, rsc
CC=golang-dev
https://golang.org/cl/4538053
src/pkg/big/int.go
src/pkg/big/int_test.go
src/pkg/big/nat.go