Some places were checking for __amd64__ and __i386__ explicitly,
but MSVC doesn't define __amd64__ in 64-bit mode, so use the
define from config.h instead. Fixes incorrect asm generation
on 64-bit Windows
{
*a = op;
*c = init_ecx;
-#ifdef __i386__
+#if defined(HAVE_I386)
__asm__ (
" pushl %%ebx\n"
" cpuid\n"
" mov %%ebx, %%esi\n"
" popl %%ebx\n"
: "+a" (*a), "=S" (*b), "+c" (*c), "=d" (*d));
-#elif defined(__amd64__)
+#elif defined(HAVE_AMD64)
__asm__ (
" cpuid\n"
: "+a" (*a), "=b" (*b), "+c" (*c), "=d" (*d));
{
unsigned int flags = 0;
-#ifdef __amd64__
+#if defined (HAVE_AMD64)
flags |= ORC_TARGET_MMX_64BIT;
#endif
if (_orc_compiler_flag_debug) {
{
unsigned int flags = 0;
-#ifdef __amd64__
+#if defined(HAVE_AMD64)
flags |= ORC_TARGET_SSE_64BIT;
#endif
if (_orc_compiler_flag_debug) {