summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndras Horvath <ahorvath@gitlab.com>2022-04-26 13:36:00 +0200
committerAndras Horvath <ahorvath@gitlab.com>2022-04-26 13:36:00 +0200
commitd2cd3d36c353fee578f752c4e65a8c1efcee002c (patch)
treed53d552b6eecbd5326f4cc08dfc2e5c3365512cd
parent482b2f57ad6f0a6176c10d41623b4dbe27a29138 (diff)
Bump to v1.5
-rw-r--r--CMakeLists.txt2
-rw-r--r--mbw.c12
-rw-r--r--mbw.spec5
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)
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 <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