26#define __BITS_PER_WORD (CHAR_BIT * sizeof(unsigned long))
41 for (
size_t __n = _Nw - 1;
__n >= __wshift; --
__n)
42 _M_w[
__n] = _M_w[
__n - __wshift];
46 for (
size_t __n = _Nw - 1;
__n > __wshift; --
__n)
47 _M_w[
__n] = (_M_w[
__n - __wshift] << __offset) |
48 (_M_w[
__n - __wshift - 1] >> __sub_offset);
49 _M_w[__wshift] = _M_w[0] << __offset;
61 const size_t __limit = _Nw - __wshift - 1;
64 for (
size_t __n = 0;
__n <= __limit; ++
__n)
65 _M_w[
__n] = _M_w[
__n + __wshift];
69 for (
size_t __n = 0;
__n < __limit; ++
__n)
70 _M_w[
__n] = (_M_w[
__n + __wshift] >> __offset) |
71 (_M_w[
__n + __wshift + 1] << __sub_offset);
72 _M_w[__limit] = _M_w[_Nw-1] >> __offset;
81 for (
size_t __i = 1; __i < _Nw; ++__i)
89 for (
size_t __i = 0; __i < _Nw; __i++ ) {
90 _WordT __thisword = _M_w[__i];
93 for (
size_t __j = 0; __j <
sizeof(
_WordT); __j++ ) {
94 unsigned char __this_byte
95 =
__STATIC_CAST(
unsigned char,(__thisword & (~(
unsigned char)0)));
111 size_t __not_found)
const {
120 size_t __i = _S_whichword(__prev);
121 _WordT __thisword = _M_w[__i];
124 __thisword &= (~__STATIC_CAST(
_WordT,0)) << _S_whichbit(__prev);
129 __thisword >>= _S_whichbyte(__prev) *
CHAR_BIT;
130 for (
size_t __j = _S_whichbyte(__prev); __j <
sizeof(
_WordT); ++__j ) {
131 unsigned char __this_byte
132 =
__STATIC_CAST(
unsigned char,(__thisword & (~(
unsigned char)0)));
143 for ( ; __i < _Nw; ++__i ) {
144 __thisword = _M_w[__i];
147 for (
size_t __j = 0; __j <
sizeof(
_WordT); ++__j ) {
148 unsigned char __this_byte
149 =
__STATIC_CAST(
unsigned char,(__thisword & (~(
unsigned char)0)));
165#if !defined (_STLP_NON_TYPE_TMPL_PARAM_BUG)
167# if !defined (_STLP_USE_NO_IOSTREAMS)
171#ifndef _STLP_STRING_IO_H
177template <
class _CharT,
class _Traits,
size_t _Nb>
187 for (
size_t __i = 0; __i < _Nb; ++__i) {
188 static typename _Traits::int_type __eof = _Traits::eof();
190 typename _Traits::int_type __c1 = __buf->
sbumpc();
191 if (_Traits::eq_int_type(__c1, __eof)) {
196 typename _Traits::char_type __c2 = _Traits::to_char_type(__c1);
199 if (
__c ==
'0' ||
__c ==
'1')
201 else if (_Traits::eq_int_type(__buf->
sputbackc(__c2), __eof)) {
217template <
class _CharT,
class _Traits,
size_t _Nb>
223 return __os << __tmp;
232#undef __BITS_PER_WORD
_STLP_MOVE_TO_STD_NAMESPACE void fill(_ForwardIter __first, _ForwardIter __last, const _Tp &__val)
_STLP_MOVE_TO_STD_NAMESPACE _STLP_END_NAMESPACE _STLP_BEGIN_NAMESPACE basic_istream< _CharT, _Traits > &_STLP_CALL operator>>(basic_istream< _CharT, _Traits > &__is, bitset< _Nb > &__x)
basic_ostream< _CharT, _Traits > &_STLP_CALL operator<<(basic_ostream< _CharT, _Traits > &__os, const bitset< _Nb > &__x)
_STLP_THROW_FUNCT_SPEC _STLP_CALL __stl_throw_overflow_error(const char *__msg)
static unsigned char _S_first_one(unsigned char __x)
basic_streambuf< _CharT, _Traits > * rdbuf() const
void setstate(iostate __state)
char narrow(_CharT, char) const
int_type sputbackc(char_type __c)
void reserve(size_type=0)
void push_back(_CharT __c)
void _M_copy_from_string(const string &__s, size_t __pos, size_t __n)
void _M_copy_to_string(string &__s) const
#define _STLP_MOVE_TO_STD_NAMESPACE
#define __STATIC_CAST(__x, __y)
#define _STLP_BEGIN_NAMESPACE
#define _STLP_END_NAMESPACE
#define _STLP_MOVE_TO_PRIV_NAMESPACE
void _M_do_left_shift(size_t __shift)
size_t _M_do_find_next(size_t __prev, size_t __not_found) const
void _M_do_right_shift(size_t __shift)
unsigned long _M_do_to_ulong() const
size_t _M_do_find_first(size_t __not_found) const