diff options
author | Andras Horvath <ahorvath@gitlab.com> | 2022-04-26 13:36:00 +0200 |
---|---|---|
committer | Andras Horvath <ahorvath@gitlab.com> | 2022-04-26 13:36:00 +0200 |
commit | d2cd3d36c353fee578f752c4e65a8c1efcee002c (patch) | |
tree | d53d552b6eecbd5326f4cc08dfc2e5c3365512cd | |
parent | 482b2f57ad6f0a6176c10d41623b4dbe27a29138 (diff) |
Bump to v1.5
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | mbw.c | 12 | ||||
-rw-r--r-- | mbw.spec | 5 |
3 files changed, 11 insertions, 8 deletions
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) @@ -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 */ @@ -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 <andras.horvath@gmail.com> 1.5-1 +- New platform support (Mac) + * Fri May 04 2018 Andras Horvath <andras.horvath@gmail.com> 1.4-2 - Explicitly specify licence version |