public class UnsignedMath extends Object
Modifier and Type | Field and Description |
---|---|
private static long |
MASK |
Constructor and Description |
---|
UnsignedMath() |
Modifier and Type | Method and Description |
---|---|
static boolean |
aboveOrEqual(int a,
int b)
Unsigned comparison aboveOrEqual for two numbers.
|
static boolean |
aboveOrEqual(long a,
long b)
Unsigned comparison aboveOrEqual for two numbers.
|
static boolean |
aboveThan(int a,
int b)
Unsigned comparison aboveThan for two numbers.
|
static boolean |
aboveThan(long a,
long b)
Unsigned comparison aboveThan for two numbers.
|
static boolean |
belowOrEqual(int a,
int b)
Unsigned comparison belowOrEqual for two numbers.
|
static boolean |
belowOrEqual(long a,
long b)
Unsigned comparison belowOrEqual for two numbers.
|
static boolean |
belowThan(int a,
int b)
Unsigned comparison belowThan for two numbers.
|
static boolean |
belowThan(long a,
long b)
Unsigned comparison belowThan for two numbers.
|
private static BigInteger |
bi(long unsigned) |
static int |
divide(int a,
int b)
Unsigned division for two numbers.
|
static long |
divide(long a,
long b)
Unsigned division for two numbers.
|
static int |
remainder(int a,
int b)
Unsigned remainder for two numbers.
|
static long |
remainder(long a,
long b)
Unsigned remainder for two numbers.
|
private static final long MASK
public UnsignedMath()
public static boolean aboveThan(int a, int b)
public static boolean aboveOrEqual(int a, int b)
public static boolean belowThan(int a, int b)
public static boolean belowOrEqual(int a, int b)
public static boolean aboveThan(long a, long b)
public static boolean aboveOrEqual(long a, long b)
public static boolean belowThan(long a, long b)
public static boolean belowOrEqual(long a, long b)
public static int divide(int a, int b)
public static int remainder(int a, int b)
public static long divide(long a, long b)
public static long remainder(long a, long b)
private static BigInteger bi(long unsigned)