From 55d047aa92fe3498ccea6bfda007a997e403fccb Mon Sep 17 00:00:00 2001 From: inikep Date: Thu, 28 Apr 2016 16:50:13 +0200 Subject: [PATCH] getTotalFileSize moved to common/util.h --- lib/common/util.h | 10 ++++++++++ programs/bench.c | 12 ++---------- programs/dibio.c | 12 +----------- 3 files changed, 13 insertions(+), 21 deletions(-) diff --git a/lib/common/util.h b/lib/common/util.h index 3eef4b1d..1de1efd8 100644 --- a/lib/common/util.h +++ b/lib/common/util.h @@ -138,6 +138,16 @@ UTIL_STATIC U64 UTIL_getFileSize(const char* infilename) } +UTIL_STATIC U64 UTIL_getTotalFileSize(const char** fileNamesTable, unsigned nbFiles) +{ + U64 total = 0; + unsigned n; + for (n=0; n /* malloc, free */ #include /* memset */ #include /* fprintf, fopen, ftello64 */ -#include "util.h" /* UTIL_GetFileSize */ #include "mem.h" #include "zstd_static.h" #include "datagen.h" /* RDG_genBuffer */ @@ -421,14 +421,6 @@ static void BMK_benchCLevel(void* srcBuffer, size_t benchedSize, } } -static U64 BMK_getTotalFileSize(const char** fileNamesTable, unsigned nbFiles) -{ - U64 total = 0; - unsigned n; - for (n=0; n