My Project
|
Go to the source code of this file.
Macros | |
#define | omIsAddrPageAligned(addr) (((long) (addr) & (SIZEOF_SYSTEM_PAGE -1)) == 0) |
#define | omGetPageOfAddr(addr) ((void*) (((long)addr) & ~(SIZEOF_SYSTEM_PAGE -1))) |
#define | omGetBinPageOfAddr(addr) ((omBinPage) ((long) (addr) & ~(SIZEOF_SYSTEM_PAGE -1))) |
#define | omIsAddrOnPage(addr, page) (omGetPageOfAddr(addr) == (void*) (page)) |
#define | omAreAddrOnSamePage(a1, a2) (omGetPageOfAddr(a1) == omGetPageOfAddr(a2)) |
#define | OM_SIZEOF_INDEX_PAGE (((unsigned long) SIZEOF_SYSTEM_PAGE) << LOG_BIT_SIZEOF_LONG) |
#define | omGetPageShiftOfAddr(addr) ((((unsigned long) addr) & (OM_SIZEOF_INDEX_PAGE -1)) >> LOG_BIT_SIZEOF_SYSTEM_PAGE) |
#define | omGetPageIndexOfAddr(addr) (((unsigned long) addr) >> (LOG_BIT_SIZEOF_LONG + LOG_BIT_SIZEOF_SYSTEM_PAGE)) |
#define | omIsBinPageAddr(addr) _omIsBinPageAddr(addr) |
#define | omFreeBinPage(addr) omFreeBinPages(addr, 1) |
Functions | |
omBinPage | omAllocBinPages (int how_many) |
omBinPage | omAllocBinPage (void) |
void | omFreeBinPages (omBinPage page, int how_many) |
Variables | |
unsigned long | om_MaxBinPageIndex |
unsigned long | om_MinBinPageIndex |
unsigned long * | om_BinPageIndicies |
#define OM_SIZEOF_INDEX_PAGE (((unsigned long) SIZEOF_SYSTEM_PAGE) << LOG_BIT_SIZEOF_LONG) |
Definition at line 58 of file omBinPage.h.
#define omAreAddrOnSamePage | ( | a1, | |
a2 | |||
) | (omGetPageOfAddr(a1) == omGetPageOfAddr(a2)) |
Definition at line 27 of file omBinPage.h.
#define omFreeBinPage | ( | addr | ) | omFreeBinPages(addr, 1) |
Definition at line 88 of file omBinPage.h.
#define omGetBinPageOfAddr | ( | addr | ) | ((omBinPage) ((long) (addr) & ~(SIZEOF_SYSTEM_PAGE -1))) |
Definition at line 22 of file omBinPage.h.
#define omGetPageIndexOfAddr | ( | addr | ) | (((unsigned long) addr) >> (LOG_BIT_SIZEOF_LONG + LOG_BIT_SIZEOF_SYSTEM_PAGE)) |
Definition at line 63 of file omBinPage.h.
#define omGetPageOfAddr | ( | addr | ) | ((void*) (((long)addr) & ~(SIZEOF_SYSTEM_PAGE -1))) |
Definition at line 19 of file omBinPage.h.
#define omGetPageShiftOfAddr | ( | addr | ) | ((((unsigned long) addr) & (OM_SIZEOF_INDEX_PAGE -1)) >> LOG_BIT_SIZEOF_SYSTEM_PAGE) |
Definition at line 60 of file omBinPage.h.
#define omIsAddrOnPage | ( | addr, | |
page | |||
) | (omGetPageOfAddr(addr) == (void*) (page)) |
Definition at line 25 of file omBinPage.h.
#define omIsAddrPageAligned | ( | addr | ) | (((long) (addr) & (SIZEOF_SYSTEM_PAGE -1)) == 0) |
Definition at line 16 of file omBinPage.h.
#define omIsBinPageAddr | ( | addr | ) | _omIsBinPageAddr(addr) |
Definition at line 68 of file omBinPage.h.
omBinPage omAllocBinPage | ( | void | ) |
Definition at line 98 of file omBinPage.c.
omBinPage omAllocBinPages | ( | int | how_many | ) |
Definition at line 149 of file omBinPage.c.
void omFreeBinPages | ( | omBinPage | page, |
int | how_many | ||
) |
Definition at line 206 of file omBinPage.c.
|
extern |
Definition at line 38 of file omBinPage.c.
|
extern |
Definition at line 36 of file omBinPage.c.
|
extern |
Definition at line 37 of file omBinPage.c.