public class Conversions extends Object
Constructor and Description |
---|
Conversions() |
Modifier and Type | Method and Description |
---|---|
static int |
addressToMmapChunksDown(Address addr) |
static int |
addressToMmapChunksUp(Address addr) |
static int |
addressToPages(Address addr) |
static int |
addressToPagesDown(Address addr) |
static int |
bytesToMmapChunksUp(Extent bytes) |
static int |
bytesToPages(Extent bytes) |
static int |
bytesToPages(Offset bytes) |
static int |
bytesToPagesUp(Extent bytes) |
static boolean |
isPageAligned(Address address) |
static boolean |
isPageAligned(int value) |
static int |
MBToPages(int megs) |
static Address |
mmapChunksToAddress(int chunk) |
static Address |
pageAlign(Address address) |
static int |
pageAlign(int value) |
static Address |
pagesToAddress(int pages) |
static Extent |
pagesToBytes(int pages) |
static int |
pagesToKBytes(int pages) |
static int |
pagesToMBytes(int pages) |
static int |
pagesToMmapChunksUp(int pages) |
static int |
roundDown(int value,
int alignment) |
private static Word |
roundDown(Word value,
int logBase) |
static Address |
roundDownMB(Address addr) |
static Extent |
roundDownMB(Extent bytes) |
public Conversions()
public static Address roundDownMB(Address addr)
public static Extent roundDownMB(Extent bytes)
public static int roundDown(int value, int alignment)
public static int MBToPages(int megs)
public static int bytesToMmapChunksUp(Extent bytes)
public static int pagesToMmapChunksUp(int pages)
public static int addressToMmapChunksDown(Address addr)
public static int addressToPagesDown(Address addr)
public static int addressToPages(Address addr)
public static Address pagesToAddress(int pages)
public static int addressToMmapChunksUp(Address addr)
public static Extent pagesToBytes(int pages)
public static int pagesToMBytes(int pages)
public static int pagesToKBytes(int pages)
public static int bytesToPagesUp(Extent bytes)
public static int bytesToPages(Extent bytes)
public static int bytesToPages(Offset bytes)
public static Address mmapChunksToAddress(int chunk)
public static int pageAlign(int value)
public static boolean isPageAligned(Address address)
public static boolean isPageAligned(int value)