Package org.bouncycastle.util
Class Longs
- java.lang.Object
-
- org.bouncycastle.util.Longs
-
public class Longs extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Longs()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static long
highestOneBit(long i)
static long
lowestOneBit(long i)
static int
numberOfLeadingZeros(long i)
static int
numberOfTrailingZeros(long i)
static long
reverse(long i)
static long
reverseBytes(long i)
static long
rotateLeft(long i, int distance)
static long
rotateRight(long i, int distance)
static java.lang.Long
valueOf(long value)
-
-
-
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
-
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)
-
-