X7ROOT File Manager
Current Path:
/opt/golang/1.22.0/src/math
opt
/
golang
/
1.22.0
/
src
/
math
/
π
..
π
abs.go
(366 B)
π
acos_s390x.s
(3.73 KB)
π
acosh.go
(1.71 KB)
π
acosh_s390x.s
(4.32 KB)
π
all_test.go
(86.77 KB)
π
arith_s390x.go
(3.73 KB)
π
arith_s390x_test.go
(10.78 KB)
π
asin.go
(1.09 KB)
π
asin_s390x.s
(4.16 KB)
π
asinh.go
(1.92 KB)
π
asinh_s390x.s
(5.74 KB)
π
atan.go
(3.03 KB)
π
atan2.go
(1.52 KB)
π
atan2_s390x.s
(6.93 KB)
π
atan_s390x.s
(3.69 KB)
π
atanh.go
(1.99 KB)
π
atanh_s390x.s
(5.06 KB)
π
big
π
bits
π
bits.go
(1.87 KB)
π
cbrt.go
(2.31 KB)
π
cbrt_s390x.s
(4.89 KB)
π
cmplx
π
const.go
(2.76 KB)
π
const_test.go
(1.29 KB)
π
copysign.go
(396 B)
π
cosh_s390x.s
(5.59 KB)
π
dim.go
(1.87 KB)
π
dim_amd64.s
(1.92 KB)
π
dim_arm64.s
(963 B)
π
dim_asm.go
(344 B)
π
dim_noasm.go
(410 B)
π
dim_riscv64.s
(1.16 KB)
π
dim_s390x.s
(1.97 KB)
π
erf.go
(11.51 KB)
π
erf_s390x.s
(8.5 KB)
π
erfc_s390x.s
(14.4 KB)
π
erfinv.go
(3.37 KB)
π
example_test.go
(3.75 KB)
π
exp.go
(5.38 KB)
π
exp2_asm.go
(252 B)
π
exp2_noasm.go
(284 B)
π
exp_amd64.go
(261 B)
π
exp_amd64.s
(4.24 KB)
π
exp_arm64.s
(5.36 KB)
π
exp_asm.go
(268 B)
π
exp_noasm.go
(302 B)
π
exp_s390x.s
(4.65 KB)
π
expm1.go
(7.91 KB)
π
expm1_s390x.s
(5.29 KB)
π
export_s390x_test.go
(732 B)
π
export_test.go
(357 B)
π
floor.go
(3.29 KB)
π
floor_386.s
(1.47 KB)
π
floor_amd64.s
(2 KB)
π
floor_arm64.s
(573 B)
π
floor_asm.go
(431 B)
π
floor_noasm.go
(531 B)
π
floor_ppc64x.s
(499 B)
π
floor_s390x.s
(579 B)
π
floor_wasm.s
(459 B)
π
fma.go
(4.61 KB)
π
frexp.go
(929 B)
π
gamma.go
(5.53 KB)
π
huge_test.go
(2.91 KB)
π
hypot.go
(850 B)
π
hypot_386.s
(1.81 KB)
π
hypot_amd64.s
(1.05 KB)
π
hypot_asm.go
(264 B)
π
hypot_noasm.go
(297 B)
π
j0.go
(13.6 KB)
π
j1.go
(13.3 KB)
π
jn.go
(7.18 KB)
π
ldexp.go
(1.05 KB)
π
lgamma.go
(11.03 KB)
π
log.go
(3.86 KB)
π
log10.go
(873 B)
π
log10_s390x.s
(4.73 KB)
π
log1p.go
(6.34 KB)
π
log1p_s390x.s
(5.15 KB)
π
log_amd64.s
(3.66 KB)
π
log_asm.go
(259 B)
π
log_s390x.s
(4.31 KB)
π
log_stub.go
(292 B)
π
logb.go
(1021 B)
π
mod.go
(903 B)
π
modf.go
(913 B)
π
modf_arm64.s
(447 B)
π
modf_asm.go
(292 B)
π
modf_noasm.go
(326 B)
π
modf_ppc64x.s
(416 B)
π
nextafter.go
(1.21 KB)
π
pow.go
(3.65 KB)
π
pow10.go
(1.24 KB)
π
pow_s390x.s
(16.27 KB)
π
rand
π
remainder.go
(2.04 KB)
π
signbit.go
(302 B)
π
sin.go
(6.35 KB)
π
sin_s390x.s
(8.57 KB)
π
sincos.go
(1.76 KB)
π
sinh.go
(1.69 KB)
π
sinh_s390x.s
(5.98 KB)
π
sqrt.go
(4.75 KB)
π
stubs.go
(2.57 KB)
π
stubs_s390x.s
(12.38 KB)
π
tan.go
(3.68 KB)
π
tan_s390x.s
(2.72 KB)
π
tanh.go
(2.66 KB)
π
tanh_s390x.s
(4.57 KB)
π
trig_reduce.go
(3.34 KB)
π
unsafe.go
(1.27 KB)
Editing: mod.go
// Copyright 2009-2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package math /* Floating-point mod function. */ // Mod returns the floating-point remainder of x/y. // The magnitude of the result is less than y and its // sign agrees with that of x. // // Special cases are: // // Mod(Β±Inf, y) = NaN // Mod(NaN, y) = NaN // Mod(x, 0) = NaN // Mod(x, Β±Inf) = x // Mod(x, NaN) = NaN func Mod(x, y float64) float64 { if haveArchMod { return archMod(x, y) } return mod(x, y) } func mod(x, y float64) float64 { if y == 0 || IsInf(x, 0) || IsNaN(x) || IsNaN(y) { return NaN() } y = Abs(y) yfr, yexp := Frexp(y) r := x if x < 0 { r = -x } for r >= y { rfr, rexp := Frexp(r) if rfr < yfr { rexp = rexp - 1 } r = r - Ldexp(y, rexp-yexp) } if x < 0 { r = -r } return r }
Upload File
Create Folder