Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r63775 - in sandbox/SOC/2010/bits_and_ints/boost/integer: . detail
From: muriloufg_at_[hidden]
Date: 2010-07-09 01:04:16


Author: murilov
Date: 2010-07-09 01:04:11 EDT (Fri, 09 Jul 2010)
New Revision: 63775
URL: http://svn.boost.org/trac/boost/changeset/63775

Log:
Cosmetic changes:
- Added a blank line on each end of file
- Added the LLU suffix in all long long unsigned literals
Text files modified:
   sandbox/SOC/2010/bits_and_ints/boost/integer/bit_reversal.hpp | 8 ++++----
   sandbox/SOC/2010/bits_and_ints/boost/integer/bit_utils.hpp | 5 ++---
   sandbox/SOC/2010/bits_and_ints/boost/integer/bits_and_ints.hpp | 2 +-
   sandbox/SOC/2010/bits_and_ints/boost/integer/clear_least_bit_set.hpp | 2 +-
   sandbox/SOC/2010/bits_and_ints/boost/integer/count_trailing_zeros.hpp | 4 ++--
   sandbox/SOC/2010/bits_and_ints/boost/integer/detail/pop_count.hpp | 14 +++++++++-----
   sandbox/SOC/2010/bits_and_ints/boost/integer/detail/static_bit_reversal.hpp | 2 +-
   sandbox/SOC/2010/bits_and_ints/boost/integer/interleave.hpp | 9 +++++----
   sandbox/SOC/2010/bits_and_ints/boost/integer/pop_count.hpp | 2 +-
   sandbox/SOC/2010/bits_and_ints/boost/integer/safe_avg.hpp | 14 +++++++-------
   sandbox/SOC/2010/bits_and_ints/boost/integer/same_sign.hpp | 5 ++---
   sandbox/SOC/2010/bits_and_ints/boost/integer/sign.hpp | 5 ++---
   sandbox/SOC/2010/bits_and_ints/boost/integer/sign_extend.hpp | 3 +--
   sandbox/SOC/2010/bits_and_ints/boost/integer/static_abs.hpp | 5 ++---
   sandbox/SOC/2010/bits_and_ints/boost/integer/static_bit_reversal.hpp | 5 ++---
   sandbox/SOC/2010/bits_and_ints/boost/integer/static_gcd.hpp | 2 +-
   sandbox/SOC/2010/bits_and_ints/boost/integer/static_lcm.hpp | 2 +-
   sandbox/SOC/2010/bits_and_ints/boost/integer/static_same_sign.hpp | 2 +-
   sandbox/SOC/2010/bits_and_ints/boost/integer/static_sign.hpp | 2 +-
   sandbox/SOC/2010/bits_and_ints/boost/integer/static_sign_extend.hpp | 5 ++---
   sandbox/SOC/2010/bits_and_ints/boost/integer/swap.hpp | 13 ++++++-------
   21 files changed, 54 insertions(+), 57 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-09 01:04:11 EDT (Fri, 09 Jul 2010)
@@ -14,8 +14,7 @@
 #include <boost/type_traits/is_integral.hpp>
 #include <boost/cstdint.hpp>
 
-namespace boost
-{
+namespace boost {
         
 /*
  * Reverses the bits in data
@@ -36,7 +35,8 @@
                 {0x5555, 0x3333, 0x0F0F, 0xFFFF, 0xFFFF},
                 {0x55555555, 0x33333333, 0x0F0F0F0F, 0x00FF00FF, 0xFFFFFFFF},
 #ifndef BOOST_HAS_NO_INT64_T
- {0x5555555555555555, 0x3333333333333333, 0x0F0F0F0F0F0F0F0F, 0x00FF00FF00FF00FF, 0x0000FFFF0000FFFF}
+ {0x5555555555555555LLU, 0x3333333333333333LLU, 0x0F0F0F0F0F0F0F0FLLU,
+ 0x00FF00FF00FF00FFLLU, 0x0000FFFF0000FFFFLLU}
 #else
                 {0x0, 0x0, 0x0, 0x0, 0x0}
 #endif
@@ -64,4 +64,4 @@
 
 } // boost
 
-#endif
\ No newline at end of file
+#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-09 01:04:11 EDT (Fri, 09 Jul 2010)
@@ -16,8 +16,7 @@
 /*
  * Some utilities to handle integers.
  */
-namespace boost
-{
+namespace boost {
         
 template <typename T>
 inline T set_bit(T data, unsigned char pos)
@@ -98,4 +97,4 @@
         
 } // boost
 
-#endif
\ No newline at end of file
+#endif

Modified: sandbox/SOC/2010/bits_and_ints/boost/integer/bits_and_ints.hpp
==============================================================================
--- sandbox/SOC/2010/bits_and_ints/boost/integer/bits_and_ints.hpp (original)
+++ sandbox/SOC/2010/bits_and_ints/boost/integer/bits_and_ints.hpp 2010-07-09 01:04:11 EDT (Fri, 09 Jul 2010)
@@ -33,4 +33,4 @@
 #include <boost/integer/static_gcd.hpp>
 #include <boost/integer/static_lcm.hpp>
 
-#endif
\ No newline at end of file
+#endif

Modified: sandbox/SOC/2010/bits_and_ints/boost/integer/clear_least_bit_set.hpp
==============================================================================
--- sandbox/SOC/2010/bits_and_ints/boost/integer/clear_least_bit_set.hpp (original)
+++ sandbox/SOC/2010/bits_and_ints/boost/integer/clear_least_bit_set.hpp 2010-07-09 01:04:11 EDT (Fri, 09 Jul 2010)
@@ -29,4 +29,4 @@
         
 } //boost
 
-#endif
\ No newline at end of file
+#endif

Modified: sandbox/SOC/2010/bits_and_ints/boost/integer/count_trailing_zeros.hpp
==============================================================================
--- sandbox/SOC/2010/bits_and_ints/boost/integer/count_trailing_zeros.hpp (original)
+++ sandbox/SOC/2010/bits_and_ints/boost/integer/count_trailing_zeros.hpp 2010-07-09 01:04:11 EDT (Fri, 09 Jul 2010)
@@ -31,7 +31,7 @@
 {
         return pop_count(~value & (value - 1));
 } // count_trailing_zeros
-
+
 } // boost
 
-#endif
\ No newline at end of file
+#endif

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-09 01:04:11 EDT (Fri, 09 Jul 2010)
@@ -10,17 +10,21 @@
 #ifndef BOOST_DETAIL_POPCOUNT_INCLUDED
 #define BOOST_DETAIL_POPCOUNT_INCLUDED
 
-namespace boost { namespace integer_detail {
+namespace boost {
+
+namespace integer_detail {
 
 static const uintmax_t pop_count_mask[6] = {
 #ifndef BOOST_NO_INT64_T
- 0x5555555555555555, 0x3333333333333333, 0x0F0F0F0F0F0F0F0F,
- 0x00FF00FF00FF00FF, 0x0000FFFF0000FFFF, 0x00000000FFFFFFFF
+ 0x5555555555555555LLU, 0x3333333333333333LLU, 0x0F0F0F0F0F0F0F0FLLU,
+ 0x00FF00FF00FF00FFLLU, 0x0000FFFF0000FFFFLLU, 0x00000000FFFFFFFFLLU
 #else
         0x55555555, 0x33333333, 0x0F0F0F0F, 0x00FF00FF, 0x0000FFFF, 0x0
 #endif
 };
         
-} }
+}
+
+} // boost
 
-#endif
\ No newline at end of file
+#endif

Modified: sandbox/SOC/2010/bits_and_ints/boost/integer/detail/static_bit_reversal.hpp
==============================================================================
--- sandbox/SOC/2010/bits_and_ints/boost/integer/detail/static_bit_reversal.hpp (original)
+++ sandbox/SOC/2010/bits_and_ints/boost/integer/detail/static_bit_reversal.hpp 2010-07-09 01:04:11 EDT (Fri, 09 Jul 2010)
@@ -34,4 +34,4 @@
 } // integer_detail
 } // boost
 
-#endif
\ No newline at end of file
+#endif

Modified: sandbox/SOC/2010/bits_and_ints/boost/integer/interleave.hpp
==============================================================================
--- sandbox/SOC/2010/bits_and_ints/boost/integer/interleave.hpp (original)
+++ sandbox/SOC/2010/bits_and_ints/boost/integer/interleave.hpp 2010-07-09 01:04:11 EDT (Fri, 09 Jul 2010)
@@ -36,8 +36,7 @@
  * y.second == b == 10
  */
 
-namespace boost
-{
+namespace boost {
         
 /*
  * Interleave two unsigned integrals of 8, 16 or 32 bits and returns
@@ -54,7 +53,8 @@
                 {0x5555, 0x3333, 0x0F0F, 0xFFFF, 0xFFFF},
                 {0x55555555, 0x33333333, 0x0F0F0F0F, 0x00FF00FF, 0xFFFFFFFF},
 #ifndef BOOST_NO_INT64_T
- {0x5555555555555555, 0x3333333333333333, 0x0F0F0F0F0F0F0F0F, 0x00FF00FF00FF00FF, 0x0000FFFF0000FFF }
+ {0x5555555555555555LLU, 0x3333333333333333LLU, 0x0F0F0F0F0F0F0F0FLLU,
+ 0x00FF00FF00FF00FFLLU, 0x0000FFFF0000FFFLLU }
 #else
                 {0x0, 0x0, 0x0, 0x0, 0x0}
 #endif
@@ -128,4 +128,5 @@
 } // uninterleave
 
 } // boost
-#endif
\ No newline at end of file
+
+#endif

Modified: sandbox/SOC/2010/bits_and_ints/boost/integer/pop_count.hpp
==============================================================================
--- sandbox/SOC/2010/bits_and_ints/boost/integer/pop_count.hpp (original)
+++ sandbox/SOC/2010/bits_and_ints/boost/integer/pop_count.hpp 2010-07-09 01:04:11 EDT (Fri, 09 Jul 2010)
@@ -44,4 +44,4 @@
 
 } // boost
 
-#endif
\ No newline at end of file
+#endif

Modified: sandbox/SOC/2010/bits_and_ints/boost/integer/safe_avg.hpp
==============================================================================
--- sandbox/SOC/2010/bits_and_ints/boost/integer/safe_avg.hpp (original)
+++ sandbox/SOC/2010/bits_and_ints/boost/integer/safe_avg.hpp 2010-07-09 01:04:11 EDT (Fri, 09 Jul 2010)
@@ -7,20 +7,20 @@
 
 // See http://www.boost.org for updates, documentation, and revision history.
 
+#ifndef BOOST_SAFE_AVG_INCLUDED
+#define BOOST_SAFE_AVG_INCLUDED
+
+namespace boost {
+
 /*
  * Given two integer values x and y, the (floor of the) average normally
- * would be computed by (x+y)/2; unfortunately,
+ * would be computed by (x+y)/2 unfortunately,
  * this can yield incorrect results due to overflow.
  *
  * `safe_avg(x, y)' ensures that no overflow will happen even if (x+y)
  * overflows the range of T.
  */
 
-#ifndef BOOST_SAFE_AVG_INCLUDED
-#define BOOST_SAFE_AVG_INCLUDED
-
-namespace boost {
-
 template <typename T>
 inline T safe_avg(T x, T y)
 {
@@ -29,4 +29,4 @@
         
 } // boost
 
-#endif
\ No newline at end of file
+#endif

Modified: sandbox/SOC/2010/bits_and_ints/boost/integer/same_sign.hpp
==============================================================================
--- sandbox/SOC/2010/bits_and_ints/boost/integer/same_sign.hpp (original)
+++ sandbox/SOC/2010/bits_and_ints/boost/integer/same_sign.hpp 2010-07-09 01:04:11 EDT (Fri, 09 Jul 2010)
@@ -10,8 +10,7 @@
 #include <boost/type_traits/is_integral.hpp>
 #include <boost/utility/enable_if.hpp>
 
-namespace boost
-{
+namespace boost {
 
 /*
  * same_sign(first, second) returns:
@@ -33,4 +32,4 @@
         return !temp;
 }
         
-}
\ No newline at end of file
+}

Modified: sandbox/SOC/2010/bits_and_ints/boost/integer/sign.hpp
==============================================================================
--- sandbox/SOC/2010/bits_and_ints/boost/integer/sign.hpp (original)
+++ sandbox/SOC/2010/bits_and_ints/boost/integer/sign.hpp 2010-07-09 01:04:11 EDT (Fri, 09 Jul 2010)
@@ -15,8 +15,7 @@
 #include <iostream>
 #include <limits>
 
-namespace boost
-{
+namespace boost {
 
 /*
  * sign(data) returns:
@@ -59,4 +58,4 @@
         return int(!!data);
 }
 
-} // boost
\ No newline at end of file
+} // boost

Modified: sandbox/SOC/2010/bits_and_ints/boost/integer/sign_extend.hpp
==============================================================================
--- sandbox/SOC/2010/bits_and_ints/boost/integer/sign_extend.hpp (original)
+++ sandbox/SOC/2010/bits_and_ints/boost/integer/sign_extend.hpp 2010-07-09 01:04:11 EDT (Fri, 09 Jul 2010)
@@ -13,8 +13,7 @@
 #include <boost/type_traits/is_integral.hpp>
 #include <boost/utility/enable_if.hpp>
 
-namespace boost
-{
+namespace boost {
 
 // Extend data represented in `bits' bits to
 // sizeof(Type) * 8 bits

Modified: sandbox/SOC/2010/bits_and_ints/boost/integer/static_abs.hpp
==============================================================================
--- sandbox/SOC/2010/bits_and_ints/boost/integer/static_abs.hpp (original)
+++ sandbox/SOC/2010/bits_and_ints/boost/integer/static_abs.hpp 2010-07-09 01:04:11 EDT (Fri, 09 Jul 2010)
@@ -18,8 +18,7 @@
 #include <boost/type_traits/is_unsigned.hpp>
 #include <boost/type_traits/make_unsigned.hpp>
 
-namespace boost
-{
+namespace boost {
 
 /*
  * This header defines mpl::abs<> and static_abs<> metafunctions.
@@ -43,4 +42,4 @@
 
 } // boost
 
-#endif
\ No newline at end of file
+#endif

Modified: sandbox/SOC/2010/bits_and_ints/boost/integer/static_bit_reversal.hpp
==============================================================================
--- sandbox/SOC/2010/bits_and_ints/boost/integer/static_bit_reversal.hpp (original)
+++ sandbox/SOC/2010/bits_and_ints/boost/integer/static_bit_reversal.hpp 2010-07-09 01:04:11 EDT (Fri, 09 Jul 2010)
@@ -23,8 +23,7 @@
  * 11110000010101010000000000000000
  */
 
-namespace boost
-{
+namespace boost {
         
 namespace mpl {
 
@@ -50,4 +49,4 @@
 
 } // namespace boost
 
-#endif
\ No newline at end of file
+#endif

Modified: sandbox/SOC/2010/bits_and_ints/boost/integer/static_gcd.hpp
==============================================================================
--- sandbox/SOC/2010/bits_and_ints/boost/integer/static_gcd.hpp (original)
+++ sandbox/SOC/2010/bits_and_ints/boost/integer/static_gcd.hpp 2010-07-09 01:04:11 EDT (Fri, 09 Jul 2010)
@@ -47,4 +47,4 @@
 
 } // boost
 
-#endif
\ No newline at end of file
+#endif

Modified: sandbox/SOC/2010/bits_and_ints/boost/integer/static_lcm.hpp
==============================================================================
--- sandbox/SOC/2010/bits_and_ints/boost/integer/static_lcm.hpp (original)
+++ sandbox/SOC/2010/bits_and_ints/boost/integer/static_lcm.hpp 2010-07-09 01:04:11 EDT (Fri, 09 Jul 2010)
@@ -46,4 +46,4 @@
 
 } // boost
 
-#endif
\ No newline at end of file
+#endif

Modified: sandbox/SOC/2010/bits_and_ints/boost/integer/static_same_sign.hpp
==============================================================================
--- sandbox/SOC/2010/bits_and_ints/boost/integer/static_same_sign.hpp (original)
+++ sandbox/SOC/2010/bits_and_ints/boost/integer/static_same_sign.hpp 2010-07-09 01:04:11 EDT (Fri, 09 Jul 2010)
@@ -54,4 +54,4 @@
 
 }
 
-#endif
\ No newline at end of file
+#endif

Modified: sandbox/SOC/2010/bits_and_ints/boost/integer/static_sign.hpp
==============================================================================
--- sandbox/SOC/2010/bits_and_ints/boost/integer/static_sign.hpp (original)
+++ sandbox/SOC/2010/bits_and_ints/boost/integer/static_sign.hpp 2010-07-09 01:04:11 EDT (Fri, 09 Jul 2010)
@@ -52,4 +52,4 @@
 
 } // boost
 
-#endif
\ No newline at end of file
+#endif

Modified: sandbox/SOC/2010/bits_and_ints/boost/integer/static_sign_extend.hpp
==============================================================================
--- sandbox/SOC/2010/bits_and_ints/boost/integer/static_sign_extend.hpp (original)
+++ sandbox/SOC/2010/bits_and_ints/boost/integer/static_sign_extend.hpp 2010-07-09 01:04:11 EDT (Fri, 09 Jul 2010)
@@ -30,8 +30,7 @@
  * Wich is -6 in 32-bit 2-complement.
  */
 
-namespace boost
-{
+namespace boost {
         
 namespace mpl {
 
@@ -58,4 +57,4 @@
 
 } // boost
 
-#endif
\ No newline at end of file
+#endif

Modified: sandbox/SOC/2010/bits_and_ints/boost/integer/swap.hpp
==============================================================================
--- sandbox/SOC/2010/bits_and_ints/boost/integer/swap.hpp (original)
+++ sandbox/SOC/2010/bits_and_ints/boost/integer/swap.hpp 2010-07-09 01:04:11 EDT (Fri, 09 Jul 2010)
@@ -7,15 +7,14 @@
 
 // See http://www.boost.org for updates, documentation, and revision history.
 
-/*
- * This function swaps the values of x and y without a temporary variable.
- */
-
 #ifndef BOOST_SWAP_INCLUDED
 #define BOOST_SWAP_INCLUDED
 
-namespace boost
-{
+namespace boost {
+
+/*
+ * This function swaps the values of x and y without a temporary variable.
+ */
 
 template <typename T>
 inline void swap(T& x, T& y)
@@ -27,4 +26,4 @@
         
 } // boost
 
-#endif
\ No newline at end of file
+#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