diff --git a/CMakeLists.txt b/CMakeLists.txt index f739d7d..d3d4fcd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.10) -project(mbw VERSION 1.4.1) +project(mbw VERSION 1.5) add_executable(mbw mbw.c) install(TARGETS mbw DESTINATION bin) diff --git a/mbw.c b/mbw.c index 884fd60..e928153 100644 --- a/mbw.c +++ b/mbw.c @@ -29,7 +29,7 @@ #define TEST_MCBLOCK 2 /* version number */ -#define VERSION "1.4" +#define VERSION "1.5" /* * MBW memory bandwidth benchmark @@ -116,14 +116,14 @@ double worker(unsigned long long asize, long *a, long *b, int type, unsigned lon /* timer stops */ gettimeofday(&endtime, NULL); } else if(type==TEST_MCBLOCK) { /* memcpy block test */ - char* aa = (char*)a; - char* bb = (char*)b; + char* src = (char*)a; + char* dst = (char*)b; gettimeofday(&starttime, NULL); - for (t=array_bytes; t >= block_size; t-=block_size, aa+=block_size){ - bb=(char *) memcpy(bb, aa, block_size) + block_size; + for (t=array_bytes; t >= block_size; t-=block_size, src+=block_size){ + dst=(char *) memcpy(dst, src, block_size) + block_size; } if(t) { - bb=(char *) memcpy(bb, aa, t) + t; + dst=(char *) memcpy(dst, src, t) + t; } gettimeofday(&endtime, NULL); } else if(type==TEST_DUMB) { /* dumb test */ diff --git a/mbw.spec b/mbw.spec index 5edfa2a..2d1ca4e 100644 --- a/mbw.spec +++ b/mbw.spec @@ -1,6 +1,6 @@ Summary: Memory bandwidth benchmark Name: mbw -Version: 1.4 +Version: 1.5 Release: 1%{?dist} License: LGPLv2.1 Buildroot: %{_tmppath}/%{name}-buildroot @@ -33,6 +33,9 @@ rm -rf %{buildroot} %attr(644,-,-) %{_mandir}/man1/mbw.1.gz %changelog +* Tue Apr 26 2022 Andras Horvath 1.5-1 +- New platform support (Mac) + * Fri May 04 2018 Andras Horvath 1.4-2 - Explicitly specify licence version