Moved source to rt4 package so external code can depend on it

This commit is contained in:
Pazaz 2022-04-25 05:31:58 -04:00
parent dc6deb9151
commit 153d8569b5
624 changed files with 1253 additions and 7 deletions

View file

@ -1,22 +0,0 @@
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;
}
}
}