|
#define | CNANOVDB_DATA_ALIGNMENT 32 |
|
#define | CNANOVDB_ALIGNMENT_PADDING(x, n) (-(x) & ((n)-1)) |
|
#define | USE_SINGLE_ROOT_KEY |
|
#define | CNANOVDB_GLOBAL |
|
#define | RESTRICT __restrict |
|
#define | ROOT_LEVEL 3 |
|
#define | DEFINEMASK_int(LOG2DIM, SIZE) |
|
#define | DEFINEMASK(LOG2DIM) DEFINEMASK_int(LOG2DIM, (1U << (3*LOG2DIM))) |
|
#define | INSTANTIATE(LOG2DIM) DEFINEMASK(LOG2DIM) |
|
#define | CREATE_TILEENTRY(VALUETYPE, SUFFIX) |
|
#define | CREATE_LEAF_NODE_int(LEVEL, LOG2DIM, CHILDTOTAL, TOTAL, MASK, VALUETYPE, STATSTYPE, SUFFIX) |
|
#define | CREATE_LEAF_NODE(LEVEL, LOG2DIM, TOTAL, VALUETYPE, STATSTYPE, SUFFIX) CREATE_LEAF_NODE_int(LEVEL, LOG2DIM, (TOTAL-LOG2DIM), TOTAL, ((1u << TOTAL) - 1u), VALUETYPE, STATSTYPE, SUFFIX) |
|
#define | CREATE_INTERNAL_NODE_int(CHILDLEVEL, LEVEL, LOG2DIM, CHILDTOTAL, TOTAL, MASK, VALUETYPE, STATSTYPE, SUFFIX) |
|
#define | CREATE_INTERNAL_NODE(CHILDLEVEL, LEVEL, LOG2DIM, TOTAL, VALUETYPE, STATSTYPE, SUFFIX) CREATE_INTERNAL_NODE_int(CHILDLEVEL, LEVEL, LOG2DIM, (TOTAL-LOG2DIM), TOTAL, ((1u << TOTAL) - 1u), VALUETYPE, STATSTYPE, SUFFIX) |
|
#define | DEFINE_KEY(KEY) uint64_t KEY; |
|
#define | KEYSIZE sizeof(uint64_t) |
|
#define | KEYSEARCH(SUFFIX) |
|
#define | CREATE_ROOTDATA(VALUETYPE, STATSTYPE, SUFFIX) |
|
#define | DEFINE_ISCACHED(LEVEL, MASK) |
|
#define | CREATE_ACCESSOR(VALUETYPE, SUFFIX) |
|
#define | CREATE_GRIDTYPE(VALUETYPE, STATSTYPE, SUFFIX) |
|
|
static void | cnanovdb_mask3_clear (cnanovdb_mask3 *__restrict mask) |
|
static bool | cnanovdb_mask3_isOn (const cnanovdb_mask3 *__restrict mask, uint32_t n) |
|
static void | cnanovdb_mask4_clear (cnanovdb_mask4 *__restrict mask) |
|
static bool | cnanovdb_mask4_isOn (const cnanovdb_mask4 *__restrict mask, uint32_t n) |
|
static void | cnanovdb_mask5_clear (cnanovdb_mask5 *__restrict mask) |
|
static bool | cnanovdb_mask5_isOn (const cnanovdb_mask5 *__restrict mask, uint32_t n) |
|
static int | cnanovdb_coord_compare (const cnanovdb_coord *a, const cnanovdb_coord *b) |
|
static uint64_t | cnanovdb_coord_to_key (const cnanovdb_coord *__restrict ijk) |
|
static void | cnanovdb_map_apply (cnanovdb_Vec3F *dst, const cnanovdb_map *__restrict map, const cnanovdb_Vec3F *src) |
|
static void | cnanovdb_map_applyInverse (cnanovdb_Vec3F *dst, const cnanovdb_map *__restrict map, const cnanovdb_Vec3F *src) |
|
static void | cnanovdb_map_applyJacobi (cnanovdb_Vec3F *dst, const cnanovdb_map *__restrict map, const cnanovdb_Vec3F *src) |
|
static void | cnanovdb_map_applyInverseJacobi (cnanovdb_Vec3F *dst, const cnanovdb_map *__restrict map, const cnanovdb_Vec3F *src) |
|
static void | cnanovdb_map_applyIJT (cnanovdb_Vec3F *dst, const cnanovdb_map *__restrict map, const cnanovdb_Vec3F *src) |
|
static void | cnanovdb_griddata_worldToIndex (cnanovdb_Vec3F *dst, const cnanovdb_griddata *__restrict grid, const cnanovdb_Vec3F *src) |
|
static void | cnanovdb_griddata_indexToWorld (cnanovdb_Vec3F *dst, const cnanovdb_griddata *__restrict grid, const cnanovdb_Vec3F *src) |
|
static void | cnanovdb_griddata_worldToIndexDir (cnanovdb_Vec3F *dst, const cnanovdb_griddata *__restrict grid, const cnanovdb_Vec3F *src) |
|
static void | cnanovdb_griddata_indexToWorldDir (cnanovdb_Vec3F *dst, const cnanovdb_griddata *__restrict grid, const cnanovdb_Vec3F *src) |
|
static void | cnanovdb_griddata_applyIJT (cnanovdb_Vec3F *dst, const cnanovdb_griddata *__restrict grid, const cnanovdb_Vec3F *src) |
|
static const cnanovdb_treedata * | cnanovdb_griddata_tree (const cnanovdb_griddata *__restrict griddata) |
|
static void | cnanovdb_readaccessor_insert (cnanovdb_readaccessor *__restrict acc, int childlevel, const void *__restrict node, const cnanovdb_coord *__restrict ijk) |
|
void | cnanovdb_readaccessor_init (cnanovdb_readaccessor *__restrict acc, const void *__restrict rootdata) |
|
bool | cnanovdb_readaccessor_isCached0 (cnanovdb_readaccessor *__restrict acc, int32_t dirty) |
|
bool | cnanovdb_readaccessor_isCached1 (cnanovdb_readaccessor *__restrict acc, int32_t dirty) |
|
bool | cnanovdb_readaccessor_isCached2 (cnanovdb_readaccessor *__restrict acc, int32_t dirty) |
|
int32_t | cnanovdb_readaccessor_computeDirty (const cnanovdb_readaccessor *__restrict acc, const cnanovdb_coord *__restrict ijk) |
|
static uint32_t | cnanovdb_node0F_CoordToOffset (const cnanovdb_coord *__restrict ijk) |
|
static float | cnanovdb_node0F_getValue (const cnanovdb_node0F *__restrict node, const cnanovdb_coord *__restrict ijk) |
|
static float | cnanovdb_node0F_getValueAndCache (const cnanovdb_node0F *__restrict node, const cnanovdb_coord *__restrict ijk, cnanovdb_readaccessor *__restrict acc) |
|
static bool | cnanovdb_node0F_isActive (const cnanovdb_node0F *__restrict node, const cnanovdb_coord *__restrict ijk) |
|
static bool | cnanovdb_node0F_isActiveAndCache (const cnanovdb_node0F *__restrict node, const cnanovdb_coord *__restrict ijk, cnanovdb_readaccessor *__restrict acc) |
|
static const cnanovdb_node0F * | cnanovdb_tree_getNode0F (const cnanovdb_treedata *__restrict tree, uint64_t i) |
|
static uint32_t | cnanovdb_node1F_CoordToOffset (const cnanovdb_coord *__restrict ijk) |
|
static const cnanovdb_node0F * | cnanovdb_node1F_getChild (const cnanovdb_node1F *__restrict node, uint32_t n) |
|
static float | cnanovdb_node1F_getValue (const cnanovdb_node1F *__restrict node, const cnanovdb_coord *__restrict ijk) |
|
static float | cnanovdb_node1F_getValueAndCache (const cnanovdb_node1F *__restrict node, const cnanovdb_coord *__restrict ijk, cnanovdb_readaccessor *__restrict acc) |
|
static bool | cnanovdb_node1F_isActive (const cnanovdb_node1F *__restrict node, const cnanovdb_coord *__restrict ijk) |
|
static bool | cnanovdb_node1F_isActiveAndCache (const cnanovdb_node1F *__restrict node, const cnanovdb_coord *__restrict ijk, cnanovdb_readaccessor *__restrict acc) |
|
static const cnanovdb_node1F * | cnanovdb_tree_getNode1F (const cnanovdb_treedata *__restrict tree, uint64_t i) |
|
static uint32_t | cnanovdb_node2F_CoordToOffset (const cnanovdb_coord *__restrict ijk) |
|
static const cnanovdb_node1F * | cnanovdb_node2F_getChild (const cnanovdb_node2F *__restrict node, uint32_t n) |
|
static float | cnanovdb_node2F_getValue (const cnanovdb_node2F *__restrict node, const cnanovdb_coord *__restrict ijk) |
|
static float | cnanovdb_node2F_getValueAndCache (const cnanovdb_node2F *__restrict node, const cnanovdb_coord *__restrict ijk, cnanovdb_readaccessor *__restrict acc) |
|
static bool | cnanovdb_node2F_isActive (const cnanovdb_node2F *__restrict node, const cnanovdb_coord *__restrict ijk) |
|
static bool | cnanovdb_node2F_isActiveAndCache (const cnanovdb_node2F *__restrict node, const cnanovdb_coord *__restrict ijk, cnanovdb_readaccessor *__restrict acc) |
|
static const cnanovdb_node2F * | cnanovdb_tree_getNode2F (const cnanovdb_treedata *__restrict tree, uint64_t i) |
|
static const cnanovdb_rootdataF * | cnanovdb_treedata_rootF (const cnanovdb_treedata *__restrict treedata) |
|
static const cnanovdb_rootdata_tileF * | cnanovdb_rootdataF_getTile (const cnanovdb_rootdataF *__restrict rootdata, uint32_t n) |
|
static const cnanovdb_node2F * | cnanovdb_rootdataF_getChild (const cnanovdb_rootdataF *__restrict rootdata, const cnanovdb_rootdata_tileF *__restrict tile) |
|
static const cnanovdb_rootdata_tileF * | cnanovdb_rootdataF_findTile (const cnanovdb_rootdataF *__restrict rootdata, const cnanovdb_coord *__restrict ijk) |
|
static float | cnanovdb_rootdataF_getValue (const cnanovdb_rootdataF *__restrict rootdata, const cnanovdb_coord *__restrict ijk) |
|
static float | cnanovdb_rootdataF_getValueAndCache (const cnanovdb_rootdataF *__restrict rootdata, const cnanovdb_coord *__restrict ijk, cnanovdb_readaccessor *__restrict acc) |
|
static bool | cnanovdb_rootdataF_isActive (const cnanovdb_rootdataF *__restrict rootdata, const cnanovdb_coord *__restrict ijk) |
|
static bool | cnanovdb_rootdataF_isActiveAndCache (const cnanovdb_rootdataF *__restrict rootdata, const cnanovdb_coord *__restrict ijk, cnanovdb_readaccessor *__restrict acc) |
|
float | cnanovdb_readaccessor_getValueF (cnanovdb_readaccessor *__restrict acc, const cnanovdb_coord *__restrict ijk) |
|
bool | cnanovdb_readaccessor_isActiveF (cnanovdb_readaccessor *__restrict acc, const cnanovdb_coord *__restrict ijk) |
|
static uint32_t | cnanovdb_node0F3_CoordToOffset (const cnanovdb_coord *__restrict ijk) |
|
static cnanovdb_Vec3F | cnanovdb_node0F3_getValue (const cnanovdb_node0F3 *__restrict node, const cnanovdb_coord *__restrict ijk) |
|
static cnanovdb_Vec3F | cnanovdb_node0F3_getValueAndCache (const cnanovdb_node0F3 *__restrict node, const cnanovdb_coord *__restrict ijk, cnanovdb_readaccessor *__restrict acc) |
|
static bool | cnanovdb_node0F3_isActive (const cnanovdb_node0F3 *__restrict node, const cnanovdb_coord *__restrict ijk) |
|
static bool | cnanovdb_node0F3_isActiveAndCache (const cnanovdb_node0F3 *__restrict node, const cnanovdb_coord *__restrict ijk, cnanovdb_readaccessor *__restrict acc) |
|
static const cnanovdb_node0F3 * | cnanovdb_tree_getNode0F3 (const cnanovdb_treedata *__restrict tree, uint64_t i) |
|
static uint32_t | cnanovdb_node1F3_CoordToOffset (const cnanovdb_coord *__restrict ijk) |
|
static const cnanovdb_node0F3 * | cnanovdb_node1F3_getChild (const cnanovdb_node1F3 *__restrict node, uint32_t n) |
|
static cnanovdb_Vec3F | cnanovdb_node1F3_getValue (const cnanovdb_node1F3 *__restrict node, const cnanovdb_coord *__restrict ijk) |
|
static cnanovdb_Vec3F | cnanovdb_node1F3_getValueAndCache (const cnanovdb_node1F3 *__restrict node, const cnanovdb_coord *__restrict ijk, cnanovdb_readaccessor *__restrict acc) |
|
static bool | cnanovdb_node1F3_isActive (const cnanovdb_node1F3 *__restrict node, const cnanovdb_coord *__restrict ijk) |
|
static bool | cnanovdb_node1F3_isActiveAndCache (const cnanovdb_node1F3 *__restrict node, const cnanovdb_coord *__restrict ijk, cnanovdb_readaccessor *__restrict acc) |
|
static const cnanovdb_node1F3 * | cnanovdb_tree_getNode1F3 (const cnanovdb_treedata *__restrict tree, uint64_t i) |
|
static uint32_t | cnanovdb_node2F3_CoordToOffset (const cnanovdb_coord *__restrict ijk) |
|
static const cnanovdb_node1F3 * | cnanovdb_node2F3_getChild (const cnanovdb_node2F3 *__restrict node, uint32_t n) |
|
static cnanovdb_Vec3F | cnanovdb_node2F3_getValue (const cnanovdb_node2F3 *__restrict node, const cnanovdb_coord *__restrict ijk) |
|
static cnanovdb_Vec3F | cnanovdb_node2F3_getValueAndCache (const cnanovdb_node2F3 *__restrict node, const cnanovdb_coord *__restrict ijk, cnanovdb_readaccessor *__restrict acc) |
|
static bool | cnanovdb_node2F3_isActive (const cnanovdb_node2F3 *__restrict node, const cnanovdb_coord *__restrict ijk) |
|
static bool | cnanovdb_node2F3_isActiveAndCache (const cnanovdb_node2F3 *__restrict node, const cnanovdb_coord *__restrict ijk, cnanovdb_readaccessor *__restrict acc) |
|
static const cnanovdb_node2F3 * | cnanovdb_tree_getNode2F3 (const cnanovdb_treedata *__restrict tree, uint64_t i) |
|
static const cnanovdb_rootdataF3 * | cnanovdb_treedata_rootF3 (const cnanovdb_treedata *__restrict treedata) |
|
static const cnanovdb_rootdata_tileF3 * | cnanovdb_rootdataF3_getTile (const cnanovdb_rootdataF3 *__restrict rootdata, uint32_t n) |
|
static const cnanovdb_node2F3 * | cnanovdb_rootdataF3_getChild (const cnanovdb_rootdataF3 *__restrict rootdata, const cnanovdb_rootdata_tileF3 *__restrict tile) |
|
static const cnanovdb_rootdata_tileF3 * | cnanovdb_rootdataF3_findTile (const cnanovdb_rootdataF3 *__restrict rootdata, const cnanovdb_coord *__restrict ijk) |
|
static cnanovdb_Vec3F | cnanovdb_rootdataF3_getValue (const cnanovdb_rootdataF3 *__restrict rootdata, const cnanovdb_coord *__restrict ijk) |
|
static cnanovdb_Vec3F | cnanovdb_rootdataF3_getValueAndCache (const cnanovdb_rootdataF3 *__restrict rootdata, const cnanovdb_coord *__restrict ijk, cnanovdb_readaccessor *__restrict acc) |
|
static bool | cnanovdb_rootdataF3_isActive (const cnanovdb_rootdataF3 *__restrict rootdata, const cnanovdb_coord *__restrict ijk) |
|
static bool | cnanovdb_rootdataF3_isActiveAndCache (const cnanovdb_rootdataF3 *__restrict rootdata, const cnanovdb_coord *__restrict ijk, cnanovdb_readaccessor *__restrict acc) |
|
cnanovdb_Vec3F | cnanovdb_readaccessor_getValueF3 (cnanovdb_readaccessor *__restrict acc, const cnanovdb_coord *__restrict ijk) |
|
bool | cnanovdb_readaccessor_isActiveF3 (cnanovdb_readaccessor *__restrict acc, const cnanovdb_coord *__restrict ijk) |
|
static int | cnanovdb_griddata_valid (const cnanovdb_griddata *__restrict grid) |
|
static int | cnanovdb_griddata_validF (const cnanovdb_griddata *__restrict grid) |
|
static int | cnanovdb_griddata_validF3 (const cnanovdb_griddata *__restrict grid) |
|