[svn-r8694] Purpose:

Code optimization

Description:
    Avoid memcpy() when setting up new chunk coordinates

Platforms tested:
    Solaris 2.7 (arabica)
    FreeBSD 4.10 (sleipnir) w/parallel
    Too minor to require h5committest
This commit is contained in:
Quincey Koziol 2004-06-15 11:12:29 -05:00
parent 7c18329abe
commit 2b81894af7

View File

@ -2764,7 +2764,8 @@ H5D_create_chunk_file_map_hyper(fm_map *fm)
new_chunk_info->mspace_shared=0; new_chunk_info->mspace_shared=0;
/* Copy the chunk's coordinates */ /* Copy the chunk's coordinates */
HDmemcpy(new_chunk_info->coords,coords,fm->f_ndims*sizeof(new_chunk_info->coords[0])); for(u=0; u<fm->f_ndims; u++)
new_chunk_info->coords[u]=coords[u];
new_chunk_info->coords[fm->f_ndims]=0; new_chunk_info->coords[fm->f_ndims]=0;
/* Insert the new chunk into the TBBT tree */ /* Insert the new chunk into the TBBT tree */