Fix clang 3.4-3.5 64bit build (boost.atomic problem, see https://svn.boost.org/trac...
[libcds.git] / cds / compiler / backoff.h
1 //$$CDS-header$$
2
3 #ifndef __CDS_COMPILER_BACKOFF_IMPL_H
4 #define __CDS_COMPILER_BACKOFF_IMPL_H
5
6 #if CDS_COMPILER == CDS_COMPILER_MSVC || (CDS_COMPILER == CDS_COMPILER_INTEL && CDS_OS_INTERFACE == CDS_OSI_WINDOWS)
7 #   if CDS_PROCESSOR_ARCH == CDS_PROCESSOR_X86
8 #       include <cds/compiler/vc/x86/backoff.h>
9 #   elif CDS_PROCESSOR_ARCH == CDS_PROCESSOR_AMD64
10 #       include <cds/compiler/vc/amd64/backoff.h>
11 #   else
12 #       error "MS VC++ compiler: unsupported processor architecture"
13 #   endif
14 #elif CDS_COMPILER == CDS_COMPILER_GCC || CDS_COMPILER == CDS_COMPILER_CLANG || CDS_COMPILER == CDS_COMPILER_INTEL
15 #   if CDS_PROCESSOR_ARCH == CDS_PROCESSOR_X86
16 #       include <cds/compiler/gcc/x86/backoff.h>
17 #   elif CDS_PROCESSOR_ARCH == CDS_PROCESSOR_AMD64
18 #       include <cds/compiler/gcc/amd64/backoff.h>
19 #   elif CDS_PROCESSOR_ARCH == CDS_PROCESSOR_IA64
20 #       include <cds/compiler/gcc/ia64/backoff.h>
21 #   elif CDS_PROCESSOR_ARCH == CDS_PROCESSOR_SPARC
22 #       include <cds/compiler/gcc/sparc/backoff.h>
23 #   elif CDS_PROCESSOR_ARCH == CDS_PROCESSOR_PPC64
24 #       include <cds/compiler/gcc/ppc64/backoff.h>
25 //#   elif CDS_PROCESSOR_ARCH == CDS_PROCESSOR_ARM7
26 //#       include <cds/compiler/gcc/arm7/backoff.h>
27 #   endif
28 #else
29 #   error "Undefined compiler"
30 #endif
31
32 #endif  // #ifndef __CDS_COMPILER_BACKOFF_IMPL_H