diff options
author | Andras HORVATH <andras.horvath@gmail.com> | 2012-03-06 23:22:14 +0100 |
---|---|---|
committer | Andras HORVATH <andras.horvath@gmail.com> | 2012-03-06 23:22:14 +0100 |
commit | 05f68a6108b2a230b5d2ce8b89f4564f6564c1a7 (patch) | |
tree | 4ee9cb4795afc80f6bc4e650691213c37f6365e7 /mbw.c | |
parent | e614955e981ea9f64deff7b44046b578c6b20e9b (diff) |
Fix MCBLOCK test: actually copy to the full buffer, not just its first $blocksize.
Diffstat (limited to 'mbw.c')
-rw-r--r-- | mbw.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -99,10 +99,10 @@ double worker(unsigned long long asize, long *a, long *b, int type, unsigned lon } else if(type==2) { /* memcpy block test */ gettimeofday(&starttime, NULL); for(t=0; t<array_bytes; t+=block_size) { - c=mempcpy(b,a,block_size); + b=mempcpy(b,a,block_size); } if(t>array_bytes){ - c=mempcpy(b,a,t-array_bytes); + b=mempcpy(b,a,t-array_bytes); } gettimeofday(&endtime, NULL); } else { /* dumb test */ |