Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r63832 - in sandbox/SOC/2010/bits_and_ints/boost/integer: . detail
From: muriloufg_at_[hidden]
Date: 2010-07-10 19:17:25


Author: murilov
Date: 2010-07-10 19:17:24 EDT (Sat, 10 Jul 2010)
New Revision: 63832
URL: http://svn.boost.org/trac/boost/changeset/63832

Log:
Lot of changes for working on MSVC compiler.
Text files modified:
   sandbox/SOC/2010/bits_and_ints/boost/integer/bit_reversal.hpp | 7 +++----
   sandbox/SOC/2010/bits_and_ints/boost/integer/bit_utils.hpp | 2 +-
   sandbox/SOC/2010/bits_and_ints/boost/integer/detail/pop_count.hpp | 4 ++--
   3 files changed, 6 insertions(+), 7 deletions(-)

Modified: sandbox/SOC/2010/bits_and_ints/boost/integer/bit_reversal.hpp
==============================================================================
--- sandbox/SOC/2010/bits_and_ints/boost/integer/bit_reversal.hpp (original)
+++ sandbox/SOC/2010/bits_and_ints/boost/integer/bit_reversal.hpp 2010-07-10 19:17:24 EDT (Sat, 10 Jul 2010)
@@ -25,8 +25,7 @@
  */
 
 template <typename T>
-inline typename enable_if_c<is_integral<T>::type::value
- && (sizeof(T) == 1 || sizeof(T) == 2 || sizeof(T) == 4 || sizeof(T) == 8), T>::type
+inline typename enable_if_c<is_integral<T>::type::value, T>::type
 bit_reversal(T data)
 {
         
@@ -35,8 +34,8 @@
                 {0x5555, 0x3333, 0x0F0F, 0xFFFF, 0xFFFF},
                 {0x55555555, 0x33333333, 0x0F0F0F0F, 0x00FF00FF, 0xFFFFFFFF},
 #ifndef BOOST_HAS_NO_INT64_T
- {0x5555555555555555LLU, 0x3333333333333333LLU, 0x0F0F0F0F0F0F0F0FLLU,
- 0x00FF00FF00FF00FFLLU, 0x0000FFFF0000FFFFLLU}
+ {0x5555555555555555ULL, 0x3333333333333333ULL, 0x0F0F0F0F0F0F0F0FULL,
+ 0x00FF00FF00FF00FFULL, 0x0000FFFF0000FFFFULL}
 #else
                 {0x0, 0x0, 0x0, 0x0, 0x0}
 #endif

Modified: sandbox/SOC/2010/bits_and_ints/boost/integer/bit_utils.hpp
==============================================================================
--- sandbox/SOC/2010/bits_and_ints/boost/integer/bit_utils.hpp (original)
+++ sandbox/SOC/2010/bits_and_ints/boost/integer/bit_utils.hpp 2010-07-10 19:17:24 EDT (Sat, 10 Jul 2010)
@@ -71,7 +71,7 @@
 {};
 
 template <typename IC, unsigned char pos>
-struct test_bit : mpl::bool_<((IC::value >> pos) & typename IC::value_type(1))>
+struct test_bit : mpl::bool_<((IC::value >> pos) & (typename IC::value_type)(1))>
 {};
 
 } // mpl

Modified: sandbox/SOC/2010/bits_and_ints/boost/integer/detail/pop_count.hpp
==============================================================================
--- sandbox/SOC/2010/bits_and_ints/boost/integer/detail/pop_count.hpp (original)
+++ sandbox/SOC/2010/bits_and_ints/boost/integer/detail/pop_count.hpp 2010-07-10 19:17:24 EDT (Sat, 10 Jul 2010)
@@ -16,8 +16,8 @@
 
 static const uintmax_t pop_count_mask[6] = {
 #ifndef BOOST_NO_INT64_T
- 0x5555555555555555LLU, 0x3333333333333333LLU, 0x0F0F0F0F0F0F0F0FLLU,
- 0x00FF00FF00FF00FFLLU, 0x0000FFFF0000FFFFLLU, 0x00000000FFFFFFFFLLU
+ 0x5555555555555555ULL, 0x3333333333333333ULL, 0x0F0F0F0F0F0F0F0FULL,
+ 0x00FF00FF00FF00FFULL, 0x0000FFFF0000FFFFULL, 0x00000000FFFFFFFFULL
 #else
         0x55555555, 0x33333333, 0x0F0F0F0F, 0x00FF00FF, 0x0000FFFF, 0x0
 #endif


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk