Mercurial > hg > minc-tools
changeset 641:2052a751d539
*** empty log message ***
author | david <david> |
---|---|
date | Mon, 24 Oct 1994 09:58:50 +0000 |
parents | f4a54d29abf8 |
children | c82be9da6d04 |
files | volume_io/Volumes/input_mnc.c |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/volume_io/Volumes/input_mnc.c +++ b/volume_io/Volumes/input_mnc.c @@ -574,6 +574,15 @@ for_less( d, 0, n_src_dims ) ind[d] = src_ind[d]; + /*--- check if we can transfer more than one at once */ + + while( n_src_dims > 0 && to_dest_index[n_src_dims-1] == n_dest_dims-1 ) + { + type_size *= src_sizes[n_src_dims-1]; + --n_src_dims; + --n_dest_dims; + } + done = FALSE; while( !done ) {