(git:b279b6b)
dbm_shard.h File Reference
#include <omp.h>

Go to the source code of this file.

Data Structures

struct  dbm_block_t
 Internal struct for storing a block's metadata. More...
 
struct  dbm_shard_t
 Internal struct for storing a matrix shard. More...
 

Functions

void dbm_shard_init (dbm_shard_t *shard)
 Internal routine for initializing a shard. More...
 
void dbm_shard_copy (dbm_shard_t *shard_a, const dbm_shard_t *shard_b)
 Internal routine for copying content of shard_b into shard_a. More...
 
void dbm_shard_release (dbm_shard_t *shard)
 Internal routine for releasing a shard. More...
 
dbm_block_tdbm_shard_lookup (const dbm_shard_t *shard, const int row, const int col)
 Internal routine for looking up a block from a shard. More...
 
dbm_block_tdbm_shard_promise_new_block (dbm_shard_t *shard, const int row, const int col, const int block_size)
 Internal routine for allocating the metadata of a new block. More...
 
void dbm_shard_allocate_promised_blocks (dbm_shard_t *shard)
 Internal routine for allocating and zeroing any promised block's data. More...
 
dbm_block_tdbm_shard_get_or_promise_block (dbm_shard_t *shard, const int row, const int col, const int block_size)
 Internal routine for getting block or promising a new one. More...
 
dbm_block_tdbm_shard_get_or_allocate_block (dbm_shard_t *shard, const int row, const int col, const int block_size)
 Internal routine for getting block or allocating a new one. More...
 

Function Documentation

◆ dbm_shard_init()

void dbm_shard_init ( dbm_shard_t shard)

Internal routine for initializing a shard.

Author
Ole Schuett

Definition at line 63 of file dbm_shard.c.

Here is the call graph for this function:

◆ dbm_shard_copy()

void dbm_shard_copy ( dbm_shard_t shard_a,
const dbm_shard_t shard_b 
)

Internal routine for copying content of shard_b into shard_a.

Author
Ole Schuett

Definition at line 80 of file dbm_shard.c.

Here is the caller graph for this function:

◆ dbm_shard_release()

void dbm_shard_release ( dbm_shard_t shard)

Internal routine for releasing a shard.

Author
Ole Schuett

Definition at line 107 of file dbm_shard.c.

Here is the caller graph for this function:

◆ dbm_shard_lookup()

dbm_block_t* dbm_shard_lookup ( const dbm_shard_t shard,
const int  row,
const int  col 
)

Internal routine for looking up a block from a shard.

Author
Ole Schuett

Definition at line 149 of file dbm_shard.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dbm_shard_promise_new_block()

dbm_block_t* dbm_shard_promise_new_block ( dbm_shard_t shard,
const int  row,
const int  col,
const int  block_size 
)

Internal routine for allocating the metadata of a new block.

Author
Ole Schuett

Definition at line 171 of file dbm_shard.c.

◆ dbm_shard_allocate_promised_blocks()

void dbm_shard_allocate_promised_blocks ( dbm_shard_t shard)

Internal routine for allocating and zeroing any promised block's data.

Author
Ole Schuett

Definition at line 203 of file dbm_shard.c.

◆ dbm_shard_get_or_promise_block()

dbm_block_t* dbm_shard_get_or_promise_block ( dbm_shard_t shard,
const int  row,
const int  col,
const int  block_size 
)

Internal routine for getting block or promising a new one.

Author
Ole Schuett

Definition at line 225 of file dbm_shard.c.

◆ dbm_shard_get_or_allocate_block()

dbm_block_t* dbm_shard_get_or_allocate_block ( dbm_shard_t shard,
const int  row,
const int  col,
const int  block_size 
)

Internal routine for getting block or allocating a new one.

Author
Ole Schuett

Definition at line 240 of file dbm_shard.c.