From 2b81894af7cad966189d2b1303d3814f33f1e196 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Tue, 15 Jun 2004 11:12:29 -0500 Subject: [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 --- src/H5Dio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; uf_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 */ -- cgit v0.12