aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/ymath.h
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:46 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:46 +0300
commit8cbc307de0221f84c80c42dcbe07d40727537e2c (patch)
tree625d5a673015d1df891e051033e9fcde5c7be4e5 /util/generic/ymath.h
parent30d1ef3941e0dc835be7609de5ebee66958f215a (diff)
downloadydb-8cbc307de0221f84c80c42dcbe07d40727537e2c.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 1 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 9ff9ae2abe..5fe17e2608 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;
}