go/src/strconv
Rémy Oudompheng a1f7dbf0aa strconv: simplify (*extFloat).Multiply using math/bits.Mul64
This method was using a handwritten long multiplication of uint64s.
Since implementation of #24813 we can remove it and replace it
by Mul64 from math/bits.

This brings a small speedup for 64-bit platforms.

Benchmarks on Haswell Celeron 2955U.

benchmark                                  old ns/op     new ns/op     delta
BenchmarkAppendFloat/Decimal-2             127           127           +0.00%
BenchmarkAppendFloat/Float-2               340           317           -6.76%
BenchmarkAppendFloat/Exp-2                 258           233           -9.69%
BenchmarkAppendFloat/NegExp-2              256           231           -9.77%
BenchmarkAppendFloat/Big-2                 402           375           -6.72%
BenchmarkAppendFloat/BinaryExp-2           113           114           +0.88%
BenchmarkAppendFloat/32Integer-2           125           125           +0.00%
BenchmarkAppendFloat/32ExactFraction-2     274           249           -9.12%
BenchmarkAppendFloat/32Point-2             339           317           -6.49%
BenchmarkAppendFloat/32Exp-2               255           229           -10.20%
BenchmarkAppendFloat/32NegExp-2            254           229           -9.84%
BenchmarkAppendFloat/64Fixed1-2            165           154           -6.67%
BenchmarkAppendFloat/64Fixed2-2            184           176           -4.35%
BenchmarkAppendFloat/64Fixed3-2            168           158           -5.95%
BenchmarkAppendFloat/64Fixed4-2            187           177           -5.35%
BenchmarkAppendFloat/Slowpath64-2          84977         84883         -0.11%

Change-Id: If05784e856289b3b7bf136567882e7ee10234756
Reviewed-on: https://go-review.googlesource.com/c/go/+/157717
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
2019-03-04 22:25:21 +00:00
..
testdata
atob.go strconv: add missing period to godoc comment 2018-06-09 01:26:25 +00:00
atob_test.go
atof.go strconv: accept underscores in ParseInt, ParseUint, ParseFloat 2019-02-12 14:48:24 +00:00
atof_test.go strconv: accept underscores in ParseInt, ParseUint, ParseFloat 2019-02-12 14:48:24 +00:00
atoi.go strconv: add 0b, 0o integer prefixes in ParseInt, ParseUint 2019-02-12 14:48:26 +00:00
atoi_test.go strconv: remove use of DeepEqual for testing errors 2019-02-27 18:23:19 +00:00
decimal.go
decimal_test.go
doc.go strconv: add missing package name into doc.go(godoc overview) 2018-12-30 18:30:11 +00:00
example_test.go strconv: add example for QuoteRuneToGraphic and QuoteToGraphic functions 2018-10-08 19:13:38 +00:00
export_test.go
extfloat.go strconv: simplify (*extFloat).Multiply using math/bits.Mul64 2019-03-04 22:25:21 +00:00
fp_test.go
ftoa.go strconv: format hex floats 2019-02-12 14:48:22 +00:00
ftoa_test.go strconv: format hex floats 2019-02-12 14:48:22 +00:00
internal_test.go
isprint.go all: fix non-standard "DO NOT EDIT" comments for generated files 2018-03-10 17:50:11 +00:00
itoa.go strconv: make docs for Itoa and Atoi slightly higher level 2018-12-31 22:48:43 +00:00
itoa_test.go strconv: simplify and optimize Itoa(small) 2018-05-03 18:07:02 +00:00
makeisprint.go all: fix non-standard "DO NOT EDIT" comments for generated files 2018-03-10 17:50:11 +00:00
quote.go strconv: format hex floats 2019-02-12 14:48:22 +00:00
quote_test.go
strconv_test.go