1 /* This file is part of the dynarmic project. 2 * Copyright (c) 2020 MerryMage 3 * SPDX-License-Identifier: 0BSD 4 */ 5 6 #pragma once 7 8 #if defined(__clang__) || defined(__GNUC__) 9 #define UNLIKELY(x) __builtin_expect(!!(x), 0) 10 #else 11 #define UNLIKELY(x) !!(x) 12 #endif 13