diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2004-05-13 23:26:04 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2004-05-13 23:26:04 (GMT) |
commit | 8f0a7d94658fe28559b8f351a434800285b33ce9 (patch) | |
tree | 688b637e3cef2540f86d1326c0dbdacdacbb4abb /src/H5Spkg.h | |
parent | f3b26a8ce9798d8ce8c4b845b407778b4084b6d4 (diff) | |
download | hdf5-8f0a7d94658fe28559b8f351a434800285b33ce9.zip hdf5-8f0a7d94658fe28559b8f351a434800285b33ce9.tar.gz hdf5-8f0a7d94658fe28559b8f351a434800285b33ce9.tar.bz2 |
[svn-r8519] 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 706f8a7..06a18d4 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 { |