Macros
asmjit_build.h File Reference
#include <stdint.h>
#include <limits.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <algorithm>
#include <new>
#include <pthread.h>

Macros

#define _ASMJIT_BUILD_H
 
#define ASMJIT_API
 
#define ASMJIT_ARCH_64BIT   (ASMJIT_ARCH_X64 || ASMJIT_ARCH_ARM64)
 
#define ASMJIT_ARCH_ARM32   0
 
#define ASMJIT_ARCH_ARM64   0
 
#define ASMJIT_ARCH_BE   (!(ASMJIT_ARCH_LE))
 
#define ASMJIT_ARCH_LE
 
#define ASMJIT_ARCH_UNALIGNED_16   (ASMJIT_ARCH_X86 || ASMJIT_ARCH_X64)
 
#define ASMJIT_ARCH_UNALIGNED_32   (ASMJIT_ARCH_X86 || ASMJIT_ARCH_X64)
 
#define ASMJIT_ARCH_UNALIGNED_64   (ASMJIT_ARCH_X86 || ASMJIT_ARCH_X64)
 
#define ASMJIT_ARCH_X64   0
 
#define ASMJIT_ARCH_X86   0
 
#define ASMJIT_ARRAY_SIZE(x)   (sizeof(x) / sizeof(x[0]))
 
#define ASMJIT_ASSUME(exp)   ((void)0)
 
#define ASMJIT_ASSUME_ALIGNED(p, alignment)   ((void)0)
 
#define ASMJIT_BUILD_HOST
 
#define ASMJIT_CC_CLANG   0
 
#define ASMJIT_CC_CLANG_EQ(x, y, z)   (ASMJIT_CC_CLANG == ((x) * 10000000 + (y) * 100000 + (z)))
 
#define ASMJIT_CC_CLANG_GE(x, y, z)   (ASMJIT_CC_CLANG >= ((x) * 10000000 + (y) * 100000 + (z)))
 
#define ASMJIT_CC_CODEGEAR   0
 
#define ASMJIT_CC_CODEGEAR_EQ(x, y)   (ASMJIT_CC_CODEGEAR == (((x) << 8) + (y)))
 
#define ASMJIT_CC_CODEGEAR_GE(x, y)   (ASMJIT_CC_CODEGEAR >= (((x) << 8) + (y)))
 
#define ASMJIT_CC_CXX_VERSION   __cplusplus
 
#define ASMJIT_CC_GCC   0
 
#define ASMJIT_CC_GCC_EQ(x, y, z)   (ASMJIT_CC_GCC == ((x) * 10000000 + (y) * 100000 + (z)))
 
#define ASMJIT_CC_GCC_GE(x, y, z)   (ASMJIT_CC_GCC >= ((x) * 10000000 + (y) * 100000 + (z)))
 
#define ASMJIT_CC_HAS_ASSUME   (0)
 
#define ASMJIT_CC_HAS_ASSUME_ALIGNED   (0)
 
#define ASMJIT_CC_HAS_ATTRIBUTE   (0)
 
#define ASMJIT_CC_HAS_ATTRIBUTE_ALIGNED   (0)
 
#define ASMJIT_CC_HAS_ATTRIBUTE_ALWAYS_INLINE   (0)
 
#define ASMJIT_CC_HAS_ATTRIBUTE_NOINLINE   (0)
 
#define ASMJIT_CC_HAS_ATTRIBUTE_NORETURN   (0)
 
#define ASMJIT_CC_HAS_ATTRIBUTE_OPTIMIZE   (0)
 
#define ASMJIT_CC_HAS_BUILTIN_ASSUME   (0)
 
#define ASMJIT_CC_HAS_BUILTIN_ASSUME_ALIGNED   (0)
 
#define ASMJIT_CC_HAS_BUILTIN_EXPECT   (0)
 
#define ASMJIT_CC_HAS_BUILTIN_UNREACHABLE   (0)
 
#define ASMJIT_CC_HAS_DECLSPEC_ALIGN   (0)
 
#define ASMJIT_CC_HAS_DECLSPEC_FORCEINLINE   (0)
 
#define ASMJIT_CC_HAS_DECLSPEC_NOINLINE   (0)
 
#define ASMJIT_CC_HAS_DECLSPEC_NORETURN   (0)
 
#define ASMJIT_CC_INTEL   0
 
#define ASMJIT_CC_INTEL_COMPAT_MODE   0
 
#define ASMJIT_CC_INTEL_EQ(x, y)   (ASMJIT_CC_INTEL == (((x) * 100) + (y)))
 
#define ASMJIT_CC_INTEL_GE(x, y)   (ASMJIT_CC_INTEL >= (((x) * 100) + (y)))
 
#define ASMJIT_CC_MINGW   0
 
#define ASMJIT_CC_MSC   0
 
#define ASMJIT_CC_MSC_EQ(x, y, z)   (ASMJIT_CC_MSC == ((x) * 10000000 + (y) * 100000 + (z)))
 
#define ASMJIT_CC_MSC_GE(x, y, z)   (ASMJIT_CC_MSC >= ((x) * 10000000 + (y) * 100000 + (z)))
 
#define ASMJIT_CDECL
 
#define ASMJIT_DEBUG
 
#define ASMJIT_FALLTHROUGH   (void)0
 
#define ASMJIT_FASTCALL
 
#define ASMJIT_INLINE   inline
 
#define ASMJIT_LIKELY(exp)   (exp)
 
#define ASMJIT_NOEXCEPT
 
#define ASMJIT_NOINLINE
 
#define ASMJIT_NOP   ((void)0)
 
#define ASMJIT_NORETURN
 
#define ASMJIT_OFFSET_OF(x, y)   ((int)(intptr_t)((const char*)&((const x*)0x1)->y) - 1)
 
#define ASMJIT_OS_ANDROID   (0)
 
#define ASMJIT_OS_BSD
 
#define ASMJIT_OS_CYGWIN   (0)
 
#define ASMJIT_OS_DRAGONFLYBSD   (0)
 
#define ASMJIT_OS_FREEBSD   (0)
 
#define ASMJIT_OS_IOS   (0)
 
#define ASMJIT_OS_LINUX   (0)
 
#define ASMJIT_OS_MAC   (0)
 
#define ASMJIT_OS_NETBSD   (0)
 
#define ASMJIT_OS_OPENBSD   (0)
 
#define ASMJIT_OS_POSIX   (!ASMJIT_OS_WINDOWS)
 
#define ASMJIT_OS_QNX   (0)
 
#define ASMJIT_OS_SOLARIS   (0)
 
#define ASMJIT_OS_WINDOWS   (0)
 
#define ASMJIT_PACK32_4x8(A, B, C, D)   ((D) + ((C) << 8) + ((B) << 16) + ((A) << 24))
 
#define ASMJIT_REGPARM(n)
 
#define ASMJIT_STATIC
 
#define ASMJIT_STDCALL
 
#define ASMJIT_UINT64_C(x)   x##ull
 
#define ASMJIT_UNLIKELY(exp)   (exp)
 
#define ASMJIT_UNUSED(x)   (void)(x)
 
#define ASMJIT_VARAPI   extern ASMJIT_API
 
#define ASMJIT_VERSION_MAJOR   1
 
#define ASMJIT_VERSION_MINOR   0
 
#define ASMJIT_VERSION_PATCH   0
 
#define ASMJIT_VERSION_STRING   "1.0.0"
 
#define ASMJIT_VIRTAPI
 

Macro Definition Documentation

◆ _ASMJIT_BUILD_H

#define _ASMJIT_BUILD_H

◆ ASMJIT_API

#define ASMJIT_API

◆ ASMJIT_ARCH_64BIT

#define ASMJIT_ARCH_64BIT   (ASMJIT_ARCH_X64 || ASMJIT_ARCH_ARM64)

◆ ASMJIT_ARCH_ARM32

#define ASMJIT_ARCH_ARM32   0

◆ ASMJIT_ARCH_ARM64

#define ASMJIT_ARCH_ARM64   0

◆ ASMJIT_ARCH_BE

#define ASMJIT_ARCH_BE   (!(ASMJIT_ARCH_LE))

◆ ASMJIT_ARCH_LE

#define ASMJIT_ARCH_LE
Value:
( \
ASMJIT_ARCH_X86 || \
ASMJIT_ARCH_X64 || \
ASMJIT_ARCH_ARM32 || \
ASMJIT_ARCH_ARM64 )

◆ ASMJIT_ARCH_UNALIGNED_16

#define ASMJIT_ARCH_UNALIGNED_16   (ASMJIT_ARCH_X86 || ASMJIT_ARCH_X64)

◆ ASMJIT_ARCH_UNALIGNED_32

#define ASMJIT_ARCH_UNALIGNED_32   (ASMJIT_ARCH_X86 || ASMJIT_ARCH_X64)

◆ ASMJIT_ARCH_UNALIGNED_64

#define ASMJIT_ARCH_UNALIGNED_64   (ASMJIT_ARCH_X86 || ASMJIT_ARCH_X64)

◆ ASMJIT_ARCH_X64

#define ASMJIT_ARCH_X64   0

◆ ASMJIT_ARCH_X86

#define ASMJIT_ARCH_X86   0

◆ ASMJIT_ARRAY_SIZE

#define ASMJIT_ARRAY_SIZE (   x)    (sizeof(x) / sizeof(x[0]))

◆ ASMJIT_ASSUME

#define ASMJIT_ASSUME (   exp)    ((void)0)

◆ ASMJIT_ASSUME_ALIGNED

#define ASMJIT_ASSUME_ALIGNED (   p,
  alignment 
)    ((void)0)

◆ ASMJIT_BUILD_HOST

#define ASMJIT_BUILD_HOST

◆ ASMJIT_CC_CLANG

#define ASMJIT_CC_CLANG   0

◆ ASMJIT_CC_CLANG_EQ

#define ASMJIT_CC_CLANG_EQ (   x,
  y,
 
)    (ASMJIT_CC_CLANG == ((x) * 10000000 + (y) * 100000 + (z)))

◆ ASMJIT_CC_CLANG_GE

#define ASMJIT_CC_CLANG_GE (   x,
  y,
 
)    (ASMJIT_CC_CLANG >= ((x) * 10000000 + (y) * 100000 + (z)))

◆ ASMJIT_CC_CODEGEAR

#define ASMJIT_CC_CODEGEAR   0

◆ ASMJIT_CC_CODEGEAR_EQ

#define ASMJIT_CC_CODEGEAR_EQ (   x,
 
)    (ASMJIT_CC_CODEGEAR == (((x) << 8) + (y)))

◆ ASMJIT_CC_CODEGEAR_GE

#define ASMJIT_CC_CODEGEAR_GE (   x,
 
)    (ASMJIT_CC_CODEGEAR >= (((x) << 8) + (y)))

◆ ASMJIT_CC_CXX_VERSION

#define ASMJIT_CC_CXX_VERSION   __cplusplus

◆ ASMJIT_CC_GCC

#define ASMJIT_CC_GCC   0

◆ ASMJIT_CC_GCC_EQ

#define ASMJIT_CC_GCC_EQ (   x,
  y,
 
)    (ASMJIT_CC_GCC == ((x) * 10000000 + (y) * 100000 + (z)))

◆ ASMJIT_CC_GCC_GE

#define ASMJIT_CC_GCC_GE (   x,
  y,
 
)    (ASMJIT_CC_GCC >= ((x) * 10000000 + (y) * 100000 + (z)))

◆ ASMJIT_CC_HAS_ASSUME

#define ASMJIT_CC_HAS_ASSUME   (0)

◆ ASMJIT_CC_HAS_ASSUME_ALIGNED

#define ASMJIT_CC_HAS_ASSUME_ALIGNED   (0)

◆ ASMJIT_CC_HAS_ATTRIBUTE

#define ASMJIT_CC_HAS_ATTRIBUTE   (0)

◆ ASMJIT_CC_HAS_ATTRIBUTE_ALIGNED

#define ASMJIT_CC_HAS_ATTRIBUTE_ALIGNED   (0)

◆ ASMJIT_CC_HAS_ATTRIBUTE_ALWAYS_INLINE

#define ASMJIT_CC_HAS_ATTRIBUTE_ALWAYS_INLINE   (0)

◆ ASMJIT_CC_HAS_ATTRIBUTE_NOINLINE

#define ASMJIT_CC_HAS_ATTRIBUTE_NOINLINE   (0)

◆ ASMJIT_CC_HAS_ATTRIBUTE_NORETURN

#define ASMJIT_CC_HAS_ATTRIBUTE_NORETURN   (0)

◆ ASMJIT_CC_HAS_ATTRIBUTE_OPTIMIZE

#define ASMJIT_CC_HAS_ATTRIBUTE_OPTIMIZE   (0)

◆ ASMJIT_CC_HAS_BUILTIN_ASSUME

#define ASMJIT_CC_HAS_BUILTIN_ASSUME   (0)

◆ ASMJIT_CC_HAS_BUILTIN_ASSUME_ALIGNED

#define ASMJIT_CC_HAS_BUILTIN_ASSUME_ALIGNED   (0)

◆ ASMJIT_CC_HAS_BUILTIN_EXPECT

#define ASMJIT_CC_HAS_BUILTIN_EXPECT   (0)

◆ ASMJIT_CC_HAS_BUILTIN_UNREACHABLE

#define ASMJIT_CC_HAS_BUILTIN_UNREACHABLE   (0)

◆ ASMJIT_CC_HAS_DECLSPEC_ALIGN

#define ASMJIT_CC_HAS_DECLSPEC_ALIGN   (0)

◆ ASMJIT_CC_HAS_DECLSPEC_FORCEINLINE

#define ASMJIT_CC_HAS_DECLSPEC_FORCEINLINE   (0)

◆ ASMJIT_CC_HAS_DECLSPEC_NOINLINE

#define ASMJIT_CC_HAS_DECLSPEC_NOINLINE   (0)

◆ ASMJIT_CC_HAS_DECLSPEC_NORETURN

#define ASMJIT_CC_HAS_DECLSPEC_NORETURN   (0)

◆ ASMJIT_CC_INTEL

#define ASMJIT_CC_INTEL   0

◆ ASMJIT_CC_INTEL_COMPAT_MODE

#define ASMJIT_CC_INTEL_COMPAT_MODE   0

◆ ASMJIT_CC_INTEL_EQ

#define ASMJIT_CC_INTEL_EQ (   x,
 
)    (ASMJIT_CC_INTEL == (((x) * 100) + (y)))

◆ ASMJIT_CC_INTEL_GE

#define ASMJIT_CC_INTEL_GE (   x,
 
)    (ASMJIT_CC_INTEL >= (((x) * 100) + (y)))

◆ ASMJIT_CC_MINGW

#define ASMJIT_CC_MINGW   0

◆ ASMJIT_CC_MSC

#define ASMJIT_CC_MSC   0

◆ ASMJIT_CC_MSC_EQ

#define ASMJIT_CC_MSC_EQ (   x,
  y,
 
)    (ASMJIT_CC_MSC == ((x) * 10000000 + (y) * 100000 + (z)))

◆ ASMJIT_CC_MSC_GE

#define ASMJIT_CC_MSC_GE (   x,
  y,
 
)    (ASMJIT_CC_MSC >= ((x) * 10000000 + (y) * 100000 + (z)))

◆ ASMJIT_CDECL

#define ASMJIT_CDECL

◆ ASMJIT_DEBUG

#define ASMJIT_DEBUG

◆ ASMJIT_FALLTHROUGH

#define ASMJIT_FALLTHROUGH   (void)0

◆ ASMJIT_FASTCALL

#define ASMJIT_FASTCALL

◆ ASMJIT_INLINE

#define ASMJIT_INLINE   inline

◆ ASMJIT_LIKELY

#define ASMJIT_LIKELY (   exp)    (exp)

◆ ASMJIT_NOEXCEPT

#define ASMJIT_NOEXCEPT

◆ ASMJIT_NOINLINE

#define ASMJIT_NOINLINE

◆ ASMJIT_NOP

#define ASMJIT_NOP   ((void)0)

◆ ASMJIT_NORETURN

#define ASMJIT_NORETURN

◆ ASMJIT_OFFSET_OF

#define ASMJIT_OFFSET_OF (   x,
 
)    ((int)(intptr_t)((const char*)&((const x*)0x1)->y) - 1)

◆ ASMJIT_OS_ANDROID

#define ASMJIT_OS_ANDROID   (0)

◆ ASMJIT_OS_BSD

#define ASMJIT_OS_BSD
Value:
( \
ASMJIT_OS_FREEBSD || \
ASMJIT_OS_DRAGONFLYBSD || \
ASMJIT_OS_NETBSD || \
ASMJIT_OS_OPENBSD || \
ASMJIT_OS_MAC)

◆ ASMJIT_OS_CYGWIN

#define ASMJIT_OS_CYGWIN   (0)

◆ ASMJIT_OS_DRAGONFLYBSD

#define ASMJIT_OS_DRAGONFLYBSD   (0)

◆ ASMJIT_OS_FREEBSD

#define ASMJIT_OS_FREEBSD   (0)

◆ ASMJIT_OS_IOS

#define ASMJIT_OS_IOS   (0)

◆ ASMJIT_OS_LINUX

#define ASMJIT_OS_LINUX   (0)

◆ ASMJIT_OS_MAC

#define ASMJIT_OS_MAC   (0)

◆ ASMJIT_OS_NETBSD

#define ASMJIT_OS_NETBSD   (0)

◆ ASMJIT_OS_OPENBSD

#define ASMJIT_OS_OPENBSD   (0)

◆ ASMJIT_OS_POSIX

#define ASMJIT_OS_POSIX   (!ASMJIT_OS_WINDOWS)

◆ ASMJIT_OS_QNX

#define ASMJIT_OS_QNX   (0)

◆ ASMJIT_OS_SOLARIS

#define ASMJIT_OS_SOLARIS   (0)

◆ ASMJIT_OS_WINDOWS

#define ASMJIT_OS_WINDOWS   (0)

◆ ASMJIT_PACK32_4x8

#define ASMJIT_PACK32_4x8 (   A,
  B,
  C,
 
)    ((D) + ((C) << 8) + ((B) << 16) + ((A) << 24))

◆ ASMJIT_REGPARM

#define ASMJIT_REGPARM (   n)

◆ ASMJIT_STATIC

#define ASMJIT_STATIC

◆ ASMJIT_STDCALL

#define ASMJIT_STDCALL

◆ ASMJIT_UINT64_C

#define ASMJIT_UINT64_C (   x)    x##ull

◆ ASMJIT_UNLIKELY

#define ASMJIT_UNLIKELY (   exp)    (exp)

◆ ASMJIT_UNUSED

#define ASMJIT_UNUSED (   x)    (void)(x)

◆ ASMJIT_VARAPI

#define ASMJIT_VARAPI   extern ASMJIT_API

◆ ASMJIT_VERSION_MAJOR

#define ASMJIT_VERSION_MAJOR   1

◆ ASMJIT_VERSION_MINOR

#define ASMJIT_VERSION_MINOR   0

◆ ASMJIT_VERSION_PATCH

#define ASMJIT_VERSION_PATCH   0

◆ ASMJIT_VERSION_STRING

#define ASMJIT_VERSION_STRING   "1.0.0"

◆ ASMJIT_VIRTAPI

#define ASMJIT_VIRTAPI