moves likely annotation

This commit is contained in:
Eyck Jentzsch 2024-07-09 13:30:04 +02:00
parent 24449f1c0f
commit fb4012fbd1
4 changed files with 8 additions and 24 deletions

View File

@ -44,6 +44,14 @@
#include <unordered_map> #include <unordered_map>
#include <util/logging.h> #include <util/logging.h>
#if defined(__GNUC__)
#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 iss { namespace iss {
namespace arch { namespace arch {

View File

@ -58,14 +58,6 @@
#include <iss/semihosting/semihosting.h> #include <iss/semihosting/semihosting.h>
#if defined(__GNUC__)
#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 iss { namespace iss {
namespace arch { namespace arch {

View File

@ -57,14 +57,6 @@
#include <iss/semihosting/semihosting.h> #include <iss/semihosting/semihosting.h>
#if defined(__GNUC__)
#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 iss { namespace iss {
namespace arch { namespace arch {

View File

@ -57,14 +57,6 @@
#include <iss/semihosting/semihosting.h> #include <iss/semihosting/semihosting.h>
#if defined(__GNUC__)
#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 iss { namespace iss {
namespace arch { namespace arch {