diff options
author | esgv <esgv@yandex-team.ru> | 2022-02-10 16:50:24 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:24 +0300 |
commit | 555c14603bb6a3b676b9ace65d6e5a8b35a32fee (patch) | |
tree | fc3aad5265a334515cb93f346bd7addc6f9bf52a /util | |
parent | beb63ece3a6872dfbe113104f524ab6fdbec0adc (diff) | |
download | ydb-555c14603bb6a3b676b9ace65d6e5a8b35a32fee.tar.gz |
Restoring authorship annotation for <esgv@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util')
-rw-r--r-- | util/generic/ymath.cpp | 16 | ||||
-rw-r--r-- | util/generic/ymath.h | 8 |
2 files changed, 12 insertions, 12 deletions
diff --git a/util/generic/ymath.cpp b/util/generic/ymath.cpp index 31270728f4..b2846b2f10 100644 --- a/util/generic/ymath.cpp +++ b/util/generic/ymath.cpp @@ -1,13 +1,13 @@ #include "ymath.h" -double Exp2(double x) { - return pow(2.0, x); -} - -float Exp2f(float x) { - return powf(2.0f, x); -} - +double Exp2(double x) { + return pow(2.0, x); +} + +float Exp2f(float x) { + return powf(2.0f, x); +} + #ifdef _MSC_VER double Erf(double x) { diff --git a/util/generic/ymath.h b/util/generic/ymath.h index 9ff9ae2abe..1534a490bc 100644 --- a/util/generic/ymath.h +++ b/util/generic/ymath.h @@ -47,10 +47,10 @@ Log2(T value) { return Log2(static_cast<double>(value)); } -/** Returns 2^x */ -double Exp2(double); -float Exp2f(float); - +/** Returns 2^x */ +double Exp2(double); +float Exp2f(float); + template <class T> static constexpr T Sqr(const T t) noexcept { return t * t; |