clean up common
This commit is contained in:
parent
16688ac679
commit
adca7bf2ab
@ -4,14 +4,8 @@
|
|||||||
#include <string_view>
|
#include <string_view>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
// Branch prediction hints
|
|
||||||
#if defined(__GNUC__) || defined(__clang__)
|
|
||||||
#define likely(x) __builtin_expect(!!(x), 1)
|
#define likely(x) __builtin_expect(!!(x), 1)
|
||||||
#define unlikely(x) __builtin_expect(!!(x), 0)
|
#define unlikely(x) __builtin_expect(!!(x), 0)
|
||||||
#else
|
|
||||||
#define likely(x) (x)
|
|
||||||
#define unlikely(x) (x)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
using std::string_view;
|
using std::string_view;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user