]> Cypherpunks repositories - gostls13.git/commit
math: correct Atan2(±y,+∞) = ±0 on s390x
authorBrian Kessler <brian.m.kessler@gmail.com>
Sat, 14 Mar 2020 05:24:38 +0000 (23:24 -0600)
committerRobert Griesemer <gri@golang.org>
Wed, 25 Mar 2020 04:06:34 +0000 (04:06 +0000)
commit6b6414cab49fcc035e1f20bafdb723077e7d36bb
treec1c99f9731668aa9fe1dd98beaaed1ea68b7743c
parent97585092f590072209110bce336f57506984c02b
math: correct Atan2(±y,+∞) = ±0 on s390x

The s390x assembly implementation was previously only handling this
case correctly for x = -Pi.  Update the special case handling for
any y.

Fixes #35446

Change-Id: I355575e9ec8c7ce8bd9db10d74f42a22f39a2f38
Reviewed-on: https://go-review.googlesource.com/c/go/+/223420
Run-TryBot: Brian Kessler <brian.m.kessler@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Michael Munday <mike.munday@ibm.com>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/math/all_test.go
src/math/atan2_s390x.s