]> Cypherpunks repositories - gostls13.git/commit
cmd/compiler/internal/gc: remove flag argument from fconv (cleanup)
authorRobert Griesemer <gri@golang.org>
Wed, 19 Sep 2018 03:50:04 +0000 (20:50 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 20 Sep 2018 00:06:44 +0000 (00:06 +0000)
commit919d5aee22d3a56952f936dab63854aa1f141473
treefe7bfef2072581e9579aabefa4a1c9b87f727865
parente82d152e66e81812a5c6ebf075cc99efd2602b19
cmd/compiler/internal/gc: remove flag argument from fconv (cleanup)

The fconv flag arguments were 0, FmtSharp, and FmtSharp|FmtSign.
The 0 value was used for binary representation only, which was
readily available via Mpflt.String. Otherwise, FmtSharp was always
passed. FmtSign was used to print the '+' sign in case of a positive
number and only needed for complex number formatting. Instead
implemented cconv and handled it there.

Change-Id: I1f77282f995be9cfda05efb71a0e027836a9da26
Reviewed-on: https://go-review.googlesource.com/136195
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/const.go
src/cmd/compile/internal/gc/fmt.go
src/cmd/compile/internal/gc/mpfloat.go