NVMLib  very early alpha
A library to optimally use a Hybrid RAM setup.
algo.h
Go to the documentation of this file.
1 #ifndef __NVM_ALGO__
2 #define __NVM_ALGO__
3 
4 #include "globals.h"
5 #include "malloc.h"
6 
7 // void update_read_access(MEMoidKey key);
8 
9 // void update_write_access(MEMoidKey key);
10 
11 // void update_time_of_access(MEMoidKey key);
12 
13 // void update_access_number(MEMoidKey key);
14 
23 int decide_allocation(size_t size) {
24  return DRAM_HEAP;
25 }
26 
27 #endif // !__NVM__ALGO__
globals.h
malloc.h
DRAM_HEAP
#define DRAM_HEAP
Types of allocation.
Definition: globals.h:33
decide_allocation
int decide_allocation(size_t size)
Function to decide the initial allocation of object.
Definition: algo.h:23