public class LongLib extends Object
long
in a way that can be translated to
JavaScript.Modifier and Type | Field and Description |
---|---|
protected static int |
BITS |
protected static int |
BITS01 |
protected static int |
BITS2 |
static com.google.gwt.lang.LongLibBase.LongEmul |
instance |
protected static int |
MASK |
protected static int |
MASK_2 |
protected static com.google.gwt.lang.LongLibBase.LongEmul |
remainder |
protected static boolean |
RUN_IN_JVM
Allow standalone Java tests such as LongLibTest/LongLibJreTest to run this
code.
|
protected static int |
SIGN_BIT |
protected static int |
SIGN_BIT_VALUE |
protected static double |
TWO_PWR_15_DBL |
protected static double |
TWO_PWR_16_DBL |
protected static double |
TWO_PWR_22_DBL |
protected static double |
TWO_PWR_31_DBL |
protected static double |
TWO_PWR_32_DBL |
protected static double |
TWO_PWR_44_DBL |
protected static double |
TWO_PWR_63_DBL |
Modifier and Type | Method and Description |
---|---|
static com.google.gwt.lang.LongLibBase.LongEmul |
add(com.google.gwt.lang.LongLibBase.LongEmul a,
com.google.gwt.lang.LongLibBase.LongEmul b) |
static com.google.gwt.lang.LongLibBase.LongEmul |
and(com.google.gwt.lang.LongLibBase.LongEmul a,
com.google.gwt.lang.LongLibBase.LongEmul b) |
protected static long |
asLong(com.google.gwt.lang.LongLibBase.LongEmul value)
Production Mode implementation; the int array is already the right object.
|
static int |
compare(com.google.gwt.lang.LongLibBase.LongEmul a,
com.google.gwt.lang.LongLibBase.LongEmul b)
Compare the receiver a to the argument b.
|
protected static com.google.gwt.lang.LongLibBase.LongEmul |
create(int value) |
protected static com.google.gwt.lang.LongLibBase.LongEmul |
create(int a0,
int a1,
int a2) |
static com.google.gwt.lang.LongLibBase.LongEmul |
div(com.google.gwt.lang.LongLibBase.LongEmul a,
com.google.gwt.lang.LongLibBase.LongEmul b) |
protected static com.google.gwt.lang.LongLibBase.LongEmul |
divMod(com.google.gwt.lang.LongLibBase.LongEmul a,
com.google.gwt.lang.LongLibBase.LongEmul b,
boolean computeRemainder) |
static boolean |
eq(com.google.gwt.lang.LongLibBase.LongEmul a,
com.google.gwt.lang.LongLibBase.LongEmul b) |
static com.google.gwt.lang.LongLibBase.LongEmul |
fromDouble(double value) |
static com.google.gwt.lang.LongLibBase.LongEmul |
fromInt(int value) |
static int[] |
getAsIntArray(long l)
Return a triple of ints { low, middle, high } that concatenate bitwise to
the given number.
|
protected static int |
getH(com.google.gwt.lang.LongLibBase.LongEmul a) |
protected static int |
getL(com.google.gwt.lang.LongLibBase.LongEmul a) |
protected static int |
getM(com.google.gwt.lang.LongLibBase.LongEmul a) |
static boolean |
gt(com.google.gwt.lang.LongLibBase.LongEmul a,
com.google.gwt.lang.LongLibBase.LongEmul b) |
static boolean |
gte(com.google.gwt.lang.LongLibBase.LongEmul a,
com.google.gwt.lang.LongLibBase.LongEmul b) |
protected static boolean |
isMinValue(com.google.gwt.lang.LongLibBase.LongEmul a) |
protected static boolean |
isNegative(com.google.gwt.lang.LongLibBase.LongEmul a) |
protected static boolean |
isZero(com.google.gwt.lang.LongLibBase.LongEmul a) |
static long |
longFromBase64(String value)
Parse a string containing a base-64 encoded version of a long value.
|
static boolean |
lt(com.google.gwt.lang.LongLibBase.LongEmul a,
com.google.gwt.lang.LongLibBase.LongEmul b) |
static boolean |
lte(com.google.gwt.lang.LongLibBase.LongEmul a,
com.google.gwt.lang.LongLibBase.LongEmul b) |
static com.google.gwt.lang.LongLibBase.LongEmul |
mod(com.google.gwt.lang.LongLibBase.LongEmul a,
com.google.gwt.lang.LongLibBase.LongEmul b) |
static com.google.gwt.lang.LongLibBase.LongEmul |
mul(com.google.gwt.lang.LongLibBase.LongEmul a,
com.google.gwt.lang.LongLibBase.LongEmul b) |
static com.google.gwt.lang.LongLibBase.LongEmul |
neg(com.google.gwt.lang.LongLibBase.LongEmul a) |
protected static void |
negate(com.google.gwt.lang.LongLibBase.LongEmul a)
a = -a
|
static boolean |
neq(com.google.gwt.lang.LongLibBase.LongEmul a,
com.google.gwt.lang.LongLibBase.LongEmul b) |
static com.google.gwt.lang.LongLibBase.LongEmul |
not(com.google.gwt.lang.LongLibBase.LongEmul a) |
static com.google.gwt.lang.LongLibBase.LongEmul |
or(com.google.gwt.lang.LongLibBase.LongEmul a,
com.google.gwt.lang.LongLibBase.LongEmul b) |
static com.google.gwt.lang.LongLibBase.LongEmul |
shl(com.google.gwt.lang.LongLibBase.LongEmul a,
int n) |
static com.google.gwt.lang.LongLibBase.LongEmul |
shr(com.google.gwt.lang.LongLibBase.LongEmul a,
int n) |
static com.google.gwt.lang.LongLibBase.LongEmul |
shru(com.google.gwt.lang.LongLibBase.LongEmul a,
int n)
Logical right shift.
|
protected static int |
sign(com.google.gwt.lang.LongLibBase.LongEmul a) |
static com.google.gwt.lang.LongLibBase.LongEmul |
sub(com.google.gwt.lang.LongLibBase.LongEmul a,
com.google.gwt.lang.LongLibBase.LongEmul b) |
static String |
toBase64(long value)
Return an optionally single-quoted string containing a base-64 encoded
version of the given long value.
|
static double |
toDouble(com.google.gwt.lang.LongLibBase.LongEmul a) |
protected static double |
toDoubleHelper(com.google.gwt.lang.LongLibBase.LongEmul a) |
static int |
toInt(com.google.gwt.lang.LongLibBase.LongEmul a) |
static String |
toString(com.google.gwt.lang.LongLibBase.LongEmul a) |
static com.google.gwt.lang.LongLibBase.LongEmul |
xor(com.google.gwt.lang.LongLibBase.LongEmul a,
com.google.gwt.lang.LongLibBase.LongEmul b) |
public static com.google.gwt.lang.LongLibBase.LongEmul instance
protected static final int BITS
protected static final int BITS01
protected static final int BITS2
protected static final int MASK
protected static final int MASK_2
protected static com.google.gwt.lang.LongLibBase.LongEmul remainder
protected static boolean RUN_IN_JVM
protected static final int SIGN_BIT
protected static final int SIGN_BIT_VALUE
protected static final double TWO_PWR_15_DBL
protected static final double TWO_PWR_16_DBL
protected static final double TWO_PWR_22_DBL
protected static final double TWO_PWR_31_DBL
protected static final double TWO_PWR_32_DBL
protected static final double TWO_PWR_44_DBL
protected static final double TWO_PWR_63_DBL
public static com.google.gwt.lang.LongLibBase.LongEmul add(com.google.gwt.lang.LongLibBase.LongEmul a, com.google.gwt.lang.LongLibBase.LongEmul b)
public static com.google.gwt.lang.LongLibBase.LongEmul and(com.google.gwt.lang.LongLibBase.LongEmul a, com.google.gwt.lang.LongLibBase.LongEmul b)
public static int compare(com.google.gwt.lang.LongLibBase.LongEmul a, com.google.gwt.lang.LongLibBase.LongEmul b)
public static com.google.gwt.lang.LongLibBase.LongEmul div(com.google.gwt.lang.LongLibBase.LongEmul a, com.google.gwt.lang.LongLibBase.LongEmul b)
public static boolean eq(com.google.gwt.lang.LongLibBase.LongEmul a, com.google.gwt.lang.LongLibBase.LongEmul b)
public static com.google.gwt.lang.LongLibBase.LongEmul fromDouble(double value)
public static com.google.gwt.lang.LongLibBase.LongEmul fromInt(int value)
public static int[] getAsIntArray(long l)
public static boolean gt(com.google.gwt.lang.LongLibBase.LongEmul a, com.google.gwt.lang.LongLibBase.LongEmul b)
public static boolean gte(com.google.gwt.lang.LongLibBase.LongEmul a, com.google.gwt.lang.LongLibBase.LongEmul b)
public static long longFromBase64(String value)
public static boolean lt(com.google.gwt.lang.LongLibBase.LongEmul a, com.google.gwt.lang.LongLibBase.LongEmul b)
public static boolean lte(com.google.gwt.lang.LongLibBase.LongEmul a, com.google.gwt.lang.LongLibBase.LongEmul b)
public static com.google.gwt.lang.LongLibBase.LongEmul mod(com.google.gwt.lang.LongLibBase.LongEmul a, com.google.gwt.lang.LongLibBase.LongEmul b)
public static com.google.gwt.lang.LongLibBase.LongEmul mul(com.google.gwt.lang.LongLibBase.LongEmul a, com.google.gwt.lang.LongLibBase.LongEmul b)
public static com.google.gwt.lang.LongLibBase.LongEmul neg(com.google.gwt.lang.LongLibBase.LongEmul a)
public static boolean neq(com.google.gwt.lang.LongLibBase.LongEmul a, com.google.gwt.lang.LongLibBase.LongEmul b)
public static com.google.gwt.lang.LongLibBase.LongEmul not(com.google.gwt.lang.LongLibBase.LongEmul a)
public static com.google.gwt.lang.LongLibBase.LongEmul or(com.google.gwt.lang.LongLibBase.LongEmul a, com.google.gwt.lang.LongLibBase.LongEmul b)
public static com.google.gwt.lang.LongLibBase.LongEmul shl(com.google.gwt.lang.LongLibBase.LongEmul a, int n)
public static com.google.gwt.lang.LongLibBase.LongEmul shr(com.google.gwt.lang.LongLibBase.LongEmul a, int n)
public static com.google.gwt.lang.LongLibBase.LongEmul shru(com.google.gwt.lang.LongLibBase.LongEmul a, int n)
public static com.google.gwt.lang.LongLibBase.LongEmul sub(com.google.gwt.lang.LongLibBase.LongEmul a, com.google.gwt.lang.LongLibBase.LongEmul b)
public static String toBase64(long value)
public static double toDouble(com.google.gwt.lang.LongLibBase.LongEmul a)
public static int toInt(com.google.gwt.lang.LongLibBase.LongEmul a)
public static String toString(com.google.gwt.lang.LongLibBase.LongEmul a)
public static com.google.gwt.lang.LongLibBase.LongEmul xor(com.google.gwt.lang.LongLibBase.LongEmul a, com.google.gwt.lang.LongLibBase.LongEmul b)
protected static long asLong(com.google.gwt.lang.LongLibBase.LongEmul value)
protected static com.google.gwt.lang.LongLibBase.LongEmul create(int value)
protected static com.google.gwt.lang.LongLibBase.LongEmul create(int a0, int a1, int a2)
protected static com.google.gwt.lang.LongLibBase.LongEmul divMod(com.google.gwt.lang.LongLibBase.LongEmul a, com.google.gwt.lang.LongLibBase.LongEmul b, boolean computeRemainder)
protected static int getH(com.google.gwt.lang.LongLibBase.LongEmul a)
protected static int getL(com.google.gwt.lang.LongLibBase.LongEmul a)
protected static int getM(com.google.gwt.lang.LongLibBase.LongEmul a)
protected static boolean isMinValue(com.google.gwt.lang.LongLibBase.LongEmul a)
protected static boolean isNegative(com.google.gwt.lang.LongLibBase.LongEmul a)
protected static boolean isZero(com.google.gwt.lang.LongLibBase.LongEmul a)
protected static void negate(com.google.gwt.lang.LongLibBase.LongEmul a)
protected static int sign(com.google.gwt.lang.LongLibBase.LongEmul a)
protected static double toDoubleHelper(com.google.gwt.lang.LongLibBase.LongEmul a)
Copyright © 2018. All rights reserved.