aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs
diff options
context:
space:
mode:
authorvvvv <vvvv@yandex-team.ru>2022-02-10 16:46:34 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:34 +0300
commitad94e93a059747f4fc3d7add88d1a83daf40b733 (patch)
tree731d57e580bd143e1136e7747f13b26e6bac95d0 /contrib/libs
parent298c6da79f1d8f35089a67f463f0b541bec36d9b (diff)
downloadydb-ad94e93a059747f4fc3d7add88d1a83daf40b733.tar.gz
Restoring authorship annotation for <vvvv@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs')
-rw-r--r--contrib/libs/cxxsupp/libcxxrt/guard.cc4
-rw-r--r--contrib/libs/grpc/src/core/lib/iomgr/error.cc6
-rw-r--r--contrib/libs/highwayhash/highwayhash/os_specific.cc10
3 files changed, 10 insertions, 10 deletions
diff --git a/contrib/libs/cxxsupp/libcxxrt/guard.cc b/contrib/libs/cxxsupp/libcxxrt/guard.cc
index 10978716e8..c34f871e19 100644
--- a/contrib/libs/cxxsupp/libcxxrt/guard.cc
+++ b/contrib/libs/cxxsupp/libcxxrt/guard.cc
@@ -122,7 +122,7 @@ extern "C" int __cxa_guard_acquire(volatile guard_t *guard_object)
// if one is already established and we end up seeing an initialised state
// then it's a fast path, otherwise we'll do something more expensive than
// this test anyway...
- if (INITIALISED == __atomic_load_n(INIT_PART(guard_object), __ATOMIC_RELAXED))
+ if (INITIALISED == __atomic_load_n(INIT_PART(guard_object), __ATOMIC_RELAXED))
return 0;
// Spin trying to do the initialisation
for (;;)
@@ -142,7 +142,7 @@ extern "C" int __cxa_guard_acquire(volatile guard_t *guard_object)
// No need for a memory barrier here,
// see first comment.
- __atomic_store_n(LOCK_PART(guard_object), INITIAL, __ATOMIC_RELAXED);
+ __atomic_store_n(LOCK_PART(guard_object), INITIAL, __ATOMIC_RELAXED);
return 0;
}
// If lock and init bit are in the same word, check again
diff --git a/contrib/libs/grpc/src/core/lib/iomgr/error.cc b/contrib/libs/grpc/src/core/lib/iomgr/error.cc
index c4b5c73952..2a2da67679 100644
--- a/contrib/libs/grpc/src/core/lib/iomgr/error.cc
+++ b/contrib/libs/grpc/src/core/lib/iomgr/error.cc
@@ -737,9 +737,9 @@ static char* finish_kvs(kv_pairs* kvs) {
return s;
}
-// Newly allocated error string is stored into err object via atomic cas, and this drives coverity crazy
-// Disable allocation checks as the code is fine.
-// coverity[-alloc]
+// Newly allocated error string is stored into err object via atomic cas, and this drives coverity crazy
+// Disable allocation checks as the code is fine.
+// coverity[-alloc]
const char* grpc_error_string(grpc_error* err) {
GPR_TIMER_SCOPE("grpc_error_string", 0);
if (err == GRPC_ERROR_NONE) return no_error_string;
diff --git a/contrib/libs/highwayhash/highwayhash/os_specific.cc b/contrib/libs/highwayhash/highwayhash/os_specific.cc
index c28b2c1ae3..84b0b08821 100644
--- a/contrib/libs/highwayhash/highwayhash/os_specific.cc
+++ b/contrib/libs/highwayhash/highwayhash/os_specific.cc
@@ -40,7 +40,7 @@
#define OS_LINUX 0
#endif
-#if defined(__MACH__) || defined(__APPLE__)
+#if defined(__MACH__) || defined(__APPLE__)
#define OS_MAC 1
#include <mach/mach.h>
#include <mach/mach_time.h>
@@ -102,7 +102,7 @@ void RaiseThreadPriority() {
// omit: SCHED_RR and SCHED_FIFO with sched_priority max, max-1 and max/2
// lead to 2-3x runtime and higher variability!
#elif OS_FREEBSD
-#elif OS_MAC
+#elif OS_MAC
#else
#error "port"
#endif
@@ -166,7 +166,7 @@ void SetThreadAffinity(ThreadAffinity* affinity) {
const int err = cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID, pid,
sizeof(cpuset_t), &affinity->set);
CHECK(err == 0);
-#elif OS_MAC
+#elif OS_MAC
#else
#error "port"
#endif
@@ -194,7 +194,7 @@ std::vector<int> AvailableCPUs() {
cpus.push_back(cpu);
}
}
-#elif OS_MAC
+#elif OS_MAC
#else
#error "port"
#endif
@@ -211,7 +211,7 @@ void PinThreadToCPU(const int cpu) {
#elif OS_FREEBSD
CPU_ZERO(&affinity.set);
CPU_SET(cpu, &affinity.set);
-#elif OS_MAC
+#elif OS_MAC
#else
#error "port"
#endif