aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/api
diff options
context:
space:
mode:
authorMartin Möhrmann <martisch@uos.de>2016-02-19 22:45:38 +0100
committerRob Pike <r@golang.org>2016-02-19 22:55:30 +0000
commit5a9c128a0313df72973259bea946262cb8973d86 (patch)
treebf93c6c3747c30bbda6325c875414ae0428e5918 /src/cmd/api
parent113c4d25818e67599d3ff647480e4e68d6857f82 (diff)
downloadgo-5a9c128a0313df72973259bea946262cb8973d86.tar.xz
fmt: remove math package dependency and avoid float operations
Remove floating point comparisons and rely only on the information directly provided by appendFloat. Make restoring the zero padding flag explicit instead of using a defer. Rearrange some case distinctions to remove duplicated code. Add more test cases for zero padded floating point numbers with sign. benchmark old ns/op new ns/op delta BenchmarkSprintfFloat-4 187 180 -3.74% Change-Id: Ifa2ae85257909f40b1b18118c92b516933271729 Reviewed-on: https://go-review.googlesource.com/19721 Reviewed-by: Rob Pike <r@golang.org>
Diffstat (limited to 'src/cmd/api')
0 files changed, 0 insertions, 0 deletions