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