ClickHouse/libs/libcommon/include/common/likely.h
2017-04-01 11:35:09 +03:00

5 lines
116 B
C++

#pragma once
#define likely(x) (__builtin_expect(!!(x), 1))
#define unlikely(x) (__builtin_expect(!!(x), 0))