aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorishfb <ishfb@yandex-team.ru>2022-02-10 16:48:07 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:07 +0300
commit0170772a2dbf133f32e17ca137ff64790d43831f (patch)
tree68ce3ab477bcb9e09abf2b0a6e7b34287c53f0df /contrib
parentdf6128370874866447314ec18d8e67fc7bde40b4 (diff)
downloadydb-0170772a2dbf133f32e17ca137ff64790d43831f.tar.gz
Restoring authorship annotation for <ishfb@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/libs/pire/pire/encoding.cpp12
-rw-r--r--contrib/libs/pire/pire/platform.h32
-rw-r--r--contrib/libs/pire/pire/run.h2
3 files changed, 23 insertions, 23 deletions
diff --git a/contrib/libs/pire/pire/encoding.cpp b/contrib/libs/pire/pire/encoding.cpp
index 842e2b534d..3274dc0747 100644
--- a/contrib/libs/pire/pire/encoding.cpp
+++ b/contrib/libs/pire/pire/encoding.cpp
@@ -118,17 +118,17 @@ namespace {
namespace Encodings {
const Encoding& Utf8()
- {
- static const Pire::Utf8 utf8;
+ {
+ static const Pire::Utf8 utf8;
return utf8;
- }
+ }
const Encoding& Latin1()
- {
+ {
static const Pire::Latin1 latin1;
return latin1;
- }
-
+ }
+
}
}
diff --git a/contrib/libs/pire/pire/platform.h b/contrib/libs/pire/pire/platform.h
index 54ded6b387..1296a3d1e9 100644
--- a/contrib/libs/pire/pire/platform.h
+++ b/contrib/libs/pire/pire/platform.h
@@ -42,22 +42,22 @@
#define PIRE_HOT_FUNCTION
#endif
-#ifndef PIRE_LIKELY
-#ifdef __GNUC__
-#define PIRE_LIKELY(x) (__builtin_expect((x), 1))
-#else
-#define PIRE_LIKELY(x) (x)
-#endif
-#endif
-
-#ifndef PIRE_UNLIKELY
-#ifdef __GNUC__
-#define PIRE_UNLIKELY(x) (__builtin_expect((x), 0))
-#else
-#define PIRE_UNLIKELY(x) (x)
-#endif
-#endif
-
+#ifndef PIRE_LIKELY
+#ifdef __GNUC__
+#define PIRE_LIKELY(x) (__builtin_expect((x), 1))
+#else
+#define PIRE_LIKELY(x) (x)
+#endif
+#endif
+
+#ifndef PIRE_UNLIKELY
+#ifdef __GNUC__
+#define PIRE_UNLIKELY(x) (__builtin_expect((x), 0))
+#else
+#define PIRE_UNLIKELY(x) (x)
+#endif
+#endif
+
#ifdef _MSC_VER
#include <stdio.h>
#include <stdarg.h>
diff --git a/contrib/libs/pire/pire/run.h b/contrib/libs/pire/pire/run.h
index f6e1ff734d..264cf1320f 100644
--- a/contrib/libs/pire/pire/run.h
+++ b/contrib/libs/pire/pire/run.h
@@ -139,7 +139,7 @@ namespace Impl {
if (PIRE_UNLIKELY(size == 0))
return Continue;
-
+
size_t chunk = Impl::ToLittleEndian(*p) >> 8*pos;
const char* ptr = (const char*) p + pos + size + 1;