File: platform.hpp

package info (click to toggle)
supercollider 1%3A3.6.6~repack-2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 23,792 kB
  • ctags: 25,269
  • sloc: cpp: 177,129; lisp: 63,421; ansic: 11,297; python: 1,787; perl: 766; yacc: 311; sh: 286; lex: 181; ruby: 173; makefile: 168; xml: 13
file content (53 lines) | stat: -rw-r--r-- 1,753 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//  Copyright (c) 2009 Helge Bahmann
//
//  Distributed under the Boost Software License, Version 1.0.
//  See accompanying file LICENSE_1_0.txt or copy at
//  http://www.boost.org/LICENSE_1_0.txt)

// Platform selection file

#include <boost/config.hpp>

#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))

    #include <boost/atomic/detail/gcc-x86.hpp>

#elif 0 && defined(__GNUC__) && defined(__alpha__) /* currently does not work correctly */

    #include <boost/atomic/detail/base.hpp>
    #include <boost/atomic/detail/gcc-alpha.hpp>

#elif defined(__GNUC__) && (defined(__POWERPC__) || defined(__PPC__))

    #include <boost/atomic/detail/gcc-ppc.hpp>

// This list of ARM architecture versions comes from Apple's arm/arch.h header.
// I don't know how complete it is.
#elif defined(__GNUC__) && (defined(__ARM_ARCH_6__)  || defined(__ARM_ARCH_6J__) \
                         || defined(__ARM_ARCH_6Z__) || defined(__ARM_ARCH_6ZK__) \
                         || defined(__ARM_ARCH_6K__) || defined(__ARM_ARCH_7A__))

    #include <boost/atomic/detail/gcc-armv6+.hpp>

#elif defined(__linux__) && defined(__arm__)

    #include <boost/atomic/detail/linux-arm.hpp>

#elif defined(__GNUC__) && defined(__sparc_v9__)

    #include <boost/atomic/detail/gcc-sparcv9.hpp>

#elif defined(BOOST_USE_WINDOWS_H) || defined(_WIN32_CE) || defined(BOOST_MSVC) || defined(BOOST_INTEL_WIN) || defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)

    #include <boost/atomic/detail/interlocked.hpp>

#elif 0 && defined(__GNUC__) /* currently does not work correctly */

    #include <boost/atomic/detail/base.hpp>
    #include <boost/atomic/detail/gcc-cas.hpp>

#else

#include <boost/atomic/detail/base.hpp>

#endif