OXIESEC PANEL
- Current Dir:
/
/
opt
/
golang
/
1.22.0
/
src
/
math
Server IP: 191.96.63.230
Upload:
Create Dir:
Name
Size
Modified
Perms
π
..
-
02/02/2024 06:09:55 PM
rwxr-xr-x
π
abs.go
366 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
acos_s390x.s
3.73 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
acosh.go
1.71 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
acosh_s390x.s
4.32 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
all_test.go
86.77 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
arith_s390x.go
3.73 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
arith_s390x_test.go
10.78 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
asin.go
1.09 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
asin_s390x.s
4.16 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
asinh.go
1.92 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
asinh_s390x.s
5.74 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
atan.go
3.03 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
atan2.go
1.52 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
atan2_s390x.s
6.93 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
atan_s390x.s
3.69 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
atanh.go
1.99 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
atanh_s390x.s
5.06 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
big
-
02/02/2024 06:09:55 PM
rwxr-xr-x
π
bits
-
02/02/2024 06:09:55 PM
rwxr-xr-x
π
bits.go
1.87 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
cbrt.go
2.31 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
cbrt_s390x.s
4.89 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
cmplx
-
02/02/2024 06:09:55 PM
rwxr-xr-x
π
const.go
2.76 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
const_test.go
1.29 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
copysign.go
396 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
cosh_s390x.s
5.59 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
dim.go
1.87 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
dim_amd64.s
1.92 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
dim_arm64.s
963 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
dim_asm.go
344 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
dim_noasm.go
410 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
dim_riscv64.s
1.16 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
dim_s390x.s
1.97 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
erf.go
11.51 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
erf_s390x.s
8.5 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
erfc_s390x.s
14.4 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
erfinv.go
3.37 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
example_test.go
3.75 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
exp.go
5.38 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
exp2_asm.go
252 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
exp2_noasm.go
284 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
exp_amd64.go
261 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
exp_amd64.s
4.24 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
exp_arm64.s
5.36 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
exp_asm.go
268 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
exp_noasm.go
302 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
exp_s390x.s
4.65 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
expm1.go
7.91 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
expm1_s390x.s
5.29 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
export_s390x_test.go
732 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
export_test.go
357 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
floor.go
3.29 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
floor_386.s
1.47 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
floor_amd64.s
2 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
floor_arm64.s
573 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
floor_asm.go
431 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
floor_noasm.go
531 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
floor_ppc64x.s
499 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
floor_s390x.s
579 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
floor_wasm.s
459 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
fma.go
4.61 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
frexp.go
929 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
gamma.go
5.53 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
huge_test.go
2.91 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
hypot.go
850 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
hypot_386.s
1.81 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
hypot_amd64.s
1.05 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
hypot_asm.go
264 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
hypot_noasm.go
297 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
j0.go
13.6 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
j1.go
13.3 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
jn.go
7.18 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
ldexp.go
1.05 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
lgamma.go
11.03 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
log.go
3.86 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
log10.go
873 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
log10_s390x.s
4.73 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
log1p.go
6.34 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
log1p_s390x.s
5.15 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
log_amd64.s
3.66 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
log_asm.go
259 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
log_s390x.s
4.31 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
log_stub.go
292 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
logb.go
1021 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
mod.go
903 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
modf.go
913 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
modf_arm64.s
447 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
modf_asm.go
292 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
modf_noasm.go
326 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
modf_ppc64x.s
416 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
nextafter.go
1.21 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
pow.go
3.65 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
pow10.go
1.24 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
pow_s390x.s
16.27 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
rand
-
02/02/2024 06:09:55 PM
rwxr-xr-x
π
remainder.go
2.04 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
signbit.go
302 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
sin.go
6.35 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
sin_s390x.s
8.57 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
sincos.go
1.76 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
sinh.go
1.69 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
sinh_s390x.s
5.98 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
sqrt.go
4.75 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
stubs.go
2.57 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
stubs_s390x.s
12.38 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
tan.go
3.68 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
tan_s390x.s
2.72 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
tanh.go
2.66 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
tanh_s390x.s
4.57 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
trig_reduce.go
3.34 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
unsafe.go
1.27 KB
02/02/2024 06:09:55 PM
rw-r--r--
Editing: floor.go
Close
// Copyright 2009 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 // Floor returns the greatest integer value less than or equal to x. // // Special cases are: // // Floor(Β±0) = Β±0 // Floor(Β±Inf) = Β±Inf // Floor(NaN) = NaN func Floor(x float64) float64 { if haveArchFloor { return archFloor(x) } return floor(x) } func floor(x float64) float64 { if x == 0 || IsNaN(x) || IsInf(x, 0) { return x } if x < 0 { d, fract := Modf(-x) if fract != 0.0 { d = d + 1 } return -d } d, _ := Modf(x) return d } // Ceil returns the least integer value greater than or equal to x. // // Special cases are: // // Ceil(Β±0) = Β±0 // Ceil(Β±Inf) = Β±Inf // Ceil(NaN) = NaN func Ceil(x float64) float64 { if haveArchCeil { return archCeil(x) } return ceil(x) } func ceil(x float64) float64 { return -Floor(-x) } // Trunc returns the integer value of x. // // Special cases are: // // Trunc(Β±0) = Β±0 // Trunc(Β±Inf) = Β±Inf // Trunc(NaN) = NaN func Trunc(x float64) float64 { if haveArchTrunc { return archTrunc(x) } return trunc(x) } func trunc(x float64) float64 { if x == 0 || IsNaN(x) || IsInf(x, 0) { return x } d, _ := Modf(x) return d } // Round returns the nearest integer, rounding half away from zero. // // Special cases are: // // Round(Β±0) = Β±0 // Round(Β±Inf) = Β±Inf // Round(NaN) = NaN func Round(x float64) float64 { // Round is a faster implementation of: // // func Round(x float64) float64 { // t := Trunc(x) // if Abs(x-t) >= 0.5 { // return t + Copysign(1, x) // } // return t // } bits := Float64bits(x) e := uint(bits>>shift) & mask if e < bias { // Round abs(x) < 1 including denormals. bits &= signMask // +-0 if e == bias-1 { bits |= uvone // +-1 } } else if e < bias+shift { // Round any abs(x) >= 1 containing a fractional component [0,1). // // Numbers with larger exponents are returned unchanged since they // must be either an integer, infinity, or NaN. const half = 1 << (shift - 1) e -= bias bits += half >> e bits &^= fracMask >> e } return Float64frombits(bits) } // RoundToEven returns the nearest integer, rounding ties to even. // // Special cases are: // // RoundToEven(Β±0) = Β±0 // RoundToEven(Β±Inf) = Β±Inf // RoundToEven(NaN) = NaN func RoundToEven(x float64) float64 { // RoundToEven is a faster implementation of: // // func RoundToEven(x float64) float64 { // t := math.Trunc(x) // odd := math.Remainder(t, 2) != 0 // if d := math.Abs(x - t); d > 0.5 || (d == 0.5 && odd) { // return t + math.Copysign(1, x) // } // return t // } bits := Float64bits(x) e := uint(bits>>shift) & mask if e >= bias { // Round abs(x) >= 1. // - Large numbers without fractional components, infinity, and NaN are unchanged. // - Add 0.499.. or 0.5 before truncating depending on whether the truncated // number is even or odd (respectively). const halfMinusULP = (1 << (shift - 1)) - 1 e -= bias bits += (halfMinusULP + (bits>>(shift-e))&1) >> e bits &^= fracMask >> e } else if e == bias-1 && bits&fracMask != 0 { // Round 0.5 < abs(x) < 1. bits = bits&signMask | uvone // +-1 } else { // Round abs(x) <= 0.5 including denormals. bits &= signMask // +-0 } return Float64frombits(bits) }