summaryrefslogtreecommitdiffstats
path: root/src/H5Shyper.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-05-01 01:09:36 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-05-01 01:09:36 (GMT)
commita13d291aff423e3be493de447fff001d6afd357a (patch)
treec411a4109e753fff0016143c20988bb195307eaa /src/H5Shyper.c
parentb9cf2953a3cc78033493a9105ab25f62f8711be8 (diff)
downloadhdf5-a13d291aff423e3be493de447fff001d6afd357a.zip
hdf5-a13d291aff423e3be493de447fff001d6afd357a.tar.gz
hdf5-a13d291aff423e3be493de447fff001d6afd357a.tar.bz2
[svn-r8450] Purpose:
Code optimization Description: Remove extraneous memcpy() Platforms tested: Solaris 2.7 (arabica) FreeBSD 4.9 (sleipnir) too minor to require h5committest
Diffstat (limited to 'src/H5Shyper.c')
-rw-r--r--src/H5Shyper.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/H5Shyper.c b/src/H5Shyper.c
index de4529f..e6bf352 100644
--- a/src/H5Shyper.c
+++ b/src/H5Shyper.c
@@ -440,12 +440,11 @@ H5S_hyper_iter_block (const H5S_sel_iter_t *iter, hssize_t *start, hssize_t *end
/* Check for a single "regular" hyperslab */
if(iter->u.hyp.diminfo_valid) {
- /* Copy the current iterator offset as the start */
- HDmemcpy(start,iter->u.hyp.off,sizeof(hssize_t)*iter->rank);
-
/* Compute the end of the block */
- for(u=0; u<iter->rank; u++)
+ for(u=0; u<iter->rank; u++) {
+ start[u]=iter->u.hyp.off[u];
end[u]=(start[u]+iter->u.hyp.diminfo[u].block)-1;
+ } /* end for */
} /* end if */
else {
/* Copy the start of the block */