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
commit8d3a5b9c70bfb823a30242286328d6017b82b9ce (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/accurate_accumulate
parent1c01ed5294724fda060c1f0bd674b315fe249598 (diff)
downloadydb-8d3a5b9c70bfb823a30242286328d6017b82b9ce.tar.gz
Restoring authorship annotation for <ekrokhalev@yandex-team.ru>. Commit 2 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 b90ea2f4d2..dacced17e9 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;