]> Cypherpunks repositories - gostls13.git/commit
big: refine printf formatting and optimize string conversion
authorMichael T. Jones <mtj@google.com>
Thu, 21 Jul 2011 21:29:08 +0000 (14:29 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 21 Jul 2011 21:29:08 +0000 (14:29 -0700)
commit12c736158affe5c112d119142bb9403d193080de
treef6eb78673062c1ea95f16bd753caee7f324da0c2
parent301d8a6d4aa9837530390b87266609bf1443566f
big: refine printf formatting and optimize string conversion

Now handles standard precision specifications, standard interactions of
redundant specifications (such as precision and zero-fill), handles the
special case of precision specified but equal to zero, and generates the
output without recursive calls to format/printf to be clearer and faster.

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