Package org.bouncycastle.util
Class Longs
- java.lang.Object
-
- org.bouncycastle.util.Longs
-
public class Longs extends java.lang.ObjectUtility methods and constants for longs.
-
-
Constructor Summary
Constructors Constructor Description Longs()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static intbitCount(long i)static intbitLength(long i)static intcompare(long x, long y)static intcompareUnsigned(long x, long y)static longhighestOneBit(long i)static longlowestOneBit(long i)static intnumberOfLeadingZeros(long i)static intnumberOfTrailingZeros(long i)static longreverse(long i)static longreverseBytes(long i)static longrotateLeft(long i, int distance)static longrotateRight(long i, int distance)static java.lang.LongvalueOf(long value)static voidxorTo(int len, long[] x, int xOff, long[] z, int zOff)Deprecated.UseNat.xorTo64(int, long[], int, long[], int)instead.
-
-
-
Field Detail
-
BYTES
public static final int BYTES
- See Also:
- Constant Field Values
-
SIZE
public static final int SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
bitCount
public static int bitCount(long i)
-
bitLength
public static int bitLength(long i)
-
compare
public static int compare(long x, long y)
-
compareUnsigned
public static int compareUnsigned(long x, long y)
-
highestOneBit
public static long highestOneBit(long i)
-
lowestOneBit
public static long lowestOneBit(long i)
-
numberOfLeadingZeros
public static int numberOfLeadingZeros(long i)
-
numberOfTrailingZeros
public static int numberOfTrailingZeros(long i)
-
reverse
public static long reverse(long i)
-
reverseBytes
public static long reverseBytes(long i)
-
rotateLeft
public static long rotateLeft(long i, int distance)
-
rotateRight
public static long rotateRight(long i, int distance)
-
valueOf
public static java.lang.Long valueOf(long value)
-
xorTo
public static void xorTo(int len, long[] x, int xOff, long[] z, int zOff)Deprecated.UseNat.xorTo64(int, long[], int, long[], int)instead.
-
-