figments: figment: add F_LIKELY, F_UNLIKELY macros
This commit is contained in:
parent
160cbc5ea9
commit
1426b1524b
@ -3,6 +3,9 @@
|
|||||||
#include <functional>
|
#include <functional>
|
||||||
#include <ArduinoLog.h>
|
#include <ArduinoLog.h>
|
||||||
|
|
||||||
|
#define F_LIKELY(x) __builtin_expect(!!(x), true)
|
||||||
|
#define F_UNLIKELY(x) __builtin_expect(!!(x), false)
|
||||||
|
|
||||||
class Display;
|
class Display;
|
||||||
class InputEvent;
|
class InputEvent;
|
||||||
class InputSource;
|
class InputSource;
|
||||||
|
Loading…
Reference in New Issue
Block a user