regparm is an x86 only attribute, only define it there

This commit is contained in:
Aaron Kling 2019-05-23 15:28:09 -05:00
parent c013d499d5
commit 2e1333e1bb
1 changed files with 3 additions and 3 deletions

View File

@ -4,16 +4,16 @@
extern int armExecute();
extern int thumbExecute();
#ifdef __GNUC__
#ifndef __APPLE__
#if defined(__i386__) || defined(__x86_64__)
#define INSN_REGPARM __attribute__((regparm(1)))
#else
#define INSN_REGPARM /*nothing*/
#endif
#ifdef __GNUC__
#define LIKELY(x) __builtin_expect(!!(x), 1)
#define UNLIKELY(x) __builtin_expect(!!(x), 0)
#else
#define INSN_REGPARM /*nothing*/
#define LIKELY(x) (x)
#define UNLIKELY(x) (x)
#endif