diff options
author | vvvv <vvvv@yandex-team.ru> | 2022-02-10 16:46:34 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:34 +0300 |
commit | ad94e93a059747f4fc3d7add88d1a83daf40b733 (patch) | |
tree | 731d57e580bd143e1136e7747f13b26e6bac95d0 /contrib | |
parent | 298c6da79f1d8f35089a67f463f0b541bec36d9b (diff) | |
download | ydb-ad94e93a059747f4fc3d7add88d1a83daf40b733.tar.gz |
Restoring authorship annotation for <vvvv@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/libs/cxxsupp/libcxxrt/guard.cc | 4 | ||||
-rw-r--r-- | contrib/libs/grpc/src/core/lib/iomgr/error.cc | 6 | ||||
-rw-r--r-- | contrib/libs/highwayhash/highwayhash/os_specific.cc | 10 | ||||
-rw-r--r-- | contrib/tools/python/src/Include/pyport.h | 40 |
4 files changed, 30 insertions, 30 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 diff --git a/contrib/tools/python/src/Include/pyport.h b/contrib/tools/python/src/Include/pyport.h index ad2ff5929a..d5379b8331 100644 --- a/contrib/tools/python/src/Include/pyport.h +++ b/contrib/tools/python/src/Include/pyport.h @@ -763,16 +763,16 @@ extern int fdatasync(int); # define HAVE_DECLSPEC_DLL #endif -/* - * GCC visibility support, introduced in GCC 4.0. Only matters when - * compiling with gcc's -fvisibility=hidden argument. This applies to all - * binaries and when embedding, not just libpython.so. See - * http://gcc.gnu.org/wiki/Visibility for more information. - */ -#if defined(__GNUC__) && __GNUC__ >= 4 -# define HAVE_ATTRIBUTE_VISIBILITY -#endif - +/* + * GCC visibility support, introduced in GCC 4.0. Only matters when + * compiling with gcc's -fvisibility=hidden argument. This applies to all + * binaries and when embedding, not just libpython.so. See + * http://gcc.gnu.org/wiki/Visibility for more information. + */ +#if defined(__GNUC__) && __GNUC__ >= 4 +# define HAVE_ATTRIBUTE_VISIBILITY +#endif + /* only get special linkage if built as shared or platform is Cygwin */ #if defined(Py_ENABLE_SHARED) # if defined(HAVE_DECLSPEC_DLL) @@ -804,16 +804,16 @@ extern int fdatasync(int); # endif /* __cplusplus */ # endif /* Py_BUILD_CORE */ # endif /* HAVE_DECLSPEC */ -#elif defined(HAVE_ATTRIBUTE_VISIBILITY) -# define PyAPI_FUNC(RTYPE) __attribute__((visibility("default"))) RTYPE -# define PyAPI_DATA(RTYPE) extern __attribute__((visibility("default"))) RTYPE -# ifdef Py_BUILD_CORE -# define PyMODINIT_FUNC void -# elif defined(__cplusplus) -# define PyMODINIT_FUNC extern "C" __attribute__((visibility("default"))) void -# else /* __cplusplus */ -# define PyMODINIT_FUNC __attribute__((visibility("default"))) void -# endif /* Py_BUILD_CORE */ +#elif defined(HAVE_ATTRIBUTE_VISIBILITY) +# define PyAPI_FUNC(RTYPE) __attribute__((visibility("default"))) RTYPE +# define PyAPI_DATA(RTYPE) extern __attribute__((visibility("default"))) RTYPE +# ifdef Py_BUILD_CORE +# define PyMODINIT_FUNC void +# elif defined(__cplusplus) +# define PyMODINIT_FUNC extern "C" __attribute__((visibility("default"))) void +# else /* __cplusplus */ +# define PyMODINIT_FUNC __attribute__((visibility("default"))) void +# endif /* Py_BUILD_CORE */ #endif /* Py_ENABLE_SHARED */ /* If no external linkage macros defined by now, create defaults */ |