diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-12-02 20:38:31 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-12-02 20:38:31 +0000 |
commit | 639bb7dc5d61054615fee8e4da272ad5ce9140ee (patch) | |
tree | 1636527d2f0c2482e8f1c53d32cbddfda23294a8 /libs/pbd/fpu.cc | |
parent | 14d601a0ffe1ceb452aba103eb35ce03320acd21 (diff) |
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
Diffstat (limited to 'libs/pbd/fpu.cc')
-rw-r--r-- | libs/pbd/fpu.cc | 7 |
1 files changed, 4 insertions, 3 deletions
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 () |