From 32d4f1041ed2b58bc4970e228ea367f58ef5fa4c Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Fri, 30 Apr 2004 20:09:29 -0500 Subject: [svn-r8449] Purpose: Code optimization Description: Remove extraneous memcpy() Platforms tested: Solaris 2.7 (arabica) FreeBSD 4.9 (sleipnir) too minor to require h5committest --- src/H5Shyper.c | 7 +++---- 1 file 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; urank; u++) + for(u=0; urank; 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 */ -- cgit v0.12