summaryrefslogtreecommitdiffstats
path: root/src/H5B2int.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2006-08-22 20:03:21 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2006-08-22 20:03:21 (GMT)
commit618fd1f98d13e5379738e656e9badac6585693a9 (patch)
tree5b3f3a1a3588acecc722b948ff57a504ca1add38 /src/H5B2int.c
parent06ae330cd842f7e8cf573cbde5917fc42d93beb0 (diff)
downloadhdf5-618fd1f98d13e5379738e656e9badac6585693a9.zip
hdf5-618fd1f98d13e5379738e656e9badac6585693a9.tar.gz
hdf5-618fd1f98d13e5379738e656e9badac6585693a9.tar.bz2
[svn-r12615] Description:
Add checksum to v2 B-tree metadata. Tested On: Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2)
Diffstat (limited to 'src/H5B2int.c')
-rw-r--r--src/H5B2int.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/H5B2int.c b/src/H5B2int.c
index 16e87a6..98e9f3b 100644
--- a/src/H5B2int.c
+++ b/src/H5B2int.c
@@ -41,14 +41,13 @@
/* Local Macros */
/****************/
-/* Format overhead for each node (on disk) */
-#define H5B2_OVERHEAD_SIZE (H5B2_SIZEOF_MAGIC+1) /* Signature + version # */
-
/* Number of records that fit into internal node */
-#define H5B2_NUM_INT_REC(f,n,r) (((n)-(H5B2_OVERHEAD_SIZE+H5B2_NODE_POINTER_SIZE(f)))/((r)+H5B2_NODE_POINTER_SIZE(f)))
+#define H5B2_NUM_INT_REC(f, n, r) \
+ (((n) - (H5B2_METADATA_PREFIX_SIZE + H5B2_NODE_POINTER_SIZE(f))) / ((r) + H5B2_NODE_POINTER_SIZE(f)))
/* Number of records that fit into leaf node */
-#define H5B2_NUM_LEAF_REC(n,r) (((n)-H5B2_OVERHEAD_SIZE)/(r))
+#define H5B2_NUM_LEAF_REC(n, r) \
+ (((n) - H5B2_METADATA_PREFIX_SIZE) / (r))
/* Uncomment this macro to enable extra sanity checking */
/* #define H5B2_DEBUG */