diff options
| author | Wèi Cōngruì <crvv.mail@gmail.com> | 2018-01-11 13:11:12 +0800 |
|---|---|---|
| committer | Robert Griesemer <gri@golang.org> | 2018-03-29 23:14:13 +0000 |
| commit | 4b265fb74736ffaba2ad5cc96f43e442ae0d9850 (patch) | |
| tree | ee1fce462b2b29701791ca76dd19a3d271df7bab /test/codegen/stack.go | |
| parent | 9967582f770f62f72a349ec276e00dba8639aa26 (diff) | |
| download | go-4b265fb74736ffaba2ad5cc96f43e442ae0d9850.tar.xz | |
math: fix Ldexp when result is below ldexp(2, -1075)
Before this change, the smallest result Ldexp can handle was
ldexp(2, -1075), which is SmallestNonzeroFloat64.
There are some numbers below it should also be rounded to
SmallestNonzeroFloat64. The change fixes this.
Fixes #23407
Change-Id: I76f4cb005a6e9ccdd95b5e5c734079fd5d29e4aa
Reviewed-on: https://go-review.googlesource.com/87338
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
Diffstat (limited to 'test/codegen/stack.go')
0 files changed, 0 insertions, 0 deletions
