Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.31
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
local /
go /
src /
math /
[ HOME SHELL ]
Name
Size
Permission
Action
big
[ DIR ]
drwxr-xr-x
bits
[ DIR ]
drwxr-xr-x
cmplx
[ DIR ]
drwxr-xr-x
rand
[ DIR ]
drwxr-xr-x
abs.go
363
B
-rw-r--r--
acos_s390x.s
3.73
KB
-rw-r--r--
acosh.go
1.72
KB
-rw-r--r--
acosh_s390x.s
4.32
KB
-rw-r--r--
all_test.go
84.21
KB
-rw-r--r--
arith_s390x.go
2.01
KB
-rw-r--r--
arith_s390x_test.go
10.78
KB
-rw-r--r--
asin.go
983
B
-rw-r--r--
asin_386.s
1.09
KB
-rw-r--r--
asin_s390x.s
4.16
KB
-rw-r--r--
asinh.go
1.85
KB
-rw-r--r--
asinh_s390x.s
5.74
KB
-rw-r--r--
atan.go
2.97
KB
-rw-r--r--
atan2.go
1.45
KB
-rw-r--r--
atan2_386.s
396
B
-rw-r--r--
atan2_s390x.s
6.88
KB
-rw-r--r--
atan_386.s
376
B
-rw-r--r--
atan_s390x.s
3.69
KB
-rw-r--r--
atanh.go
1.93
KB
-rw-r--r--
atanh_s390x.s
5.36
KB
-rw-r--r--
bits.go
1.87
KB
-rw-r--r--
cbrt.go
2.25
KB
-rw-r--r--
cbrt_s390x.s
4.89
KB
-rw-r--r--
const.go
2.18
KB
-rw-r--r--
copysign.go
378
B
-rw-r--r--
cosh_s390x.s
5.59
KB
-rw-r--r--
dim.go
1.55
KB
-rw-r--r--
dim_amd64.s
1.9
KB
-rw-r--r--
dim_arm64.s
947
B
-rw-r--r--
dim_s390x.s
1.96
KB
-rw-r--r--
erf.go
11.38
KB
-rw-r--r--
erf_s390x.s
8.5
KB
-rw-r--r--
erfc_s390x.s
14.4
KB
-rw-r--r--
erfinv.go
3.36
KB
-rw-r--r--
example_test.go
3.33
KB
-rw-r--r--
exp.go
5.25
KB
-rw-r--r--
exp2_386.s
1.12
KB
-rw-r--r--
exp_amd64.s
4.23
KB
-rw-r--r--
exp_arm64.s
5.35
KB
-rw-r--r--
exp_asm.go
260
B
-rw-r--r--
exp_s390x.s
4.65
KB
-rw-r--r--
expm1.go
7.84
KB
-rw-r--r--
expm1_386.s
1.84
KB
-rw-r--r--
expm1_s390x.s
5.29
KB
-rw-r--r--
export_s390x_test.go
732
B
-rw-r--r--
export_test.go
357
B
-rw-r--r--
floor.go
3.09
KB
-rw-r--r--
floor_386.s
1.45
KB
-rw-r--r--
floor_amd64.s
1.98
KB
-rw-r--r--
floor_arm64.s
549
B
-rw-r--r--
floor_ppc64x.s
483
B
-rw-r--r--
floor_s390x.s
555
B
-rw-r--r--
floor_wasm.s
447
B
-rw-r--r--
fma.go
4.49
KB
-rw-r--r--
frexp.go
860
B
-rw-r--r--
frexp_386.s
689
B
-rw-r--r--
gamma.go
5.52
KB
-rw-r--r--
huge_test.go
2.24
KB
-rw-r--r--
hypot.go
773
B
-rw-r--r--
hypot_386.s
1.8
KB
-rw-r--r--
hypot_amd64.s
1.05
KB
-rw-r--r--
j0.go
13.6
KB
-rw-r--r--
j1.go
13.3
KB
-rw-r--r--
jn.go
7.17
KB
-rw-r--r--
ldexp.go
990
B
-rw-r--r--
ldexp_386.s
441
B
-rw-r--r--
lgamma.go
11.02
KB
-rw-r--r--
log.go
3.8
KB
-rw-r--r--
log10.go
740
B
-rw-r--r--
log10_386.s
596
B
-rw-r--r--
log10_s390x.s
4.73
KB
-rw-r--r--
log1p.go
6.3
KB
-rw-r--r--
log1p_386.s
860
B
-rw-r--r--
log1p_s390x.s
5.15
KB
-rw-r--r--
log_386.s
394
B
-rw-r--r--
log_amd64.s
3.66
KB
-rw-r--r--
log_s390x.s
4.31
KB
-rw-r--r--
logb.go
1014
B
-rw-r--r--
mod.go
834
B
-rw-r--r--
mod_386.s
531
B
-rw-r--r--
modf.go
847
B
-rw-r--r--
modf_386.s
1.07
KB
-rw-r--r--
modf_arm64.s
439
B
-rw-r--r--
modf_ppc64x.s
404
B
-rw-r--r--
nextafter.go
1.2
KB
-rw-r--r--
pow.go
3.16
KB
-rw-r--r--
pow10.go
1.24
KB
-rw-r--r--
pow_s390x.s
16.27
KB
-rw-r--r--
remainder.go
1.96
KB
-rw-r--r--
remainder_386.s
543
B
-rw-r--r--
signbit.go
302
B
-rw-r--r--
sin.go
6.23
KB
-rw-r--r--
sin_s390x.s
8.34
KB
-rw-r--r--
sincos.go
1.75
KB
-rw-r--r--
sinh.go
1.56
KB
-rw-r--r--
sinh_s390x.s
5.98
KB
-rw-r--r--
sqrt.go
4.84
KB
-rw-r--r--
sqrt_386.s
296
B
-rw-r--r--
sqrt_amd64.s
326
B
-rw-r--r--
sqrt_arm.s
521
B
-rw-r--r--
sqrt_arm64.s
302
B
-rw-r--r--
sqrt_mipsx.s
375
B
-rw-r--r--
sqrt_ppc64x.s
326
B
-rw-r--r--
sqrt_s390x.s
301
B
-rw-r--r--
sqrt_wasm.s
269
B
-rw-r--r--
stubs_386.s
908
B
-rw-r--r--
stubs_amd64.s
1.41
KB
-rw-r--r--
stubs_arm.s
1.7
KB
-rw-r--r--
stubs_arm64.s
1.37
KB
-rw-r--r--
stubs_mips64x.s
1.83
KB
-rw-r--r--
stubs_mipsx.s
1.79
KB
-rw-r--r--
stubs_ppc64x.s
1.58
KB
-rw-r--r--
stubs_riscv64.s
1.75
KB
-rw-r--r--
stubs_s390x.s
13.24
KB
-rw-r--r--
stubs_wasm.s
1.63
KB
-rw-r--r--
tan.go
3.61
KB
-rw-r--r--
tan_s390x.s
2.73
KB
-rw-r--r--
tanh.go
2.59
KB
-rw-r--r--
tanh_s390x.s
4.57
KB
-rw-r--r--
trig_reduce.go
2.94
KB
-rw-r--r--
unsafe.go
1.27
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : fma.go
// Copyright 2019 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 import "math/bits" func zero(x uint64) uint64 { if x == 0 { return 1 } return 0 // branchless: // return ((x>>1 | x&1) - 1) >> 63 } func nonzero(x uint64) uint64 { if x != 0 { return 1 } return 0 // branchless: // return 1 - ((x>>1|x&1)-1)>>63 } func shl(u1, u2 uint64, n uint) (r1, r2 uint64) { r1 = u1<<n | u2>>(64-n) | u2<<(n-64) r2 = u2 << n return } func shr(u1, u2 uint64, n uint) (r1, r2 uint64) { r2 = u2>>n | u1<<(64-n) | u1>>(n-64) r1 = u1 >> n return } // shrcompress compresses the bottom n+1 bits of the two-word // value into a single bit. the result is equal to the value // shifted to the right by n, except the result's 0th bit is // set to the bitwise OR of the bottom n+1 bits. func shrcompress(u1, u2 uint64, n uint) (r1, r2 uint64) { // TODO: Performance here is really sensitive to the // order/placement of these branches. n == 0 is common // enough to be in the fast path. Perhaps more measurement // needs to be done to find the optimal order/placement? switch { case n == 0: return u1, u2 case n == 64: return 0, u1 | nonzero(u2) case n >= 128: return 0, nonzero(u1 | u2) case n < 64: r1, r2 = shr(u1, u2, n) r2 |= nonzero(u2 & (1<<n - 1)) case n < 128: r1, r2 = shr(u1, u2, n) r2 |= nonzero(u1&(1<<(n-64)-1) | u2) } return } func lz(u1, u2 uint64) (l int32) { l = int32(bits.LeadingZeros64(u1)) if l == 64 { l += int32(bits.LeadingZeros64(u2)) } return l } // split splits b into sign, biased exponent, and mantissa. // It adds the implicit 1 bit to the mantissa for normal values, // and normalizes subnormal values. func split(b uint64) (sign uint32, exp int32, mantissa uint64) { sign = uint32(b >> 63) exp = int32(b>>52) & mask mantissa = b & fracMask if exp == 0 { // Normalize value if subnormal. shift := uint(bits.LeadingZeros64(mantissa) - 11) mantissa <<= shift exp = 1 - int32(shift) } else { // Add implicit 1 bit mantissa |= 1 << 52 } return } // FMA returns x * y + z, computed with only one rounding. // (That is, FMA returns the fused multiply-add of x, y, and z.) func FMA(x, y, z float64) float64 { bx, by, bz := Float64bits(x), Float64bits(y), Float64bits(z) // Inf or NaN or zero involved. At most one rounding will occur. if x == 0.0 || y == 0.0 || z == 0.0 || bx&uvinf == uvinf || by&uvinf == uvinf { return x*y + z } // Handle non-finite z separately. Evaluating x*y+z where // x and y are finite, but z is infinite, should always result in z. if bz&uvinf == uvinf { return z } // Inputs are (sub)normal. // Split x, y, z into sign, exponent, mantissa. xs, xe, xm := split(bx) ys, ye, ym := split(by) zs, ze, zm := split(bz) // Compute product p = x*y as sign, exponent, two-word mantissa. // Start with exponent. "is normal" bit isn't subtracted yet. pe := xe + ye - bias + 1 // pm1:pm2 is the double-word mantissa for the product p. // Shift left to leave top bit in product. Effectively // shifts the 106-bit product to the left by 21. pm1, pm2 := bits.Mul64(xm<<10, ym<<11) zm1, zm2 := zm<<10, uint64(0) ps := xs ^ ys // product sign // normalize to 62nd bit is62zero := uint((^pm1 >> 62) & 1) pm1, pm2 = shl(pm1, pm2, is62zero) pe -= int32(is62zero) // Swap addition operands so |p| >= |z| if pe < ze || (pe == ze && (pm1 < zm1 || (pm1 == zm1 && pm2 < zm2))) { ps, pe, pm1, pm2, zs, ze, zm1, zm2 = zs, ze, zm1, zm2, ps, pe, pm1, pm2 } // Align significands zm1, zm2 = shrcompress(zm1, zm2, uint(pe-ze)) // Compute resulting significands, normalizing if necessary. var m, c uint64 if ps == zs { // Adding (pm1:pm2) + (zm1:zm2) pm2, c = bits.Add64(pm2, zm2, 0) pm1, _ = bits.Add64(pm1, zm1, c) pe -= int32(^pm1 >> 63) pm1, m = shrcompress(pm1, pm2, uint(64+pm1>>63)) } else { // Subtracting (pm1:pm2) - (zm1:zm2) // TODO: should we special-case cancellation? pm2, c = bits.Sub64(pm2, zm2, 0) pm1, _ = bits.Sub64(pm1, zm1, c) nz := lz(pm1, pm2) pe -= nz m, pm2 = shl(pm1, pm2, uint(nz-1)) m |= nonzero(pm2) } // Round and break ties to even if pe > 1022+bias || pe == 1022+bias && (m+1<<9)>>63 == 1 { // rounded value overflows exponent range return Float64frombits(uint64(ps)<<63 | uvinf) } if pe < 0 { n := uint(-pe) m = m>>n | nonzero(m&(1<<n-1)) pe = 0 } m = ((m + 1<<9) >> 10) & ^zero((m&(1<<10-1))^1<<9) pe &= -int32(nonzero(m)) return Float64frombits(uint64(ps)<<63 + uint64(pe)<<52 + m) }
Close