]> Cypherpunks repositories - gostls13.git/commitdiff
math: switch s390x math.Pow to generic implementation
authorSrinivas Pokala <Pokala.Srinivas@ibm.com>
Fri, 14 Nov 2025 13:21:37 +0000 (14:21 +0100)
committerGopher Robot <gobot@golang.org>
Wed, 19 Nov 2025 21:32:20 +0000 (13:32 -0800)
The s390x assembly implementation of math.Pow incorrectly handles
certain subnormal cases. This change switches the function to use the
generic implementation instead.

Updates #76247

Cq-Include-Trybots: luci.golang.try:gotip-linux-s390x
Change-Id: I794339080d5a7acf79bbffaeb0214809006fd30c
Reviewed-on: https://go-review.googlesource.com/c/go/+/720540
Reviewed-by: Vishwanatha HD <vishwanatha.hd@ibm.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
Reviewed-by: Kiran M Vijay IBM <kiran.m.vijay@ibm.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Mark Freeman <markfreeman@google.com>
src/math/arith_s390x.go

index 129156a9f6d5940705c43425ed9f5ef3529608cc..2fda82fff4e8f6111f9406933f973e1bb86c8c9b 100644 (file)
@@ -129,7 +129,7 @@ func archExpm1(x float64) float64
 func expm1TrampolineSetup(x float64) float64
 func expm1Asm(x float64) float64
 
-const haveArchPow = true
+const haveArchPow = false
 
 func archPow(x, y float64) float64
 func powTrampolineSetup(x, y float64) float64