diff options
| author | Martin Möhrmann <martisch@uos.de> | 2015-02-13 15:59:54 +0100 |
|---|---|---|
| committer | Robert Griesemer <gri@golang.org> | 2015-03-05 16:52:41 +0000 |
| commit | d5b5d6702ad7d64f189c915225b945a2aa471a38 (patch) | |
| tree | 5a97a8907d45cacc50312ce295beb55ffcc60184 /src/cmd/internal/obj | |
| parent | 84f53339befccbb4c3449955e205a6a727282f10 (diff) | |
| download | go-d5b5d6702ad7d64f189c915225b945a2aa471a38.tar.xz | |
strconv: simplify code for binary exponent float format
Use optimized formatBits function to format mantissa and exponent.
Add benchmark for binary exponent float format.
on darwin/386
benchmark old ns/op new ns/op delta
BenchmarkAppendFloatBinaryExp 520 122 -76.54%
on darwin/amd64
benchmark old ns/op new ns/op delta
BenchmarkAppendFloatBinaryExp 76.9 84.3 +9.62%
Change-Id: If543552f1960e1655bed3a4130914e5eaa3aac69
Reviewed-on: https://go-review.googlesource.com/5600
Reviewed-by: Robert Griesemer <gri@golang.org>
Diffstat (limited to 'src/cmd/internal/obj')
0 files changed, 0 insertions, 0 deletions
