Method names in this class are prefixed with math to avoid ambiguities when used with static imports.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static long | Returns: the unsigned quotient of the first argument divided by the second argumentthe value to be divided dividend, long the value doing the dividing divisor)Returns the unsigned quotient of dividing the first argument by the second where each argument and the result is interpreted as an unsigned value. |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | Returns: true if the value if a power-of-two number.the value to test value)Returns true if the specified integer |
| public static long | Returns: the resultthe first value x, long the second value y)Returns as a |
| public static long | Returns: the resultthe first value x, long the second value y)Returns as a |
| public static long | Returns: the unsigned remainder of the first argument divided by the second argumentthe value to be divided dividend, long the value doing the dividing divisor)Returns the unsigned remainder from dividing the first argument by the second where each argument and the result is interpreted as an unsigned value. |
| public static int | Returns: the power-of-two rounded valuethe value to round-up. Must be a number between value)1 and
1 << 30.Rounds the specified integer |
| private static long |
| MathUtil | back to summary |
|---|---|
| private MathUtil() | |
| mathDivideUnsigned | back to summary |
|---|---|
| public static long mathDivideUnsigned(long dividend, long divisor) Returns the unsigned quotient of dividing the first argument by the second where each argument and the result is interpreted as an unsigned value. When either argument is negative (i.e. a
| |
| mathHasZeroByte | back to summary |
|---|---|
| public static boolean mathHasZeroByte(int value) | |
| mathHasZeroByte | back to summary |
|---|---|
| public static boolean mathHasZeroByte(long value) | |
| mathHasZeroShort | back to summary |
|---|---|
| public static boolean mathHasZeroShort(int value) | |
| mathHasZeroShort | back to summary |
|---|---|
| public static boolean mathHasZeroShort(long value) | |
| mathIsPoT | back to summary |
|---|---|
| public static boolean mathIsPoT(int value) Returns true if the specified integer
| |
| mathMultiplyHighS64 | back to summary |
|---|---|
| public static long mathMultiplyHighS64(long x, long y) Returns as a
| |
| mathMultiplyHighU64 | back to summary |
|---|---|
| public static long mathMultiplyHighU64(long x, long y) Returns as a
| |
| mathRemainderUnsigned | back to summary |
|---|---|
| public static long mathRemainderUnsigned(long dividend, long divisor) Returns the unsigned remainder from dividing the first argument by the second where each argument and the result is interpreted as an unsigned value. When either argument is negative (i.e. a
| |
| mathRoundPoT | back to summary |
|---|---|
| public static int mathRoundPoT(int value) Rounds the specified integer
| |
| udivdi3 | back to summary |
|---|---|
| private static long udivdi3(long u, long v) | |