1
0
mirror of https://github.com/golang/go synced 2024-11-07 13:26:10 -07:00
go/src/math
smasher164 6f90ee36e9 math: simplify comparison in FMA when swapping p and z
Discovered by Junchen Li on CL 246858, the comparison before p and z are
swapped can be simplified from

    pe < ze || (pe == ze && (pm1 < zm1 || (pm1 == zm1 && pm2 < zm2)))

to

    pe < ze || pe == ze && pm1 < zm1

because zm2 is initialized to 0 before the branch.

Change-Id: Iee92d570038df2b0f8941ef6e422a022654ab2d6
Reviewed-on: https://go-review.googlesource.com/c/go/+/247241
Run-TryBot: Akhil Indurti <aindurti@gmail.com>
Run-TryBot: Emmanuel Odeke <emmanuel@orijtech.com>
Trust: Emmanuel Odeke <emmanuel@orijtech.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
2021-03-29 06:45:05 +00:00
..
big math/big: don't require runtime.(*Frame).Next symbol present 2021-03-24 15:51:26 +00:00
bits math/bits: folded reverse tables by using const string 2021-03-17 03:18:12 +00:00
cmplx all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
rand all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
abs.go
acos_s390x.s
acosh_s390x.s
acosh.go math: Remove redundant local variable Ln2 2020-09-19 09:09:52 +00:00
all_test.go cmd/compile: optimize single-precision floating point square root 2021-03-02 06:38:07 +00:00
arith_s390x_test.go
arith_s390x.go math: simplify hasVX checking on s390x 2020-04-27 20:06:57 +00:00
asin_s390x.s
asin.go
asinh_s390x.s
asinh.go
atan2_s390x.s math: correct Atan2(±y,+∞) = ±0 on s390x 2020-03-25 04:06:34 +00:00
atan2.go
atan_s390x.s
atan.go
atanh_s390x.s
atanh.go
bits.go
cbrt_s390x.s
cbrt.go
const.go
copysign.go
cosh_s390x.s
dim_amd64.s
dim_arm64.s
dim_riscv64.s math: implement Min/Max in riscv64 assembly 2020-05-04 17:29:13 +00:00
dim_s390x.s
dim.go
erf_s390x.s
erf.go
erfc_s390x.s
erfinv.go
example_test.go math: add function examples. 2020-05-02 20:22:19 +00:00
exp_amd64.s math: fix dead link to springerlink (now link.springer) 2020-05-29 14:33:50 +00:00
exp_arm64.s
exp_asm.go all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
exp_s390x.s
exp.go
expm1_s390x.s
expm1.go
export_s390x_test.go
export_test.go
floor_386.s
floor_amd64.s
floor_arm64.s
floor_ppc64x.s
floor_s390x.s
floor_wasm.s
floor.go
fma.go math: simplify comparison in FMA when swapping p and z 2021-03-29 06:45:05 +00:00
frexp.go
gamma.go
huge_test.go all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
hypot_386.s
hypot_amd64.s
hypot.go
j0.go
j1.go
jn.go
ldexp.go
lgamma.go
log1p_s390x.s
log1p.go math: simplify the code 2020-08-15 02:20:42 +00:00
log10_s390x.s
log10.go
log_amd64.s
log_s390x.s
log.go
logb.go
mod.go
modf_arm64.s
modf_ppc64x.s
modf.go
nextafter.go
pow10.go
pow_s390x.s
pow.go
remainder.go
signbit.go
sin_s390x.s
sin.go
sincos.go
sinh_s390x.s
sinh.go
sqrt_386.s
sqrt_amd64.s
sqrt_arm64.s
sqrt_arm.s
sqrt_mipsx.s
sqrt_ppc64x.s
sqrt_riscv64.s math: implement Sqrt in assembly for riscv64 2020-02-25 16:43:26 +00:00
sqrt_s390x.s
sqrt_wasm.s
sqrt.go math: fix typo in sqrt.go code comment 2021-01-27 00:15:06 +00:00
stubs_386.s math: remove most 387 implementations 2021-02-19 00:41:09 +00:00
stubs_amd64.s
stubs_arm64.s
stubs_arm.s
stubs_mips64x.s
stubs_mipsx.s
stubs_ppc64x.s
stubs_riscv64.s math: implement Min/Max in riscv64 assembly 2020-05-04 17:29:13 +00:00
stubs_s390x.s math: simplify hasVX checking on s390x 2020-04-27 20:06:57 +00:00
stubs_wasm.s
tan_s390x.s
tan.go
tanh_s390x.s
tanh.go
trig_reduce.go math/cmplx: implement Payne-Hanek range reduction 2020-03-14 04:12:41 +00:00
unsafe.go