aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Carlini <paolo.carlini@oracle.com>2011-09-02 13:49:10 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2011-09-02 13:49:10 +0000
commit6aa67e7b9925ea6373f186cae8e7c1461ea54ee3 (patch)
tree4c679606b85379c55fe2c91b1b1f18556030500b
parent781a318d0d6c7908bb43df29bb1e706489b94863 (diff)
downloadgcc-6aa67e7b9925ea6373f186cae8e7c1461ea54ee3.zip
gcc-6aa67e7b9925ea6373f186cae8e7c1461ea54ee3.tar.gz
gcc-6aa67e7b9925ea6373f186cae8e7c1461ea54ee3.tar.bz2
bitset: Trivial formatting fixes.
2011-09-02 Paolo Carlini <paolo.carlini@oracle.com> * include/std/bitset: Trivial formatting fixes. From-SVN: r178478
-rw-r--r--libstdc++-v3/ChangeLog4
-rw-r--r--libstdc++-v3/include/std/bitset32
2 files changed, 20 insertions, 16 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index cb8361a..d655cc4 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,4 +1,8 @@
2011-09-02 Paolo Carlini <paolo.carlini@oracle.com>
+
+ * include/std/bitset: Trivial formatting fixes.
+
+2011-09-02 Paolo Carlini <paolo.carlini@oracle.com>
Marc Glisse <marc.glisse@normalesup.org>
* include/std/bitset (_Base_bitset<>::_M_are_all_aux): Remove.
diff --git a/libstdc++-v3/include/std/bitset b/libstdc++-v3/include/std/bitset
index f771bfc..813ed4b 100644
--- a/libstdc++-v3/include/std/bitset
+++ b/libstdc++-v3/include/std/bitset
@@ -94,19 +94,19 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
#endif
static _GLIBCXX_CONSTEXPR size_t
- _S_whichword(size_t __pos ) _GLIBCXX_NOEXCEPT
+ _S_whichword(size_t __pos) _GLIBCXX_NOEXCEPT
{ return __pos / _GLIBCXX_BITSET_BITS_PER_WORD; }
static _GLIBCXX_CONSTEXPR size_t
- _S_whichbyte(size_t __pos ) _GLIBCXX_NOEXCEPT
+ _S_whichbyte(size_t __pos) _GLIBCXX_NOEXCEPT
{ return (__pos % _GLIBCXX_BITSET_BITS_PER_WORD) / __CHAR_BIT__; }
static _GLIBCXX_CONSTEXPR size_t
- _S_whichbit(size_t __pos ) _GLIBCXX_NOEXCEPT
+ _S_whichbit(size_t __pos) _GLIBCXX_NOEXCEPT
{ return __pos % _GLIBCXX_BITSET_BITS_PER_WORD; }
static _GLIBCXX_CONSTEXPR _WordT
- _S_maskbit(size_t __pos ) _GLIBCXX_NOEXCEPT
+ _S_maskbit(size_t __pos) _GLIBCXX_NOEXCEPT
{ return (static_cast<_WordT>(1)) << _S_whichbit(__pos); }
_WordT&
@@ -389,19 +389,19 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
{ }
static _GLIBCXX_CONSTEXPR size_t
- _S_whichword(size_t __pos ) _GLIBCXX_NOEXCEPT
+ _S_whichword(size_t __pos) _GLIBCXX_NOEXCEPT
{ return __pos / _GLIBCXX_BITSET_BITS_PER_WORD; }
static _GLIBCXX_CONSTEXPR size_t
- _S_whichbyte(size_t __pos ) _GLIBCXX_NOEXCEPT
+ _S_whichbyte(size_t __pos) _GLIBCXX_NOEXCEPT
{ return (__pos % _GLIBCXX_BITSET_BITS_PER_WORD) / __CHAR_BIT__; }
static _GLIBCXX_CONSTEXPR size_t
- _S_whichbit(size_t __pos ) _GLIBCXX_NOEXCEPT
+ _S_whichbit(size_t __pos) _GLIBCXX_NOEXCEPT
{ return __pos % _GLIBCXX_BITSET_BITS_PER_WORD; }
static _GLIBCXX_CONSTEXPR _WordT
- _S_maskbit(size_t __pos ) _GLIBCXX_NOEXCEPT
+ _S_maskbit(size_t __pos) _GLIBCXX_NOEXCEPT
{ return (static_cast<_WordT>(1)) << _S_whichbit(__pos); }
_WordT&
@@ -533,19 +533,19 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
{ }
static _GLIBCXX_CONSTEXPR size_t
- _S_whichword(size_t __pos ) _GLIBCXX_NOEXCEPT
+ _S_whichword(size_t __pos) _GLIBCXX_NOEXCEPT
{ return __pos / _GLIBCXX_BITSET_BITS_PER_WORD; }
static _GLIBCXX_CONSTEXPR size_t
- _S_whichbyte(size_t __pos ) _GLIBCXX_NOEXCEPT
+ _S_whichbyte(size_t __pos) _GLIBCXX_NOEXCEPT
{ return (__pos % _GLIBCXX_BITSET_BITS_PER_WORD) / __CHAR_BIT__; }
static _GLIBCXX_CONSTEXPR size_t
- _S_whichbit(size_t __pos ) _GLIBCXX_NOEXCEPT
+ _S_whichbit(size_t __pos) _GLIBCXX_NOEXCEPT
{ return __pos % _GLIBCXX_BITSET_BITS_PER_WORD; }
static _GLIBCXX_CONSTEXPR _WordT
- _S_maskbit(size_t __pos ) _GLIBCXX_NOEXCEPT
+ _S_maskbit(size_t __pos) _GLIBCXX_NOEXCEPT
{ return (static_cast<_WordT>(1)) << _S_whichbit(__pos); }
// This would normally give access to the data. The bounds-checking
@@ -650,17 +650,17 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
{
typedef unsigned long _WordT;
- static void
+ static void
_S_do_sanitize(_WordT& __val) _GLIBCXX_NOEXCEPT
{ __val &= ~((~static_cast<_WordT>(0)) << _Extrabits); }
};
template<>
struct _Sanitize<0>
- {
+ {
typedef unsigned long _WordT;
- static void
+ static void
_S_do_sanitize(_WordT) _GLIBCXX_NOEXCEPT { }
};
@@ -1364,7 +1364,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
* @sa _Find_first
*/
size_t
- _Find_next(size_t __prev ) const _GLIBCXX_NOEXCEPT
+ _Find_next(size_t __prev) const _GLIBCXX_NOEXCEPT
{ return this->_M_do_find_next(__prev, _Nb); }
};