From: inikep Date: Thu, 28 Apr 2016 14:50:13 +0000 (+0200) Subject: getTotalFileSize moved to common/util.h X-Git-Tag: v0.6.1^2~39^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55d047aa92fe3498ccea6bfda007a997e403fccb;p=thirdparty%2Fzstd.git getTotalFileSize moved to common/util.h --- diff --git a/lib/common/util.h b/lib/common/util.h index 3eef4b1d0..1de1efd86 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