]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/config/test/boost_has_int128.ipp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / config / test / boost_has_int128.ipp
1 // (C) Copyright John Maddock 2012.
2 // Use, modification and distribution are subject to the
3 // Boost Software License, Version 1.0. (See accompanying file
4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6 // See http://www.boost.org/libs/config for most recent version.
7
8 // MACRO: BOOST_HAS_INT128
9 // TITLE: __int128
10 // DESCRIPTION: The platform supports __int128.
11
12 #include <cstdlib>
13
14
15 namespace boost_has_int128{
16
17 int test()
18 {
19 #ifdef __GNUC__
20 __extension__ __int128 lli = 0;
21 __extension__ unsigned __int128 ulli = 0u;
22 #else
23 __int128 lli = 0;
24 unsigned __int128 ulli = 0u;
25 #endif
26 (void)&lli;
27 (void)&ulli;
28 return 0;
29 }
30
31 }
32
33
34
35
36