go/src/math
Russ Cox e4615ad74d math/big: move division into natdiv.go
Code moved and functions reordered to be in a consistent
top-down dependency order, but otherwise unchanged.

First step toward commenting division algorithms.

Change-Id: Ib5e604fb5b2867edff3a228ba4e57b5cb32c4137
Reviewed-on: https://go-review.googlesource.com/c/go/+/321077
Trust: Russ Cox <rsc@golang.org>
Trust: Katie Hockman <katie@golang.org>
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Katie Hockman <katie@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
2021-05-26 13:25:43 +00:00
..
big math/big: move division into natdiv.go 2021-05-26 13:25:43 +00:00
bits bits: use same expression with system bit size 2021-04-27 16:25:40 +00:00
cmplx all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
rand testing: add -shuffle=off|on|N to alter the execution order of tests and benchmarks 2021-04-28 16:06:21 +00:00
abs.go cmd/compile,math: improve code generation for math.Abs 2017-08-25 19:15:01 +00:00
acos_s390x.s math: use s390x mnemonics rather than binary encodings 2018-08-20 17:42:08 +00:00
acosh.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
acosh_s390x.s math: use new mnemonics for 'rotate then insert' on s390x 2019-04-16 15:34:41 +00:00
all_test.go math: increase precision of math.SmallestNonzeroFloat64 2021-04-30 00:13:38 +00:00
arith_s390x.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
arith_s390x_test.go math: use SIMD to accelerate additional scalar math functions on s390x 2017-05-08 19:52:30 +00:00
asin.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
asin_s390x.s math: use s390x mnemonics rather than binary encodings 2018-08-20 17:42:08 +00:00
asinh.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
asinh_s390x.s math: use new mnemonics for 'rotate then insert' on s390x 2019-04-16 15:34:41 +00:00
atan.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
atan2.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
atan2_s390x.s math: correct Atan2(±y,+∞) = ±0 on s390x 2020-03-25 04:06:34 +00:00
atan_s390x.s math: use new mnemonics for 'rotate then insert' on s390x 2019-04-16 15:34:41 +00:00
atanh.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
atanh_s390x.s math: use new mnemonics for 'rotate then insert' on s390x 2019-04-16 15:34:41 +00:00
bits.go math: add RoundToEven function 2017-10-24 22:33:09 +00:00
cbrt.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
cbrt_s390x.s math: use new mnemonics for 'rotate then insert' on s390x 2019-04-16 15:34:41 +00:00
const.go math: add MaxUint, MinInt, MaxInt 2021-05-03 22:44:33 +00:00
const_test.go math: add MaxUint, MinInt, MaxInt 2021-05-03 22:44:33 +00:00
copysign.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
cosh_s390x.s math: use new mnemonics for 'rotate then insert' on s390x 2019-04-16 15:34:41 +00:00
dim.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
dim_amd64.s math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
dim_arm64.s math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
dim_asm.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
dim_noasm.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
dim_riscv64.s math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
dim_s390x.s math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
erf.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
erf_s390x.s math: use new mnemonics for 'rotate then insert' on s390x 2019-04-16 15:34:41 +00:00
erfc_s390x.s math: use new mnemonics for 'rotate then insert' on s390x 2019-04-16 15:34:41 +00:00
erfinv.go all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
example_test.go math: add function examples. 2020-05-02 20:22:19 +00:00
exp.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
exp2_asm.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
exp2_noasm.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
exp_amd64.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
exp_amd64.s math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
exp_arm64.s math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
exp_asm.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
exp_noasm.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
exp_s390x.s math: use new mnemonics for 'rotate then insert' on s390x 2019-04-16 15:34:41 +00:00
expm1.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
expm1_s390x.s math: use new mnemonics for 'rotate then insert' on s390x 2019-04-16 15:34:41 +00:00
export_s390x_test.go math: use SIMD to accelerate additional scalar math functions on s390x 2017-05-08 19:52:30 +00:00
export_test.go math: use constant rather than variable for exported test threshold 2018-12-13 06:33:18 +00:00
floor.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
floor_386.s math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
floor_amd64.s math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
floor_arm64.s math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
floor_asm.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
floor_noasm.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
floor_ppc64x.s all: add //go:build lines to assembly files 2021-05-13 09:12:17 +00:00
floor_s390x.s math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
floor_wasm.s math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
fma.go math: simplify comparison in FMA when swapping p and z 2021-03-29 06:45:05 +00:00
frexp.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
gamma.go math: speed up Gamma(+Inf) 2016-10-18 22:12:03 +00:00
huge_test.go all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
hypot.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
hypot_386.s math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
hypot_amd64.s math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
hypot_asm.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
hypot_noasm.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
j0.go all: s/cancelation/cancellation/ 2019-04-16 20:27:15 +00:00
j1.go all: s/cancelation/cancellation/ 2019-04-16 20:27:15 +00:00
jn.go math: use Sincos instead of Sin and Cos in Jn and Yn 2019-03-25 22:41:37 +00:00
ldexp.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
lgamma.go go/printer, gofmt: tuned table alignment for better results 2018-04-04 13:39:34 -07:00
log.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
log1p.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
log1p_s390x.s math: use new mnemonics for 'rotate then insert' on s390x 2019-04-16 15:34:41 +00:00
log10.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
log10_s390x.s math: use new mnemonics for 'rotate then insert' on s390x 2019-04-16 15:34:41 +00:00
log_amd64.s math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
log_asm.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
log_s390x.s math: use new mnemonics for 'rotate then insert' on s390x 2019-04-16 15:34:41 +00:00
log_stub.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
logb.go build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
mod.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
modf.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
modf_arm64.s math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
modf_asm.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
modf_noasm.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
modf_ppc64x.s all: add //go:build lines to assembly files 2021-05-13 09:12:17 +00:00
nextafter.go math: change Nextafter64 to Nextafter in the description of Nextafter 2015-02-17 14:29:18 +00:00
pow.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
pow10.go math: speed up and improve accuracy of Pow10 2017-02-22 19:17:04 +00:00
pow_s390x.s math: use new mnemonics for 'rotate then insert' on s390x 2019-04-16 15:34:41 +00:00
remainder.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
signbit.go all: use "reports whether" consistently in the few places that didn't 2018-11-02 22:47:58 +00:00
sin.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
sin_s390x.s cmd/asm, math: add s390x floating point test instructions 2018-04-03 16:08:04 +00:00
sincos.go src, misc: apply gofmt 2019-02-19 20:38:28 +00:00
sinh.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
sinh_s390x.s math: use new mnemonics for 'rotate then insert' on s390x 2019-04-16 15:34:41 +00:00
sqrt.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
sqrt_386.s math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
sqrt_amd64.s math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
sqrt_arm.s math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
sqrt_arm64.s math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
sqrt_asm.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
sqrt_mipsx.s all: add //go:build lines to assembly files 2021-05-13 09:12:17 +00:00
sqrt_noasm.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
sqrt_ppc64x.s all: add //go:build lines to assembly files 2021-05-13 09:12:17 +00:00
sqrt_riscv64.s all: add //go:build lines to assembly files 2021-05-13 09:12:17 +00:00
sqrt_s390x.s math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
sqrt_wasm.s math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
stubs.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
stubs_s390x.s math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
tan.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
tan_s390x.s math: use s390x mnemonics rather than binary encodings 2018-08-20 17:42:08 +00:00
tanh.go math: avoid assembly stubs 2021-04-15 15:48:19 +00:00
tanh_s390x.s math: use new mnemonics for 'rotate then insert' on s390x 2019-04-16 15:34:41 +00:00
trig_reduce.go math/cmplx: implement Payne-Hanek range reduction 2020-03-14 04:12:41 +00:00
unsafe.go math: document sign bit correspondence for floating-point/bits conversions 2018-12-06 22:27:54 +00:00