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 /
cmd /
compile /
internal /
gc /
[ HOME SHELL ]
Name
Size
Permission
Action
builtin
[ DIR ]
drwxr-xr-x
testdata
[ DIR ]
drwxr-xr-x
alg.go
16.28
KB
-rw-r--r--
align.go
9.85
KB
-rw-r--r--
bexport.go
4.41
KB
-rw-r--r--
bimport.go
667
B
-rw-r--r--
bitset.go
1.15
KB
-rw-r--r--
bootstrap.go
311
B
-rw-r--r--
builtin.go
16.41
KB
-rw-r--r--
builtin_test.go
622
B
-rw-r--r--
bv.go
5.5
KB
-rw-r--r--
class_string.go
712
B
-rw-r--r--
closure.go
15.57
KB
-rw-r--r--
const.go
27.21
KB
-rw-r--r--
constFold_test.go
322.99
KB
-rw-r--r--
dcl.go
28.37
KB
-rw-r--r--
dep_test.go
587
B
-rw-r--r--
dump.go
6.37
KB
-rw-r--r--
dwinl.go
10.07
KB
-rw-r--r--
esc.go
12.22
KB
-rw-r--r--
escape.go
37.37
KB
-rw-r--r--
export.go
5.33
KB
-rw-r--r--
fixedbugs_test.go
2.23
KB
-rw-r--r--
float_test.go
11.51
KB
-rw-r--r--
fmt.go
41.71
KB
-rw-r--r--
gen.go
2.33
KB
-rw-r--r--
global_test.go
2.57
KB
-rw-r--r--
go.go
7.4
KB
-rw-r--r--
gsubr.go
9.08
KB
-rw-r--r--
iexport.go
31.65
KB
-rw-r--r--
iface_test.go
1.92
KB
-rw-r--r--
iimport.go
22.79
KB
-rw-r--r--
init.go
3.29
KB
-rw-r--r--
initorder.go
9.84
KB
-rw-r--r--
inl.go
35.08
KB
-rw-r--r--
inl_test.go
6.64
KB
-rw-r--r--
lang_test.go
1.46
KB
-rw-r--r--
lex.go
5.96
KB
-rw-r--r--
lex_test.go
3.63
KB
-rw-r--r--
logic_test.go
11.08
KB
-rw-r--r--
main.go
43.75
KB
-rw-r--r--
mapfile_mmap.go
1.21
KB
-rw-r--r--
mapfile_read.go
485
B
-rw-r--r--
mkbuiltin.go
5.34
KB
-rw-r--r--
mpfloat.go
6.56
KB
-rw-r--r--
mpint.go
5.34
KB
-rw-r--r--
noder.go
37.65
KB
-rw-r--r--
obj.go
11.44
KB
-rw-r--r--
op_string.go
4.88
KB
-rw-r--r--
order.go
37.39
KB
-rw-r--r--
pgen.go
21.66
KB
-rw-r--r--
pgen_test.go
6.01
KB
-rw-r--r--
phi.go
14.72
KB
-rw-r--r--
plive.go
44.51
KB
-rw-r--r--
pprof.go
274
B
-rw-r--r--
racewalk.go
2.61
KB
-rw-r--r--
range.go
13.72
KB
-rw-r--r--
reflect.go
48.07
KB
-rw-r--r--
reproduciblebuilds_test.go
1.46
KB
-rw-r--r--
scc.go
4.18
KB
-rw-r--r--
scope.go
2.8
KB
-rw-r--r--
scope_test.go
13.67
KB
-rw-r--r--
select.go
9.16
KB
-rw-r--r--
shift_test.go
21.46
KB
-rw-r--r--
sinit.go
26.75
KB
-rw-r--r--
sizeof_test.go
844
B
-rw-r--r--
ssa.go
224.4
KB
-rw-r--r--
ssa_test.go
5.1
KB
-rw-r--r--
subr.go
43.73
KB
-rw-r--r--
swt.go
18.51
KB
-rw-r--r--
syntax.go
36.41
KB
-rw-r--r--
timings.go
5.75
KB
-rw-r--r--
trace.go
494
B
-rw-r--r--
truncconst_test.go
1.76
KB
-rw-r--r--
typecheck.go
87.11
KB
-rw-r--r--
types.go
1.19
KB
-rw-r--r--
types_acc.go
491
B
-rw-r--r--
universe.go
10.88
KB
-rw-r--r--
unsafe.go
1.8
KB
-rw-r--r--
util.go
2.18
KB
-rw-r--r--
walk.go
101.89
KB
-rw-r--r--
zerorange_test.go
1.89
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : mpint.go
// 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 gc import ( "fmt" "math/big" ) // implements integer arithmetic // Mpint represents an integer constant. type Mpint struct { Val big.Int Ovf bool // set if Val overflowed compiler limit (sticky) Rune bool // set if syntax indicates default type rune } func (a *Mpint) SetOverflow() { a.Val.SetUint64(1) // avoid spurious div-zero errors a.Ovf = true } func (a *Mpint) checkOverflow(extra int) bool { // We don't need to be precise here, any reasonable upper limit would do. // For now, use existing limit so we pass all the tests unchanged. if a.Val.BitLen()+extra > Mpprec { a.SetOverflow() } return a.Ovf } func (a *Mpint) Set(b *Mpint) { a.Val.Set(&b.Val) } func (a *Mpint) SetFloat(b *Mpflt) bool { // avoid converting huge floating-point numbers to integers // (2*Mpprec is large enough to permit all tests to pass) if b.Val.MantExp(nil) > 2*Mpprec { a.SetOverflow() return false } if _, acc := b.Val.Int(&a.Val); acc == big.Exact { return true } const delta = 16 // a reasonably small number of bits > 0 var t big.Float t.SetPrec(Mpprec - delta) // try rounding down a little t.SetMode(big.ToZero) t.Set(&b.Val) if _, acc := t.Int(&a.Val); acc == big.Exact { return true } // try rounding up a little t.SetMode(big.AwayFromZero) t.Set(&b.Val) if _, acc := t.Int(&a.Val); acc == big.Exact { return true } a.Ovf = false return false } func (a *Mpint) Add(b *Mpint) { if a.Ovf || b.Ovf { if nsavederrors+nerrors == 0 { Fatalf("ovf in Mpint Add") } a.SetOverflow() return } a.Val.Add(&a.Val, &b.Val) if a.checkOverflow(0) { yyerror("constant addition overflow") } } func (a *Mpint) Sub(b *Mpint) { if a.Ovf || b.Ovf { if nsavederrors+nerrors == 0 { Fatalf("ovf in Mpint Sub") } a.SetOverflow() return } a.Val.Sub(&a.Val, &b.Val) if a.checkOverflow(0) { yyerror("constant subtraction overflow") } } func (a *Mpint) Mul(b *Mpint) { if a.Ovf || b.Ovf { if nsavederrors+nerrors == 0 { Fatalf("ovf in Mpint Mul") } a.SetOverflow() return } a.Val.Mul(&a.Val, &b.Val) if a.checkOverflow(0) { yyerror("constant multiplication overflow") } } func (a *Mpint) Quo(b *Mpint) { if a.Ovf || b.Ovf { if nsavederrors+nerrors == 0 { Fatalf("ovf in Mpint Quo") } a.SetOverflow() return } a.Val.Quo(&a.Val, &b.Val) if a.checkOverflow(0) { // can only happen for div-0 which should be checked elsewhere yyerror("constant division overflow") } } func (a *Mpint) Rem(b *Mpint) { if a.Ovf || b.Ovf { if nsavederrors+nerrors == 0 { Fatalf("ovf in Mpint Rem") } a.SetOverflow() return } a.Val.Rem(&a.Val, &b.Val) if a.checkOverflow(0) { // should never happen yyerror("constant modulo overflow") } } func (a *Mpint) Or(b *Mpint) { if a.Ovf || b.Ovf { if nsavederrors+nerrors == 0 { Fatalf("ovf in Mpint Or") } a.SetOverflow() return } a.Val.Or(&a.Val, &b.Val) } func (a *Mpint) And(b *Mpint) { if a.Ovf || b.Ovf { if nsavederrors+nerrors == 0 { Fatalf("ovf in Mpint And") } a.SetOverflow() return } a.Val.And(&a.Val, &b.Val) } func (a *Mpint) AndNot(b *Mpint) { if a.Ovf || b.Ovf { if nsavederrors+nerrors == 0 { Fatalf("ovf in Mpint AndNot") } a.SetOverflow() return } a.Val.AndNot(&a.Val, &b.Val) } func (a *Mpint) Xor(b *Mpint) { if a.Ovf || b.Ovf { if nsavederrors+nerrors == 0 { Fatalf("ovf in Mpint Xor") } a.SetOverflow() return } a.Val.Xor(&a.Val, &b.Val) } func (a *Mpint) Lsh(b *Mpint) { if a.Ovf || b.Ovf { if nsavederrors+nerrors == 0 { Fatalf("ovf in Mpint Lsh") } a.SetOverflow() return } s := b.Int64() if s < 0 || s >= Mpprec { msg := "shift count too large" if s < 0 { msg = "invalid negative shift count" } yyerror("%s: %d", msg, s) a.SetInt64(0) return } if a.checkOverflow(int(s)) { yyerror("constant shift overflow") return } a.Val.Lsh(&a.Val, uint(s)) } func (a *Mpint) Rsh(b *Mpint) { if a.Ovf || b.Ovf { if nsavederrors+nerrors == 0 { Fatalf("ovf in Mpint Rsh") } a.SetOverflow() return } s := b.Int64() if s < 0 { yyerror("invalid negative shift count: %d", s) if a.Val.Sign() < 0 { a.SetInt64(-1) } else { a.SetInt64(0) } return } a.Val.Rsh(&a.Val, uint(s)) } func (a *Mpint) Cmp(b *Mpint) int { return a.Val.Cmp(&b.Val) } func (a *Mpint) CmpInt64(c int64) int { if c == 0 { return a.Val.Sign() // common case shortcut } return a.Val.Cmp(big.NewInt(c)) } func (a *Mpint) Neg() { a.Val.Neg(&a.Val) } func (a *Mpint) Int64() int64 { if a.Ovf { if nsavederrors+nerrors == 0 { Fatalf("constant overflow") } return 0 } return a.Val.Int64() } func (a *Mpint) SetInt64(c int64) { a.Val.SetInt64(c) } func (a *Mpint) SetString(as string) { _, ok := a.Val.SetString(as, 0) if !ok { // The lexer checks for correct syntax of the literal // and reports detailed errors. Thus SetString should // never fail (in theory it might run out of memory, // but that wouldn't be reported as an error here). Fatalf("malformed integer constant: %s", as) return } if a.checkOverflow(0) { yyerror("constant too large: %s", as) } } func (a *Mpint) GoString() string { return a.Val.String() } func (a *Mpint) String() string { return fmt.Sprintf("%#x", &a.Val) }
Close