mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +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
|