mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-17 03:50:24 -07:00
Started moving around static methods/fields
This commit is contained in:
parent
bed128bd19
commit
6ba1f2f808
305 changed files with 5027 additions and 5075 deletions
22
client/src/main/java/IntUtils.java
Normal file
22
client/src/main/java/IntUtils.java
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
import org.openrs2.deob.annotation.OriginalArg;
|
||||
import org.openrs2.deob.annotation.OriginalMember;
|
||||
import org.openrs2.deob.annotation.Pc;
|
||||
|
||||
public class IntUtils {
|
||||
@OriginalMember(owner = "client!ra", name = "b", descriptor = "(III)I")
|
||||
public static int pow(@OriginalArg(0) int arg0, @OriginalArg(1) int arg1) {
|
||||
@Pc(15) int local15 = 1;
|
||||
while (arg0 > 1) {
|
||||
if ((arg0 & 0x1) != 0) {
|
||||
local15 *= arg1;
|
||||
}
|
||||
arg1 *= arg1;
|
||||
arg0 >>= 0x1;
|
||||
}
|
||||
if (arg0 == 1) {
|
||||
return local15 * arg1;
|
||||
} else {
|
||||
return local15;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue