13#ifndef MMGR_MEMORIA_OPEROR_H
14#define MMGR_MEMORIA_OPEROR_H
33 const void *
const src;
39 int (*
const order)(
const void *left,
const void *right);
61EMBED_TABLE_LAYOUT(
MemoriaOperorNs, cpy, move_down, move_up, cmp, chr, set, sort, run, run_last);
EMBED_HOST_DEVICE size_t mmgr_memor_run(const MemoriaCfg *args)
Counts the bytes at the start of args->src equal to args->val, within args->bytes.
EMBED_HOST_DEVICE embed_iword mmgr_memor_cmp(const MemoriaCfg *args)
Compares args->bytes of args->src against args->other.
EMBED_HOST_DEVICE void mmgr_memor_cpy(const MemoriaCfg *args)
Copies args->bytes from args->src to args->dst, on an upward walk.
EMBED_HOST_DEVICE embed_bool mmgr_memor_sort(const MemoriaCfg *args)
Sorts args->count elements of args->bytes bytes each at args->dst in the order of args->order.
EMBED_HOST_DEVICE void mmgr_memor_set(const MemoriaCfg *args)
Writes args->val into args->bytes of args->dst.
static const MemoriaOperorNs memor
Dispatch table instance named memor.
EMBED_HOST_DEVICE const void * mmgr_memor_chr(const MemoriaCfg *args)
Finds the first byte in args->src equal to args->val, within args->bytes.
EMBED_HOST_DEVICE size_t mmgr_memor_run_last(const MemoriaCfg *args)
Counts the bytes at the end of args->src equal to args->val, within args->bytes.
EMBED_HOST_DEVICE void mmgr_memor_move_up(const MemoriaCfg *args)
Copies args->bytes from args->src to args->dst, on a downward walk from the far end.
The embedded_types headers every module builds on.
Arguments for the memor calls.
int(*const) order(const void *left, const void *right)
Type of the memor dispatch table.
void(*) move_up(const MemoriaCfg *args)
size_t(*) run(const MemoriaCfg *args)
size_t(*) run_last(const MemoriaCfg *args)
void(*) set(const MemoriaCfg *args)
void(*) move_down(const MemoriaCfg *args)
void(*) cpy(const MemoriaCfg *args)
embed_iword(*) cmp(const MemoriaCfg *args)
embed_bool(*) sort(const MemoriaCfg *args)