diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2006-09-05 21:34:17 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2006-09-05 21:34:17 (GMT) |
commit | 5fb857d275093b266d631ea15ce22075f7fb5025 (patch) | |
tree | 5d353df97764f5153ad4f5ca7e628759ab102168 /src | |
parent | 94a96a02d637bbb5f2c3e016a10313015971533c (diff) | |
download | hdf5-5fb857d275093b266d631ea15ce22075f7fb5025.zip hdf5-5fb857d275093b266d631ea15ce22075f7fb5025.tar.gz hdf5-5fb857d275093b266d631ea15ce22075f7fb5025.tar.bz2 |
[svn-r12646] Description:
Remove some references to "twig" and "branch" internal B-tree nodes, which
were eliminated in the previous checkin.
Tested on:
Linux/32 2.6 (chicago)
Linux/64 2.6 (chicago2)
Diffstat (limited to 'src')
-rw-r--r-- | src/H5B2int.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/H5B2int.c b/src/H5B2int.c index 293ee82..0d7c83b 100644 --- a/src/H5B2int.c +++ b/src/H5B2int.c @@ -42,16 +42,6 @@ /* Local Macros */ /****************/ -/* Number of records that fit into internal "branch" node */ -/* (accounts for extra node pointer by counting it in with the prefix bytes) */ -#define H5B2_NUM_BRCH_REC(f, n, r) \ - (((n) - (H5B2_INT_PREFIX_SIZE + H5B2_BRCH_POINTER_SIZE(f))) / ((r) + H5B2_BRCH_POINTER_SIZE(f))) - -/* Number of records that fit into internal "twig" node */ -/* (accounts for extra node pointer by counting it in with the prefix bytes) */ -#define H5B2_NUM_TWIG_REC(f, n, r) \ - (((n) - (H5B2_INT_PREFIX_SIZE + H5B2_TWIG_POINTER_SIZE(f))) / ((r) + H5B2_TWIG_POINTER_SIZE(f))) - /* Number of records that fit into internal node */ /* (accounts for extra node pointer by counting it in with the prefix bytes) */ #define H5B2_NUM_INT_REC(f, s, d) \ @@ -2027,14 +2017,14 @@ H5B2_create_internal(H5F_t *f, hid_t dxpl_id, H5RC_t *bt2_shared, /* Allocate space for the native keys in memory */ if((internal->int_native = H5FL_FAC_MALLOC(shared->node_info[depth].nat_rec_fac)) == NULL) - HGOTO_ERROR (H5E_RESOURCE, H5E_NOSPACE, FAIL, "memory allocation failed for B-tree internal 'twig' native keys") + HGOTO_ERROR (H5E_RESOURCE, H5E_NOSPACE, FAIL, "memory allocation failed for B-tree internal native keys") #ifdef H5_USING_PURIFY HDmemset(internal->int_native, 0, shared->type->nrec_size * shared->node_info[depth].max_nrec); #endif /* H5_USING_PURIFY */ /* Allocate space for the node pointers in memory */ if((internal->node_ptrs = H5FL_FAC_MALLOC(shared->node_info[depth].node_ptr_fac)) == NULL) - HGOTO_ERROR (H5E_RESOURCE, H5E_NOSPACE, FAIL, "memory allocation failed for B-tree internal 'twig' node pointers") + HGOTO_ERROR (H5E_RESOURCE, H5E_NOSPACE, FAIL, "memory allocation failed for B-tree internal node pointers") #ifdef H5_USING_PURIFY HDmemset(internal->node_ptrs, 0, sizeof(H5B2_node_ptr_t) * (shared->node_info[depth].max_nrec + 1)); #endif /* H5_USING_PURIFY */ |