summaryrefslogtreecommitdiffstats
path: root/src/H5Shyper.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-05-01 01:09:29 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-05-01 01:09:29 (GMT)
commit32d4f1041ed2b58bc4970e228ea367f58ef5fa4c (patch)
tree8f3d3c2fe9cb238940c8776746f745a4084ee06f /src/H5Shyper.c
parent715316db66cb0d6994ea755e0ce44d677b5ddef3 (diff)
downloadhdf5-32d4f1041ed2b58bc4970e228ea367f58ef5fa4c.zip
hdf5-32d4f1041ed2b58bc4970e228ea367f58ef5fa4c.tar.gz
hdf5-32d4f1041ed2b58bc4970e228ea367f58ef5fa4c.tar.bz2
[svn-r8449] 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 c025dc8..b5cb330 100644
--- a/src/H5Shyper.c
+++ b/src/H5Shyper.c
@@ -435,12 +435,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 */