com.jtransc.IntegerUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jtransc-rt Show documentation
Show all versions of jtransc-rt Show documentation
JVM AOT compiler currently generating JavaScript, C++, Haxe, with initial focus on Kotlin and games.
package com.jtransc;
public class IntegerUtils {
static public int umod(int left, int right) {
int remainder = left % right;
if (remainder < 0) {
return remainder + right;
} else {
return remainder;
}
}
}