BAM
Abstract Machine for Bottom-Up Evaluation with the Push Method
Classes | Macros | Typedefs
page.h File Reference

Memory page. More...

#include "../base/ver.h"
#include "../base/check.h"

Go to the source code of this file.

Classes

union  page_u
 

Macros

#define PAGE_NULL   (static_cast<page_t>(0))
 
#define PAGE_SIZE(TYPE)   (VER_PAGESIZE/static_cast<int>(sizeof(TYPE)))
 
#define PAGE_U_NULL   (static_cast<page_u_t>(0))
 
#define PAGE_UNIT_BYTES   (static_cast<int>(sizeof(union page_u)))
 
#define PAGE_UNITS(TYPE)   ((static_cast<int>(sizeof(TYPE))+PAGE_UNIT_BYTES-1) / PAGE_UNIT_BYTES)
 
#define PAGE_SIZE_UNITS   (VER_PAGESIZE / PAGE_UNIT_BYTES)
 
#define PAGE_KB(NUM_PAGES)
 

Typedefs

typedef void * page_t
 
typedef union page_upage_u_t
 

Detailed Description

Memory page.

Macro Definition Documentation

#define PAGE_KB (   NUM_PAGES)
Value:
(static_cast<int>( \
(static_cast<long>(NUM_PAGES) * VER_PAGESIZE) / 1024))
#define VER_PAGESIZE
Definition: ver.h:186