aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/accurate_accumulate
diff options
context:
space:
mode:
authorekrokhalev <ekrokhalev@yandex-team.ru>2022-02-10 16:50:10 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:10 +0300
commit1c01ed5294724fda060c1f0bd674b315fe249598 (patch)
treec21292982d2c8182cdf5753f9a49e7cda547f4d3 /library/cpp/accurate_accumulate
parent9991a6195dee8db26aa7e2f5f21549fb20e25002 (diff)
downloadydb-1c01ed5294724fda060c1f0bd674b315fe249598.tar.gz
Restoring authorship annotation for <ekrokhalev@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/accurate_accumulate')
-rw-r--r--library/cpp/accurate_accumulate/accurate_accumulate.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/library/cpp/accurate_accumulate/accurate_accumulate.h b/library/cpp/accurate_accumulate/accurate_accumulate.h
index dacced17e9..b90ea2f4d2 100644
--- a/library/cpp/accurate_accumulate/accurate_accumulate.h
+++ b/library/cpp/accurate_accumulate/accurate_accumulate.h
@@ -42,24 +42,24 @@ public:
template <typename TFloatType>
inline bool operator<(const TKahanAccumulator<TFloatType>& other) const {
return Get() < other.Get();
- }
-
- template <typename TFloatType>
+ }
+
+ template <typename TFloatType>
inline bool operator<=(const TKahanAccumulator<TFloatType>& other) const {
- return !(other < *this);
- }
-
- template <typename TFloatType>
+ return !(other < *this);
+ }
+
+ template <typename TFloatType>
inline bool operator>(const TKahanAccumulator<TFloatType>& other) const {
- return other < *this;
- }
-
- template <typename TFloatType>
+ return other < *this;
+ }
+
+ template <typename TFloatType>
inline bool operator>=(const TKahanAccumulator<TFloatType>& other) const {
- return !(*this < other);
- }
-
- template <typename TFloatType>
+ return !(*this < other);
+ }
+
+ template <typename TFloatType>
inline TKahanAccumulator& operator+=(const TFloatType x) {
const TValueType y = TValueType(x) - Compensation_;
const TValueType t = Sum_ + y;