aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/int128
diff options
context:
space:
mode:
authorcerevra <cerevra@yandex-team.ru>2022-02-10 16:45:58 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:58 +0300
commitbf41dd01f6c920583e9faae7cd55ed25e547e052 (patch)
treeec7c8c285ffa648a5c5efeff453787a15ab811ac /library/cpp/int128
parente2c3e3004f7cd68441cefcfa4aaccd3d8051c846 (diff)
downloadydb-bf41dd01f6c920583e9faae7cd55ed25e547e052.tar.gz
Restoring authorship annotation for <cerevra@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/int128')
-rw-r--r--library/cpp/int128/bench/main.cpp2
-rw-r--r--library/cpp/int128/bench/ya.make2
-rw-r--r--library/cpp/int128/ut/i128_and_intrinsic_identity_ut.cpp2
-rw-r--r--library/cpp/int128/ut/i128_comparison_ut.cpp2
-rw-r--r--library/cpp/int128/ut/i128_division_ut.cpp2
-rw-r--r--library/cpp/int128/ut/i128_type_traits_ut.cpp2
-rw-r--r--library/cpp/int128/ut/i128_ut.cpp2
-rw-r--r--library/cpp/int128/ut/int128_old_ut.cpp2
-rw-r--r--library/cpp/int128/ut/int128_typetraits_ut.cpp2
-rw-r--r--library/cpp/int128/ut/int128_ut.cpp2
-rw-r--r--library/cpp/int128/ut/int128_ut_helpers.h2
-rw-r--r--library/cpp/int128/ut/int128_via_intrinsic_ut.cpp26
-rw-r--r--library/cpp/int128/ut/ui128_division_ut.cpp2
-rw-r--r--library/cpp/int128/ut/ya.make2
14 files changed, 26 insertions, 26 deletions
diff --git a/library/cpp/int128/bench/main.cpp b/library/cpp/int128/bench/main.cpp
index be4f8d1500..aeb5e8e833 100644
--- a/library/cpp/int128/bench/main.cpp
+++ b/library/cpp/int128/bench/main.cpp
@@ -1,4 +1,4 @@
-#include <library/cpp/int128/int128.h>
+#include <library/cpp/int128/int128.h>
#include <library/cpp/testing/benchmark/bench.h>
#include <util/generic/xrange.h>
diff --git a/library/cpp/int128/bench/ya.make b/library/cpp/int128/bench/ya.make
index 4800e7883d..df833a6786 100644
--- a/library/cpp/int128/bench/ya.make
+++ b/library/cpp/int128/bench/ya.make
@@ -9,7 +9,7 @@ SRCS(
)
PEERDIR(
- library/cpp/int128
+ library/cpp/int128
)
END()
diff --git a/library/cpp/int128/ut/i128_and_intrinsic_identity_ut.cpp b/library/cpp/int128/ut/i128_and_intrinsic_identity_ut.cpp
index dbb7507a73..9b23acfa14 100644
--- a/library/cpp/int128/ut/i128_and_intrinsic_identity_ut.cpp
+++ b/library/cpp/int128/ut/i128_and_intrinsic_identity_ut.cpp
@@ -2,7 +2,7 @@
#include <library/cpp/testing/unittest/registar.h>
-#include <library/cpp/int128/int128.h>
+#include <library/cpp/int128/int128.h>
#include <util/generic/cast.h>
diff --git a/library/cpp/int128/ut/i128_comparison_ut.cpp b/library/cpp/int128/ut/i128_comparison_ut.cpp
index 7b8d508815..4f8915f861 100644
--- a/library/cpp/int128/ut/i128_comparison_ut.cpp
+++ b/library/cpp/int128/ut/i128_comparison_ut.cpp
@@ -1,6 +1,6 @@
#include <library/cpp/testing/unittest/registar.h>
-#include <library/cpp/int128/int128.h>
+#include <library/cpp/int128/int128.h>
#include <util/generic/cast.h>
diff --git a/library/cpp/int128/ut/i128_division_ut.cpp b/library/cpp/int128/ut/i128_division_ut.cpp
index 46b0ca27f5..45123abf80 100644
--- a/library/cpp/int128/ut/i128_division_ut.cpp
+++ b/library/cpp/int128/ut/i128_division_ut.cpp
@@ -1,6 +1,6 @@
#include <library/cpp/testing/unittest/registar.h>
-#include <library/cpp/int128/int128.h>
+#include <library/cpp/int128/int128.h>
#include <util/generic/cast.h>
diff --git a/library/cpp/int128/ut/i128_type_traits_ut.cpp b/library/cpp/int128/ut/i128_type_traits_ut.cpp
index 4ed87bf229..c330ae0362 100644
--- a/library/cpp/int128/ut/i128_type_traits_ut.cpp
+++ b/library/cpp/int128/ut/i128_type_traits_ut.cpp
@@ -1,6 +1,6 @@
#include <library/cpp/testing/unittest/registar.h>
-#include <library/cpp/int128/int128.h>
+#include <library/cpp/int128/int128.h>
#include <util/generic/cast.h>
diff --git a/library/cpp/int128/ut/i128_ut.cpp b/library/cpp/int128/ut/i128_ut.cpp
index c196d132a2..46477ad17f 100644
--- a/library/cpp/int128/ut/i128_ut.cpp
+++ b/library/cpp/int128/ut/i128_ut.cpp
@@ -1,6 +1,6 @@
#include <library/cpp/testing/unittest/registar.h>
-#include <library/cpp/int128/int128.h>
+#include <library/cpp/int128/int128.h>
#include <util/generic/cast.h>
diff --git a/library/cpp/int128/ut/int128_old_ut.cpp b/library/cpp/int128/ut/int128_old_ut.cpp
index 2c5b9e9610..ea61740e56 100644
--- a/library/cpp/int128/ut/int128_old_ut.cpp
+++ b/library/cpp/int128/ut/int128_old_ut.cpp
@@ -1,5 +1,5 @@
#include <library/cpp/testing/unittest/registar.h>
-#include <library/cpp/int128/int128.h>
+#include <library/cpp/int128/int128.h>
#include "int128_ut_helpers.h"
diff --git a/library/cpp/int128/ut/int128_typetraits_ut.cpp b/library/cpp/int128/ut/int128_typetraits_ut.cpp
index fd5f19d7b8..8329f2463e 100644
--- a/library/cpp/int128/ut/int128_typetraits_ut.cpp
+++ b/library/cpp/int128/ut/int128_typetraits_ut.cpp
@@ -1,6 +1,6 @@
#include <library/cpp/testing/unittest/registar.h>
-#include <library/cpp/int128/int128.h>
+#include <library/cpp/int128/int128.h>
#include <type_traits>
diff --git a/library/cpp/int128/ut/int128_ut.cpp b/library/cpp/int128/ut/int128_ut.cpp
index 7339264017..e38910186c 100644
--- a/library/cpp/int128/ut/int128_ut.cpp
+++ b/library/cpp/int128/ut/int128_ut.cpp
@@ -1,6 +1,6 @@
#include <library/cpp/testing/unittest/registar.h>
-#include <library/cpp/int128/int128.h>
+#include <library/cpp/int128/int128.h>
#include <util/generic/cast.h>
diff --git a/library/cpp/int128/ut/int128_ut_helpers.h b/library/cpp/int128/ut/int128_ut_helpers.h
index b7778c3f32..2ad19a8999 100644
--- a/library/cpp/int128/ut/int128_ut_helpers.h
+++ b/library/cpp/int128/ut/int128_ut_helpers.h
@@ -1,6 +1,6 @@
#pragma once
-#include <library/cpp/int128/int128.h>
+#include <library/cpp/int128/int128.h>
#include <array>
diff --git a/library/cpp/int128/ut/int128_via_intrinsic_ut.cpp b/library/cpp/int128/ut/int128_via_intrinsic_ut.cpp
index 9decc2fd48..3924f6d743 100644
--- a/library/cpp/int128/ut/int128_via_intrinsic_ut.cpp
+++ b/library/cpp/int128/ut/int128_via_intrinsic_ut.cpp
@@ -1,34 +1,34 @@
-#include <library/cpp/int128/int128.h>
-
+#include <library/cpp/int128/int128.h>
+
#include <library/cpp/testing/unittest/registar.h>
-
+
// from https://a.yandex-team.ru/arc/trunk/arcadia/library/ticket_parser/c/src/ut/utils_ut.cpp?rev=4221861
-
+
#if defined(Y_HAVE_INT128)
Y_UNIT_TEST_SUITE(Int128ViaIntrinsicSuite) {
- using guint128_t = unsigned __int128;
+ using guint128_t = unsigned __int128;
guint128_t toGcc(ui128 num) {
- guint128_t res = 0;
+ guint128_t res = 0;
res |= GetLow(num);
res |= guint128_t(GetHigh(num)) << 64;
- return res;
- }
-
+ return res;
+ }
+
Y_UNIT_TEST(bigintTest) {
UNIT_ASSERT(guint128_t(127) == toGcc(ui128(127)));
UNIT_ASSERT(guint128_t(127) * guint128_t(127) == toGcc(ui128(127) * ui128(127)));
UNIT_ASSERT(guint128_t(127) + guint128_t(127) == toGcc(ui128(127) + ui128(127)));
UNIT_ASSERT(guint128_t(127) << 3 == toGcc(ui128(127) << 3));
UNIT_ASSERT(guint128_t(127) >> 1 == toGcc(ui128(127) >> 1));
-
+
UNIT_ASSERT(guint128_t(1000000000027UL) * guint128_t(1000000000027UL) == toGcc(ui128(1000000000027UL) * ui128(1000000000027UL)));
UNIT_ASSERT(guint128_t(1000000000027UL) + guint128_t(1000000000027UL) == toGcc(ui128(1000000000027UL) + ui128(1000000000027UL)));
UNIT_ASSERT(guint128_t(1000000000027UL) << 3 == toGcc(ui128(1000000000027UL) << 3));
UNIT_ASSERT(guint128_t(1000000000027UL) >> 1 == toGcc(ui128(1000000000027UL) >> 1));
UNIT_ASSERT((guint128_t(1000000000027UL) * guint128_t(1000000000027UL)) << 3 == toGcc((ui128(1000000000027UL) * ui128(1000000000027UL)) << 3));
UNIT_ASSERT((guint128_t(1000000000027UL) + guint128_t(1000000000027UL)) >> 1 == toGcc((ui128(1000000000027UL) + ui128(1000000000027UL)) >> 1));
-
+
UNIT_ASSERT((ui64)(guint128_t(1000000000027UL) * guint128_t(1000000000027UL)) == GetLow(ui128(1000000000027UL) * ui128(1000000000027UL)));
- }
-}
+ }
+}
#endif
diff --git a/library/cpp/int128/ut/ui128_division_ut.cpp b/library/cpp/int128/ut/ui128_division_ut.cpp
index 4826a531e0..0073838c32 100644
--- a/library/cpp/int128/ut/ui128_division_ut.cpp
+++ b/library/cpp/int128/ut/ui128_division_ut.cpp
@@ -1,6 +1,6 @@
#include <library/cpp/testing/unittest/registar.h>
-#include <library/cpp/int128/int128.h>
+#include <library/cpp/int128/int128.h>
#include <util/generic/cast.h>
diff --git a/library/cpp/int128/ut/ya.make b/library/cpp/int128/ut/ya.make
index fd43531c5f..98612fbee3 100644
--- a/library/cpp/int128/ut/ya.make
+++ b/library/cpp/int128/ut/ya.make
@@ -1,4 +1,4 @@
-UNITTEST_FOR(library/cpp/int128)
+UNITTEST_FOR(library/cpp/int128)
OWNER(vladon)