Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r63399 - sandbox/SOC/2010/bit_masks/boost/integer
From: bbartmanboost_at_[hidden]
Date: 2010-06-27 15:51:00


Author: bbartman
Date: 2010-06-27 15:50:54 EDT (Sun, 27 Jun 2010)
New Revision: 63399
URL: http://svn.boost.org/trac/boost/changeset/63399

Log:
added patch from Vicente
Text files modified:
   sandbox/SOC/2010/bit_masks/boost/integer/high_bits_mask.hpp | 2 ++
   sandbox/SOC/2010/bit_masks/boost/integer/integral_mask.hpp | 4 ++++
   sandbox/SOC/2010/bit_masks/boost/integer/low_bits_mask.hpp | 2 ++
   3 files changed, 8 insertions(+), 0 deletions(-)

Modified: sandbox/SOC/2010/bit_masks/boost/integer/high_bits_mask.hpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/boost/integer/high_bits_mask.hpp (original)
+++ sandbox/SOC/2010/bit_masks/boost/integer/high_bits_mask.hpp 2010-06-27 15:50:54 EDT (Sun, 27 Jun 2010)
@@ -25,6 +25,8 @@
 {
     typedef high_bits_mask<T,Width> type;
 
+ BOOST_STATIC_CONSTANT(unsigned int, offset = 0);
+
     BOOST_STATIC_CONSTANT(unsigned int, width = Width);
 };
 

Modified: sandbox/SOC/2010/bit_masks/boost/integer/integral_mask.hpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/boost/integer/integral_mask.hpp (original)
+++ sandbox/SOC/2010/bit_masks/boost/integer/integral_mask.hpp 2010-06-27 15:50:54 EDT (Sun, 27 Jun 2010)
@@ -33,6 +33,10 @@
 {
     typedef integral_mask<T,Value> type;
 
+ BOOST_STATIC_CONSTANT(unsigned int, offset = 0);
+
+ BOOST_STATIC_CONSTANT(unsigned int, width = 8*sizeof(T));
+
     operator T() const {
         return type::value;
     }

Modified: sandbox/SOC/2010/bit_masks/boost/integer/low_bits_mask.hpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/boost/integer/low_bits_mask.hpp (original)
+++ sandbox/SOC/2010/bit_masks/boost/integer/low_bits_mask.hpp 2010-06-27 15:50:54 EDT (Sun, 27 Jun 2010)
@@ -24,6 +24,8 @@
 {
     typedef low_bits_mask<T,Width> type;
 
+ BOOST_STATIC_CONSTANT(unsigned int, offset = (8*sizeof(T))-Width);
+
     BOOST_STATIC_CONSTANT(unsigned int, width = Width);
 };
 


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