diff options
author | Thomas White <taw@physics.org> | 2010-06-02 17:20:11 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2010-06-02 17:20:11 +0200 |
commit | 4cc93cb75f051b2f0a9e1d78fce3b6217d12849d (patch) | |
tree | 865e3f6620226adeadcb6042ce0c340c4a2f0322 /src | |
parent | 891dc55c60e7270876ba8aea741e930273781e9f (diff) |
Just use memcpy() instead of looping
Diffstat (limited to 'src')
-rw-r--r-- | src/indexamajig.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c index 6cf9cd15..0320f44d 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -291,17 +291,7 @@ static void *process_image(void *pargsv) if ( config_noisefilter ) { filter_noise(&image, data_for_measurement); } else { - - int x, y; - - for ( x=0; x<image.width; x++ ) { - for ( y=0; y<image.height; y++ ) { - float val; - val = image.data[x+image.width*y]; - data_for_measurement[x+image.width*y] = val; - } - } - + memcpy(data_for_measurement, image.data, data_size); } /* Perform 'fine' peak search */ |