Octopus 16.0
real-space, real-time, TDDFT code
alloc_cache_low.cc File Reference
#include <cassert>
#include <fortran_types.h>
#include <iostream>
#include <unordered_map>
Include dependency graph for alloc_cache_low.cc:

Classes

struct  alloc_cache
 

Macros

#define CACHE_ALLOC_ANY_SIZE   -1
 

Functions

void FC_FUNC (alloc_cache_init, ALLOC_CACHE_INIT)(alloc_cache **cache
 
void FC_FUNC (alloc_cache_end, ALLOC_CACHE_END)(alloc_cache **cache
 
void FC_FUNC (alloc_cache_put_low, ALLOC_CACHE_PUT_LOW)(alloc_cache **cache
 

Variables

void fint8 max_size
 
void fint8hits = (*cache)->hits
 
void fint8 fint8misses = (*cache)->misses
 
void fint8 fint8 double * vol_hits = (*cache)->vol_hits++
 
void fint8 fint8 double double * vol_misses
 
delete * cache
 
void const fint8size
 
void const fint8 void ** loc
 

Macro Definition Documentation

◆ CACHE_ALLOC_ANY_SIZE

#define CACHE_ALLOC_ANY_SIZE   -1

Function Documentation

◆ FC_FUNC() [1/3]

void FC_FUNC ( alloc_cache_init  ,
ALLOC_CACHE_INIT   
)

◆ FC_FUNC() [2/3]

void FC_FUNC ( alloc_cache_end  ,
ALLOC_CACHE_END   
)

◆ FC_FUNC() [3/3]

void FC_FUNC ( alloc_cache_put_low  ,
ALLOC_CACHE_PUT_LOW   
)

Variable Documentation

◆ max_size

void fint8 max_size
Initial value:
{
void fint8 max_size
Definition: alloc_cache_low.cc:47
delete * cache
Definition: alloc_cache_low.cc:62
Definition: alloc_cache_low.cc:26

◆ hits

* hits = (*cache)->hits

◆ misses

* misses = (*cache)->misses

◆ vol_hits

* vol_hits = (*cache)->vol_hits++

◆ vol_misses

* vol_misses
Initial value:
{
assert((*cache)->list.empty())

◆ cache

delete* cache

◆ size

void const fint8* size

◆ loc

void const fint8 void** loc