From bd6336c629841c6db3a6ca53a936d629d34db53b Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Fri, 18 Apr 2014 17:15:16 +0200 Subject: 4.1 --- shared/global_func.h | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 shared/global_func.h (limited to 'shared/global_func.h') diff --git a/shared/global_func.h b/shared/global_func.h deleted file mode 100644 index b3c13a24..00000000 --- a/shared/global_func.h +++ /dev/null @@ -1,27 +0,0 @@ -// ************************************************************************** -// * This file is part of the FreeFileSync project. It is distributed under * -// * GNU General Public License: http://www.gnu.org/licenses/gpl.html * -// * Copyright (C) 2008-2011 ZenJu (zhnmju123 AT gmx.de) * -// ************************************************************************** - -#ifndef GLOBALFUNCTIONS_H_INCLUDED -#define GLOBALFUNCTIONS_H_INCLUDED - -#include - - -namespace common -{ -//little rounding function -inline -int round(double d) { return static_cast(d < 0 ? d - 0.5 : d + 0.5); } - -//absolute value -template inline -T abs(const T& d) { return d < 0 ? -d : d; } - -inline -size_t getDigitCount(size_t number) { return number == 0 ? 1 : static_cast(std::log10(static_cast(number))) + 1; } //count number of digits -} - -#endif //GLOBALFUNCTIONS_H_INCLUDED -- cgit