summaryrefslogtreecommitdiffstats
path: root/src/H5D.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-05-20 15:31:12 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-05-20 15:31:12 (GMT)
commit70686065d082ad5f3bbce84decc066a9028a0a01 (patch)
tree41e2df2eeca460e3da44ed7a7f114bb4b1430035 /src/H5D.c
parentaec19e771d2b5de4a38cddbfaf0cd87e0a7ff0a1 (diff)
downloadhdf5-70686065d082ad5f3bbce84decc066a9028a0a01.zip
hdf5-70686065d082ad5f3bbce84decc066a9028a0a01.tar.gz
hdf5-70686065d082ad5f3bbce84decc066a9028a0a01.tar.bz2
[svn-r8543] Purpose:
Code optimization Description: Expand the use of macros to inline trivial function pointer lookup and calls to reduce the overall number of functions invoked during normal operation of the library. Platforms tested: Solaris 2.7 (arabica) FreeBSD 4.9 (sleipnir) w/parallel Too minor to require h5committest
Diffstat (limited to 'src/H5D.c')
-rw-r--r--src/H5D.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5D.c b/src/H5D.c
index 1eb550f..17e956c 100644
--- a/src/H5D.c
+++ b/src/H5D.c
@@ -2040,7 +2040,7 @@ H5D_create(H5G_entry_t *loc, const char *name, hid_t type_id, const H5S_t *space
new_dset->alloc_time=H5D_ALLOC_TIME_EARLY;
/* Set up layout information */
- new_dset->layout.ndims = H5S_get_simple_extent_ndims(new_dset->space) + 1;
+ new_dset->layout.ndims = H5S_GET_SIMPLE_EXTENT_NDIMS(new_dset->space) + 1;
assert((unsigned)(new_dset->layout.ndims) <= NELMTS(new_dset->layout.dim));
new_dset->layout.dim[new_dset->layout.ndims-1] = H5T_get_size(new_dset->type);
new_dset->layout.addr = HADDR_UNDEF; /* Initialize to no address */
@@ -2084,7 +2084,7 @@ H5D_create(H5G_entry_t *loc, const char *name, hid_t type_id, const H5S_t *space
* Chunked storage allows any type of data space extension, so we
* don't even bother checking.
*/
- if(chunk_ndims != H5S_get_simple_extent_ndims(new_dset->space))
+ if(chunk_ndims != H5S_GET_SIMPLE_EXTENT_NDIMS(new_dset->space))
HGOTO_ERROR(H5E_DATASET, H5E_BADVALUE, NULL, "dimensionality of chunks doesn't match the data space");
if (new_dset->efl.nused>0)
HGOTO_ERROR (H5E_DATASET, H5E_BADVALUE, NULL, "external storage not supported with chunked layout");