mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
10 lines
195 B
C++
10 lines
195 B
C++
#pragma once
|
|
|
|
#if defined(_MSC_VER)
|
|
#define likely(x) (x)
|
|
#define unlikely(x) (x)
|
|
#else
|
|
#define likely(x) (__builtin_expect(!!(x), 1))
|
|
#define unlikely(x) (__builtin_expect(!!(x), 0))
|
|
#endif
|