diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2004-05-01 19:19:52 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2004-05-01 19:19:52 (GMT) |
commit | b0a3d7c9700f64f21bd52c6dd799df83cdb2a9d4 (patch) | |
tree | 3115adae31af1f5c11887b07c14ebdb5728e8e7a /src/H5Sprivate.h | |
parent | 4b0ff36410e7b40d071e0d1adf6048b260375798 (diff) | |
download | hdf5-b0a3d7c9700f64f21bd52c6dd799df83cdb2a9d4.zip hdf5-b0a3d7c9700f64f21bd52c6dd799df83cdb2a9d4.tar.gz hdf5-b0a3d7c9700f64f21bd52c6dd799df83cdb2a9d4.tar.bz2 |
[svn-r8462] Purpose:
Code optimization
Description:
Reduce the number of times the number of elements in a selection is
computed.
Platforms tested:
Solaris 2.7 (arabica)
FreeBSD 4.9 (sleipnir) w/parallel
too minor to require h5committest
Diffstat (limited to 'src/H5Sprivate.h')
-rw-r--r-- | src/H5Sprivate.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/H5Sprivate.h b/src/H5Sprivate.h index c3dc4e2..343fa2a 100644 --- a/src/H5Sprivate.h +++ b/src/H5Sprivate.h @@ -139,7 +139,7 @@ typedef struct H5S_conv_t { /* Read from file to application w/o intermediate scratch buffer */ herr_t (*read)(H5F_t *f, const struct H5O_layout_t *layout, const H5D_dcpl_cache_t *dcpl_cache, const union H5D_storage_t *store, - size_t elmt_size, const H5S_t *file_space, + size_t nelmts, size_t elmt_size, const H5S_t *file_space, const H5S_t *mem_space, const H5D_dxpl_cache_t *dxpl_cache, hid_t dxpl_id, void *buf/*out*/); @@ -147,7 +147,7 @@ typedef struct H5S_conv_t { /* Write directly from app buffer to file */ herr_t (*write)(H5F_t *f, struct H5O_layout_t *layout, const H5D_dcpl_cache_t *dcpl_cache, const union H5D_storage_t *store, - size_t elmt_size, const H5S_t *file_space, + size_t nelmts, size_t elmt_size, const H5S_t *file_space, const H5S_t *mem_space, const H5D_dxpl_cache_t *dxpl_cache, hid_t dxpl_id, const void *buf); @@ -217,11 +217,11 @@ H5_DLL hsize_t H5S_select_mgath (const void *_buf, const H5S_t *space, H5S_sel_iter_t *iter, hsize_t nelmts, const H5D_dxpl_cache_t *dxpl_cache, void *_tgath_buf/*out*/); H5_DLL herr_t H5S_select_read(H5F_t *f, const struct H5O_layout_t *layout, - const H5D_dcpl_cache_t *dcpl_cache, const union H5D_storage_t *store, size_t elmt_size, + const H5D_dcpl_cache_t *dcpl_cache, const union H5D_storage_t *store, size_t nelmts, size_t elmt_size, const H5S_t *file_space, const H5S_t *mem_space, const H5D_dxpl_cache_t *dxpl_cache, hid_t dxpl_id, void *buf/*out*/); H5_DLL herr_t H5S_select_write(H5F_t *f, struct H5O_layout_t *layout, - const H5D_dcpl_cache_t *dcpl_cache, const union H5D_storage_t *store, size_t elmt_size, + const H5D_dcpl_cache_t *dcpl_cache, const union H5D_storage_t *store, size_t nelmts, size_t elmt_size, const H5S_t *file_space, const H5S_t *mem_space, const H5D_dxpl_cache_t *dxpl_cache, hid_t dxpl_id, const void *buf/*out*/); H5_DLL htri_t H5S_select_valid(const H5S_t *space); |