remove unused branch prediction macros

This commit is contained in:
Sky Johnson 2025-06-23 08:20:05 -05:00
parent 797a7b4be7
commit 89c1f82441

View File

@ -8,15 +8,6 @@
#include <memory>
#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 {
using std::string_view;