neatvnc/likely.h

6 lines
117 B
C
Raw Normal View History

2019-08-25 16:40:59 +00:00
#pragma once
#define likely(x) __builtin_expect(!!(x), 1)
#define unlikely(x) __builtin_expect(!!(x), 0)