From a13d291aff423e3be493de447fff001d6afd357a Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Fri, 30 Apr 2004 20:09:36 -0500 Subject: [svn-r8450] 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 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; 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