aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/pire
diff options
context:
space:
mode:
authorishfb <ishfb@yandex-team.ru>2022-02-10 16:48:08 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:08 +0300
commit069c69f58fd78de3cf2e6eb2304047281e21fb65 (patch)
treeb222e5ac2e2e98872661c51ccceee5da0d291e13 /contrib/libs/pire
parent0170772a2dbf133f32e17ca137ff64790d43831f (diff)
downloadydb-069c69f58fd78de3cf2e6eb2304047281e21fb65.tar.gz
Restoring authorship annotation for <ishfb@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/pire')
-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 3274dc0747..842e2b534d 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 1296a3d1e9..54ded6b387 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 264cf1320f..f6e1ff734d 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;