remove unused branch prediction macros
This commit is contained in:
parent
797a7b4be7
commit
89c1f82441
@ -8,15 +8,6 @@
|
|||||||
#include <memory>
|
#include <memory>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
|
||||||
// Branch prediction hints
|
|
||||||
#if defined(__GNUC__) || defined(__clang__)
|
|
||||||
#define likely(x) __builtin_expect(!!(x), 1)
|
|
||||||
#define unlikely(x) __builtin_expect(!!(x), 0)
|
|
||||||
#else
|
|
||||||
#define likely(x) (x)
|
|
||||||
#define unlikely(x) (x)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace goldfish {
|
namespace goldfish {
|
||||||
|
|
||||||
using std::string_view;
|
using std::string_view;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user