Re: [Boost-bugs] [Boost C++ Libraries] #8048: Boost 1.53 + GCC 4.6.3 __int128 undefined.

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8048: Boost 1.53 + GCC 4.6.3 __int128 undefined.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-02-13 03:25:25


#8048: Boost 1.53 + GCC 4.6.3 __int128 undefined.
---------------------------------+------------------------------------------
  Reporter: wchan212@… | Owner:
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: None
   Version: Boost 1.53.0 | Severity: Showstopper
Resolution: | Keywords:
---------------------------------+------------------------------------------

Comment (by anonymous):

 {{{
 wchan_at_speech07:/tmp$ cat test.cc
 #include <iostream>

 namespace boost{
 # ifdef __GNUC__
    __extension__ typedef __int128 int128_type;
    __extension__ typedef unsigned __int128 uint128_type;
 # else
    typedef __int128 int128_type;
    typedef unsigned __int128 uint128_type;
 # endif
 };

 typedef __int128 Cint128_1;
 __extension__ typedef __int128 Cint128_2;

 int main(int argc, char* argv[]) {
 #ifdef __SIZEOF_INT128__
   std::cout << "__SIZEOF_INT128__ = " << __SIZEOF_INT128__ << std::endl;
   std::cout << "sizeof(Cint128_1) = " << sizeof(boost::int128_type) <<
 std::endl;
   std::cout << "sizeof(Cint128_2) = " << sizeof(boost::uint128_type) <<
 std::endl;
 #else
   std::cout << "Nope! no __SIZEOF_INT128__" << std::endl;
 #endif
 }

 wchan_at_speech07:/tmp$ g++ -o test.gcc test.cc && ./test.gcc
 __SIZEOF_INT128__ = 16
 sizeof(Cint128_1) = 16
 sizeof(Cint128_2) = 16
 wchan_at_speech07:/tmp$ nvcc -o test.nvcc test.cc && ./test.nvcc
 __SIZEOF_INT128__ = 16
 sizeof(Cint128_1) = 16
 sizeof(Cint128_2) = 16

 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8048#comment:7>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:12 UTC