aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/ymath.h
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:48 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:48 +0300
commit9abfb1a53b7f7b791444d1378e645d8fad9b06ed (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /util/generic/ymath.h
parent8cbc307de0221f84c80c42dcbe07d40727537e2c (diff)
downloadydb-9abfb1a53b7f7b791444d1378e645d8fad9b06ed.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/ymath.h')
-rw-r--r--util/generic/ymath.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/util/generic/ymath.h b/util/generic/ymath.h
index 5fe17e2608..9ff9ae2abe 100644
--- a/util/generic/ymath.h
+++ b/util/generic/ymath.h
@@ -10,9 +10,9 @@
#include "typetraits.h"
#include "utility.h"
-constexpr double PI = M_PI;
-constexpr double M_LOG2_10 = 3.32192809488736234787; // log2(10)
-constexpr double M_LN2_INV = M_LOG2E; // 1 / ln(2) == log2(e)
+constexpr double PI = M_PI;
+constexpr double M_LOG2_10 = 3.32192809488736234787; // log2(10)
+constexpr double M_LN2_INV = M_LOG2E; // 1 / ln(2) == log2(e)
/**
* \returns Absolute value of the provided argument.
@@ -42,7 +42,7 @@ inline float Log2(float value) {
* @returns Base 2 logarithm of the provided integral value.
*/
template <class T>
-inline std::enable_if_t<std::is_integral<T>::value, double>
+inline std::enable_if_t<std::is_integral<T>::value, double>
Log2(T value) {
return Log2(static_cast<double>(value));
}
@@ -52,7 +52,7 @@ double Exp2(double);
float Exp2f(float);
template <class T>
-static constexpr T Sqr(const T t) noexcept {
+static constexpr T Sqr(const T t) noexcept {
return t * t;
}