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/libs/highwayhash | |
parent | 298c6da79f1d8f35089a67f463f0b541bec36d9b (diff) | |
download | ydb-ad94e93a059747f4fc3d7add88d1a83daf40b733.tar.gz |
Restoring authorship annotation for <vvvv@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/highwayhash')
-rw-r--r-- | contrib/libs/highwayhash/highwayhash/os_specific.cc | 10 |
1 files changed, 5 insertions, 5 deletions
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 |