diff options
author | ekrokhalev <ekrokhalev@yandex-team.ru> | 2022-02-10 16:50:10 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:10 +0300 |
commit | 1c01ed5294724fda060c1f0bd674b315fe249598 (patch) | |
tree | c21292982d2c8182cdf5753f9a49e7cda547f4d3 /library/cpp/accurate_accumulate | |
parent | 9991a6195dee8db26aa7e2f5f21549fb20e25002 (diff) | |
download | ydb-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.h | 30 |
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; |