project: Rev 202

This commit is contained in:
Owain van Brakel
2021-12-14 18:20:58 +01:00
parent e974585ce8
commit 7c7bf0901a
406 changed files with 39725 additions and 39842 deletions

View File

@@ -32,17 +32,17 @@ public final class NodeHashTable {
int index;
public NodeHashTable(int var1) {
this.index = 0; // L: 10
this.size = var1; // L: 13
this.buckets = new Node[var1]; // L: 14
this.index = 0;
this.size = var1;
this.buckets = new Node[var1];
for (int var2 = 0; var2 < var1; ++var2) { // L: 15
Node var3 = this.buckets[var2] = new Node(); // L: 16
var3.previous = var3; // L: 17
var3.next = var3; // L: 18
for (int var2 = 0; var2 < var1; ++var2) {
Node var3 = this.buckets[var2] = new Node();
var3.previous = var3;
var3.next = var3;
}
} // L: 20
}
@ObfuscatedName("c")
@ObfuscatedSignature(
@@ -50,18 +50,18 @@ public final class NodeHashTable {
)
@Export("get")
public Node get(long var1) {
Node var3 = this.buckets[(int)(var1 & (long)(this.size - 1))]; // L: 23
Node var3 = this.buckets[(int)(var1 & (long)(this.size - 1))];
for (this.currentGet = var3.previous; var3 != this.currentGet; this.currentGet = this.currentGet.previous) { // L: 24 25 31
if (this.currentGet.key == var1) { // L: 26
Node var4 = this.currentGet; // L: 27
this.currentGet = this.currentGet.previous; // L: 28
return var4; // L: 29
for (this.currentGet = var3.previous; var3 != this.currentGet; this.currentGet = this.currentGet.previous) {
if (this.currentGet.key == var1) {
Node var4 = this.currentGet;
this.currentGet = this.currentGet.previous;
return var4;
}
}
this.currentGet = null; // L: 33
return null; // L: 34
this.currentGet = null;
return null;
}
@ObfuscatedName("b")
@@ -70,17 +70,17 @@ public final class NodeHashTable {
)
@Export("put")
public void put(Node var1, long var2) {
if (var1.next != null) { // L: 38
if (var1.next != null) {
var1.remove();
}
Node var4 = this.buckets[(int)(var2 & (long)(this.size - 1))]; // L: 39
var1.next = var4.next; // L: 40
var1.previous = var4; // L: 41
var1.next.previous = var1; // L: 42
var1.previous.next = var1; // L: 43
var1.key = var2; // L: 44
} // L: 45
Node var4 = this.buckets[(int)(var2 & (long)(this.size - 1))];
var1.next = var4.next;
var1.previous = var4;
var1.next.previous = var1;
var1.previous.next = var1;
var1.key = var2;
}
@ObfuscatedName("p")
@ObfuscatedSignature(
@@ -88,8 +88,8 @@ public final class NodeHashTable {
)
@Export("first")
public Node first() {
this.index = 0; // L: 48
return this.next(); // L: 49
this.index = 0;
return this.next();
}
@ObfuscatedName("m")
@@ -99,21 +99,21 @@ public final class NodeHashTable {
@Export("next")
public Node next() {
Node var1;
if (this.index > 0 && this.buckets[this.index - 1] != this.current) { // L: 53
var1 = this.current; // L: 54
this.current = var1.previous; // L: 55
return var1; // L: 56
if (this.index > 0 && this.buckets[this.index - 1] != this.current) {
var1 = this.current;
this.current = var1.previous;
return var1;
} else {
do {
if (this.index >= this.size) { // L: 58
return null; // L: 65
if (this.index >= this.size) {
return null;
}
var1 = this.buckets[this.index++].previous; // L: 59
} while(var1 == this.buckets[this.index - 1]); // L: 60
var1 = this.buckets[this.index++].previous;
} while(var1 == this.buckets[this.index - 1]);
this.current = var1.previous; // L: 61
return var1; // L: 62
this.current = var1.previous;
return var1;
}
}
}