diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2004-04-17 16:06:32 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2004-04-17 16:06:32 (GMT) |
commit | 4ff7021a37dceb46e2797d97d10a5a1cff00b3cf (patch) | |
tree | f29f9ced0709c4f4eb615cec7cd66f62ebd480c3 /src | |
parent | ebc1ff3f52c65ad1f4ca979fd1d8e1e2d4ca6ff6 (diff) | |
download | hdf5-4ff7021a37dceb46e2797d97d10a5a1cff00b3cf.zip hdf5-4ff7021a37dceb46e2797d97d10a5a1cff00b3cf.tar.gz hdf5-4ff7021a37dceb46e2797d97d10a5a1cff00b3cf.tar.bz2 |
[svn-r8367] Purpose:
Code optimization
Description:
Compute value for array instead of using memset(), since we are looping
through the array indices anyway.
Platforms tested:
Solaris 2.7 (arabica)
FreeBSD 4.9 (sleipnir)
too minor to require h5committest
Diffstat (limited to 'src')
-rw-r--r-- | src/H5Sall.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/H5Sall.c b/src/H5Sall.c index 4dfcc70..6aae942 100644 --- a/src/H5Sall.c +++ b/src/H5Sall.c @@ -152,14 +152,15 @@ H5S_all_iter_block (const H5S_sel_iter_t *iter, hssize_t *start, hssize_t *end) assert (start); assert (end); - /* Get the start of the 'all' block */ - /* (Always '0' coordinates for now) */ - HDmemset(start,0,sizeof(hssize_t)*iter->rank); + for(u=0; u<iter->rank; u++) { + /* Set the start of the 'all' block */ + /* (Always '0' coordinates for now) */ + start[u]=0; - /* Compute the end of the 'all' block */ - /* (Always size of the extent for now) */ - for(u=0; u<iter->rank; u++) + /* Compute the end of the 'all' block */ + /* (Always size of the extent for now) */ end[u]=iter->dims[u]-1; + } /* end for */ FUNC_LEAVE_NOAPI(SUCCEED); } /* H5S_all_iter_coords() */ |