From 639bb7dc5d61054615fee8e4da272ad5ce9140ee Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 2 Dec 2011 20:38:31 +0000 Subject: use compiler-generated _LP64 macro to detect x86_64 rather than USE_X86_64_ASM git-svn-id: svn://localhost/ardour2/branches/3.0@10871 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/pbd/fpu.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libs/pbd') diff --git a/libs/pbd/fpu.cc b/libs/pbd/fpu.cc index a004d8a839..1018414d9b 100644 --- a/libs/pbd/fpu.cc +++ b/libs/pbd/fpu.cc @@ -19,12 +19,12 @@ FPU::FPU () _flags = Flags (0); -#ifndef ARCH_X86 +#if !( (defined __x86_64__) || (defined __i386__) ) // !ARCH_X86 return; -#endif +#else -#ifndef USE_X86_64_ASM +#ifndef _LP64 //USE_X86_64_ASM asm volatile ( "mov $1, %%eax\n" "pushl %%ebx\n" @@ -102,6 +102,7 @@ FPU::FPU () free (fxbuf); } } +#endif } FPU::~FPU () -- cgit v1.2.3