Modifier and Type | Field and Description |
---|---|
public static final long | |
public static final int |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public static long[] | allocateLongArray(int capacity)
This makes for an easier time generating the atomic queues, and removes some warnings. |
public static long | Returns: the offset in bytes within the circular array for a given indexdesirable element index index, long (length - 1) mask)Note circular arrays are assumed a power of 2 in length and the `mask` is (length - 1). |
public static long | Returns: the offset in bytes within the array for a given indexdesirable element index index)
|
public static long | Returns: the element at the offsetle buffer buffer, long computed via offset)UnsafeLongArrayAccess#calcLongElementOffset(long) A plain load (no ordering/fences) of an element from a given offset. |
public static long | Returns: the element at the offsetle buffer buffer, long computed via offset)UnsafeLongArrayAccess#calcCircularLongElementOffset A volatile load of an element from a given offset. |
public static void | soLongElement(long[]
le buffer buffer, long computed via offset, long UnsafeLongArrayAccess#calcCircularLongElementOffset an orderly kitty e)An ordered store of an element to a given offset |
public static void | spLongElement(long[]
le buffer buffer, long computed via offset, long UnsafeLongArrayAccess#calcLongElementOffset(long) an orderly kitty e)A plain store (no ordering/fences) of an element to a given offset |
LONG_ARRAY_BASE | back to summary |
---|---|
public static final long LONG_ARRAY_BASE |
LONG_ELEMENT_SHIFT | back to summary |
---|---|
public static final int LONG_ELEMENT_SHIFT |
UnsafeLongArrayAccess | back to summary |
---|---|
public UnsafeLongArrayAccess() |
allocateLongArray | back to summary |
---|---|
public static long[] allocateLongArray(int capacity) This makes for an easier time generating the atomic queues, and removes some warnings. |
calcCircularLongElementOffset | back to summary |
---|---|
public static long calcCircularLongElementOffset(long index, long mask) Note circular arrays are assumed a power of 2 in length and the `mask` is (length - 1).
|
calcLongElementOffset | back to summary |
---|---|
public static long calcLongElementOffset(long index)
|
lpLongElement | back to summary |
---|---|
public static long lpLongElement(long[] buffer, long offset) A plain load (no ordering/fences) of an element from a given offset.
|
lvLongElement | back to summary |
---|---|
public static long lvLongElement(long[] buffer, long offset) A volatile load of an element from a given offset.
|
soLongElement | back to summary |
---|---|
public static void soLongElement(long[] buffer, long offset, long e) An ordered store of an element to a given offset
|
spLongElement | back to summary |
---|---|
public static void spLongElement(long[] buffer, long offset, long e) A plain store (no ordering/fences) of an element to a given offset
|