summaryrefslogtreecommitdiffstats
path: root/src/H5Dio.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-06-15 16:12:29 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-06-15 16:12:29 (GMT)
commit2b81894af7cad966189d2b1303d3814f33f1e196 (patch)
treecbb372222bdcaabf9e93d25e6ac58c124c1838ff /src/H5Dio.c
parent7c18329abe3de6a0262914c7aeece57df95d95bd (diff)
downloadhdf5-2b81894af7cad966189d2b1303d3814f33f1e196.zip
hdf5-2b81894af7cad966189d2b1303d3814f33f1e196.tar.gz
hdf5-2b81894af7cad966189d2b1303d3814f33f1e196.tar.bz2
[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
Diffstat (limited to 'src/H5Dio.c')
-rw-r--r--src/H5Dio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5Dio.c b/src/H5Dio.c
index 243b5a9..577df91 100644
--- a/src/H5Dio.c
+++ b/src/H5Dio.c
@@ -2764,7 +2764,8 @@ H5D_create_chunk_file_map_hyper(fm_map *fm)
new_chunk_info->mspace_shared=0;
/* 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;
/* Insert the new chunk into the TBBT tree */