diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2004-05-13 23:26:10 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2004-05-13 23:26:10 (GMT) |
commit | 6a806870e9938bf0651a7513c109489687b016bb (patch) | |
tree | ae62a7792ac7b1e851af807bfee6013e613cec1d /src/H5Spkg.h | |
parent | a9d354fd9592b44f250eb42efe450e26b7fd0d17 (diff) | |
download | hdf5-6a806870e9938bf0651a7513c109489687b016bb.zip hdf5-6a806870e9938bf0651a7513c109489687b016bb.tar.gz hdf5-6a806870e9938bf0651a7513c109489687b016bb.tar.bz2 |
[svn-r8520] Purpose:
Code optimization
Description:
Don't make a separate allocation for the selection offset - incorporate
it into the selection structure as a fixed size array.
Platforms tested:
Solaris 2.7 (arabica)
FreeBSD 4.9 (sleipnir) w/parallel
Diffstat (limited to 'src/H5Spkg.h')
-rw-r--r-- | src/H5Spkg.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Spkg.h b/src/H5Spkg.h index d34f834..d062854 100644 --- a/src/H5Spkg.h +++ b/src/H5Spkg.h @@ -141,7 +141,7 @@ typedef herr_t (*H5S_sel_iter_init_func_t)(H5S_sel_iter_t *sel_iter, const H5S_t /* Selection information object */ typedef struct { H5S_sel_type type; /* Type of selection (list of points or hyperslabs) */ - hssize_t *offset; /* Offset within the extent (NULL means a 0 offset) */ + hssize_t offset[H5S_MAX_RANK]; /* Offset within the extent */ hsize_t *order; /* Selection order. (NULL means a specific ordering of points) */ hsize_t num_elem; /* Number of elements in selection */ union { |