亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? id3lib_bitset

?? mp3
??
?? 第 1 頁 / 共 3 頁
字號:
/* * Copyright (c) 1998 * Silicon Graphics Computer Systems, Inc. * * Permission to use, copy, modify, distribute and sell this software * and its documentation for any purpose is hereby granted without fee, * provided that the above copyright notice appear in all copies and * that both that copyright notice and this permission notice appear * in supporting documentation.  Silicon Graphics makes no * representations about the suitability of this software for any * purpose.  It is provided "as is" without express or implied warranty. */#ifndef __SGI_STL_BITSET#define __SGI_STL_BITSET// This implementation of bitset<> has a second template parameter,// _WordT, which defaults to unsigned long.  *YOU SHOULD NOT USE// THIS FEATURE*.  It is experimental, and it may be removed in// future releases.// A bitset of size N, using words of type _WordT, will have// N % (sizeof(_WordT) * CHAR_BIT) unused bits.  (They are the high-// order bits in the highest word.)  It is a class invariant// of class bitset<> that those unused bits are always zero.// Most of the actual code isn't contained in bitset<> itself, but in the// base class _Base_bitset.  The base class works with whole words, not with// individual bits.  This allows us to specialize _Base_bitset for the// important special case where the bitset is only a single word.// The C++ standard does not define the precise semantics of operator[].// In this implementation the const version of operator[] is equivalent// to test(), except that it does no range checking.  The non-const version// returns a reference to a bit, again without doing any range checking.#include <stddef.h>     // for size_t#include <limits.h>     // for CHAR_BIT#include <string>#include <stdexcept>    // for invalid_argument, out_of_range, overflow_error#include <iostream.h>   // for istream, ostream#define __BITS_PER_WORDT(__wt) (CHAR_BIT*sizeof(__wt))#define __BITSET_WORDS(__n,__wt) \ ((__n) < 1 ? 1 : ((__n) + __BITS_PER_WORDT(__wt) - 1)/__BITS_PER_WORDT(__wt))__STL_BEGIN_NAMESPACE#if defined(__sgi) && !defined(__GNUC__) && (_MIPS_SIM != _MIPS_SIM_ABI32)#pragma set woff 1209#endif// structure to aid in counting bitstemplate<bool __dummy>struct _Bit_count {  static unsigned char _S_bit_count[256];};// Mapping from 8 bit unsigned integers to the index of the first one// bit:template<bool __dummy>struct _First_one {  static unsigned char _S_first_one[256];};//// Base class: general case.//template<size_t _Nw, class _WordT>struct _Base_bitset {  _WordT _M_w[_Nw];                // 0 is the least significant word.  _Base_bitset( void ) { _M_do_reset(); }  _Base_bitset(unsigned long __val);  static size_t _S_whichword( size_t __pos ) {    return __pos / __BITS_PER_WORDT(_WordT);  }  static size_t _S_whichbyte( size_t __pos ) {    return (__pos % __BITS_PER_WORDT(_WordT)) / CHAR_BIT;  }  static size_t _S_whichbit( size_t __pos ) {    return __pos % __BITS_PER_WORDT(_WordT);  }  static _WordT _S_maskbit( size_t __pos ) {    return (static_cast<_WordT>(1)) << _S_whichbit(__pos);  }  _WordT& _M_getword(size_t __pos)       { return _M_w[_S_whichword(__pos)]; }  _WordT  _M_getword(size_t __pos) const { return _M_w[_S_whichword(__pos)]; }  _WordT& _M_hiword()       { return _M_w[_Nw - 1]; }  _WordT  _M_hiword() const { return _M_w[_Nw - 1]; }  void _M_do_and(const _Base_bitset<_Nw,_WordT>& __x) {    for ( size_t __i = 0; __i < _Nw; __i++ ) {      _M_w[__i] &= __x._M_w[__i];    }  }  void _M_do_or(const _Base_bitset<_Nw,_WordT>& __x) {    for ( size_t __i = 0; __i < _Nw; __i++ ) {      _M_w[__i] |= __x._M_w[__i];    }  }  void _M_do_xor(const _Base_bitset<_Nw,_WordT>& __x) {    for ( size_t __i = 0; __i < _Nw; __i++ ) {      _M_w[__i] ^= __x._M_w[__i];    }  }  void _M_do_left_shift(size_t __shift);  void _M_do_right_shift(size_t __shift);  void _M_do_flip() {    for ( size_t __i = 0; __i < _Nw; __i++ ) {      _M_w[__i] = ~_M_w[__i];    }  }  void _M_do_set() {    for ( size_t __i = 0; __i < _Nw; __i++ ) {      _M_w[__i] = ~static_cast<_WordT>(0);    }  }  void _M_do_reset() {    for ( size_t __i = 0; __i < _Nw; __i++ ) {      _M_w[__i] = 0;    }  }  bool _M_is_equal(const _Base_bitset<_Nw,_WordT>& __x) const {    for (size_t __i = 0; __i < _Nw; ++__i) {      if (_M_w[__i] != __x._M_w[__i])        return false;    }    return true;  }  bool _M_is_any() const {    for ( size_t __i = 0; __i < __BITSET_WORDS(_Nw,_WordT); __i++ ) {      if ( _M_w[__i] != static_cast<_WordT>(0) )        return true;    }    return false;  }  size_t _M_do_count() const {    size_t __result = 0;    const unsigned char* __byte_ptr = (const unsigned char*)_M_w;    const unsigned char* __end_ptr = (const unsigned char*)(_M_w+_Nw);    while ( __byte_ptr < __end_ptr ) {      __result += _Bit_count<true>::_S_bit_count[*__byte_ptr];      __byte_ptr++;    }    return __result;  }  unsigned long _M_do_to_ulong() const;  // find first "on" bit  size_t _M_do_find_first(size_t __not_found) const;  // find the next "on" bit that follows "prev"  size_t _M_do_find_next(size_t __prev, size_t __not_found) const;};//// Definitions of non-inline functions from _Base_bitset.//template<size_t _Nw, class _WordT>_Base_bitset<_Nw, _WordT>::_Base_bitset(unsigned long __val){  _M_do_reset();  const size_t __n = min(sizeof(unsigned long)*CHAR_BIT,                         __BITS_PER_WORDT(_WordT)*_Nw);  for(size_t __i = 0; __i < __n; ++__i, __val >>= 1)    if ( __val & 0x1 )      _M_getword(__i) |= _S_maskbit(__i);}template<size_t _Nw, class _WordT>void _Base_bitset<_Nw, _WordT>::_M_do_left_shift(size_t __shift){  if (__shift != 0) {    const size_t __wshift = __shift / __BITS_PER_WORDT(_WordT);    const size_t __offset = __shift % __BITS_PER_WORDT(_WordT);    const size_t __sub_offset = __BITS_PER_WORDT(_WordT) - __offset;    size_t __n = _Nw - 1;    for ( ; __n > __wshift; --__n)      _M_w[__n] = (_M_w[__n - __wshift] << __offset) |                (_M_w[__n - __wshift - 1] >> __sub_offset);    if (__n == __wshift)      _M_w[__n] = _M_w[0] << __offset;    for (size_t __n1 = 0; __n1 < __n; ++__n1)      _M_w[__n1] = static_cast<_WordT>(0);  }}template<size_t _Nw, class _WordT>void _Base_bitset<_Nw, _WordT>::_M_do_right_shift(size_t __shift){  if (__shift != 0) {    const size_t __wshift = __shift / __BITS_PER_WORDT(_WordT);    const size_t __offset = __shift % __BITS_PER_WORDT(_WordT);    const size_t __sub_offset = __BITS_PER_WORDT(_WordT) - __offset;    const size_t __limit = _Nw - __wshift - 1;    size_t __n = 0;    for ( ; __n < __limit; ++__n)      _M_w[__n] = (_M_w[__n + __wshift] >> __offset) |                  (_M_w[__n + __wshift + 1] << __sub_offset);    _M_w[__limit] = _M_w[_Nw-1] >> __offset;    for (size_t __n1 = __limit + 1; __n1 < _Nw; ++__n1)      _M_w[__n1] = static_cast<_WordT>(0);  }}template<size_t _Nw, class _WordT>unsigned long _Base_bitset<_Nw, _WordT>::_M_do_to_ulong() const{  const overflow_error __overflow("bitset");  if (sizeof(_WordT) >= sizeof(unsigned long)) {    for (size_t __i = 1; __i < _Nw; ++__i)      if (_M_w[__i])        __STL_THROW(__overflow);    const _WordT __mask = static_cast<_WordT>(static_cast<unsigned long>(-1));    if (_M_w[0] & ~__mask)      __STL_THROW(__overflow);    return static_cast<unsigned long>(_M_w[0] & __mask);  }  else {                      // sizeof(_WordT) < sizeof(unsigned long).    const size_t __nwords =      (sizeof(unsigned long) + sizeof(_WordT) - 1) / sizeof(_WordT);    size_t __min_nwords = __nwords;    if (_Nw > __nwords) {      for (size_t __i = __nwords; __i < _Nw; ++__i)        if (_M_w[__i])          __STL_THROW(__overflow);    }    else      __min_nwords = _Nw;    // If unsigned long is 8 bytes and _WordT is 6 bytes, then an unsigned    // long consists of all of one word plus 2 bytes from another word.    const size_t __part = sizeof(unsigned long) % sizeof(_WordT);    if (__part != 0 && __nwords <= _Nw &&        (_M_w[__min_nwords - 1] >> ((sizeof(_WordT) - __part) * CHAR_BIT)) != 0)      __STL_THROW(__overflow);    unsigned long __result = 0;    for (size_t __i = 0; __i < __min_nwords; ++__i) {      __result |= static_cast<unsigned long>(         _M_w[__i]) << (__i * sizeof(_WordT) * CHAR_BIT);    }    return __result;  }} // End _M_do_to_ulongtemplate<size_t _Nw, class _WordT>size_t _Base_bitset<_Nw, _WordT>::_M_do_find_first(size_t __not_found) const{  for ( size_t __i = 0; __i < _Nw; __i++ ) {    _WordT __thisword = _M_w[__i];    if ( __thisword != static_cast<_WordT>(0) ) {      // find byte within word      for ( size_t __j = 0; __j < sizeof(_WordT); __j++ ) {        unsigned char __this_byte          = static_cast<unsigned char>(__thisword & (~(unsigned char)0));        if ( __this_byte )          return __i*__BITS_PER_WORDT(_WordT) + __j*CHAR_BIT +            _First_one<true>::_S_first_one[__this_byte];        __thisword >>= CHAR_BIT;      }    }  }  // not found, so return an indication of failure.  return __not_found;}template<size_t _Nw, class _WordT>size_t_Base_bitset<_Nw, _WordT>::_M_do_find_next(size_t __prev,                                           size_t __not_found) const{  // make bound inclusive  ++__prev;  // check out of bounds  if ( __prev >= _Nw * __BITS_PER_WORDT(_WordT) )    return __not_found;    // search first word  size_t __i = _S_whichword(__prev);  _WordT __thisword = _M_w[__i];    // mask off bits below bound  __thisword &= (~static_cast<_WordT>(0)) << _S_whichbit(__prev);  if ( __thisword != static_cast<_WordT>(0) ) {    // find byte within word    // get first byte into place    __thisword >>= _S_whichbyte(__prev) * CHAR_BIT;    for ( size_t __j = _S_whichbyte(__prev); __j < sizeof(_WordT); __j++ ) {      unsigned char __this_byte        = static_cast<unsigned char>(__thisword & (~(unsigned char)0));      if ( __this_byte )        return __i*__BITS_PER_WORDT(_WordT) + __j*CHAR_BIT +          _First_one<true>::_S_first_one[__this_byte];      __thisword >>= CHAR_BIT;    }  }  // check subsequent words  __i++;  for ( ; __i < _Nw; __i++ ) {    _WordT __thisword = _M_w[__i];    if ( __thisword != static_cast<_WordT>(0) ) {      // find byte within word      for ( size_t __j = 0; __j < sizeof(_WordT); __j++ ) {        unsigned char __this_byte          = static_cast<unsigned char>(__thisword & (~(unsigned char)0));        if ( __this_byte )          return __i*__BITS_PER_WORDT(_WordT) + __j*CHAR_BIT +            _First_one<true>::_S_first_one[__this_byte];        __thisword >>= CHAR_BIT;      }    }  }  // not found, so return an indication of failure.  return __not_found;} // end _M_do_find_next// ------------------------------------------------------------//// Base class: specialization for a single word.//

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本不卡免费在线视频| 韩国午夜理伦三级不卡影院| 亚洲精品视频一区二区| 亚洲欧美综合色| 中文字幕欧美一区| 中文字幕视频一区| 亚洲欧美日韩中文字幕一区二区三区| 中文av字幕一区| 亚洲色图欧美在线| 亚洲精品第一国产综合野| 亚洲影视在线观看| 五月婷婷综合网| 久久精品国产精品青草| 激情综合色丁香一区二区| 国产精品一二三四五| 国产成人av在线影院| 99re热视频精品| 色香色香欲天天天影视综合网| 欧美视频一区在线| 欧美大尺度电影在线| 欧美精品一区男女天堂| 中文字幕欧美区| 亚洲国产成人va在线观看天堂| 午夜免费久久看| 日本不卡1234视频| 国内精品第一页| 国产激情视频一区二区在线观看 | 欧美激情自拍偷拍| 国产精品免费丝袜| 亚洲欧美激情一区二区| 悠悠色在线精品| 五月婷婷综合激情| 久久99久久精品| 国产凹凸在线观看一区二区| bt7086福利一区国产| 色综合久久久久久久久| 欧美日韩一区三区| 欧美一级免费观看| 久久老女人爱爱| 国产精品久久久久久久久图文区| 国产精品久久久久aaaa| 一区二区三区欧美视频| 午夜在线电影亚洲一区| 一区二区三区不卡在线观看| 亚洲一区二区三区在线播放| 日韩高清一区在线| 久久er精品视频| 成人中文字幕电影| 欧美亚洲国产一区二区三区| 欧美一级国产精品| 欧美韩日一区二区三区| 有坂深雪av一区二区精品| 美女诱惑一区二区| av不卡一区二区三区| 欧美日韩一区在线观看| 久久综合中文字幕| 最新欧美精品一区二区三区| 天堂久久一区二区三区| 天天色综合天天| 国产成人精品aa毛片| 欧美日韩亚洲综合在线| 国产日韩欧美综合在线| 亚洲成人av一区| 国产成人自拍高清视频在线免费播放| 99久久精品费精品国产一区二区| 日韩一区二区电影| 亚洲欧洲av另类| 久久国产麻豆精品| 91免费视频观看| 2020国产精品久久精品美国| 亚洲综合一区二区| 丁香婷婷综合五月| 欧美久久一区二区| 国产精品理论在线观看| 美女一区二区视频| 色成人在线视频| 久久久影视传媒| 日韩成人一区二区三区在线观看| 不卡高清视频专区| 欧美精品一区二区三区在线| 亚洲私人黄色宅男| 日本大胆欧美人术艺术动态| 色天天综合色天天久久| 26uuu亚洲| 亚洲国产精品久久不卡毛片 | 日韩视频一区在线观看| 亚洲永久精品大片| 成人免费观看视频| 国产精品沙发午睡系列990531| 蜜臂av日日欢夜夜爽一区| 欧美日韩免费在线视频| 国产精品福利一区二区三区| 免费成人小视频| 日韩欧美色综合| 亚洲专区一二三| 欧美理论片在线| 美腿丝袜亚洲一区| 国产精品视频观看| 福利电影一区二区三区| 欧美一级二级三级蜜桃| 亚洲午夜一区二区| 制服丝袜日韩国产| 中文字幕综合网| 青青草成人在线观看| 欧美日韩一区国产| 天天综合网天天综合色| 国产欧美日韩在线看| 欧美偷拍一区二区| 精品理论电影在线观看| 丝袜国产日韩另类美女| 欧美三级电影一区| 午夜欧美在线一二页| 岛国一区二区在线观看| 欧美在线免费观看亚洲| 一区二区三区不卡视频| 成人免费毛片app| 久久综合狠狠综合久久综合88| 日韩精品乱码免费| 国产精品不卡在线| 欧美久久久久中文字幕| 成人一区二区三区在线观看| 日本一区二区在线不卡| 风流少妇一区二区| 自拍偷拍欧美激情| 欧美成人午夜电影| 久久综合色天天久久综合图片| 青娱乐精品视频在线| 国产一区二区三区香蕉| bt欧美亚洲午夜电影天堂| 夜夜亚洲天天久久| 国产精品99久久久久久久女警| 日韩一级高清毛片| 蜜桃一区二区三区在线| 精品国产青草久久久久福利| 国产在线观看一区二区| 国产色爱av资源综合区| 成人黄色综合网站| 亚洲女人****多毛耸耸8| 欧美午夜寂寞影院| 免费成人美女在线观看| 日韩精品一区二区在线| 国产成人免费视频网站高清观看视频 | 蜜臀av性久久久久蜜臀aⅴ | 欧美激情一区二区三区在线| 99久久婷婷国产综合精品电影| 樱花草国产18久久久久| 9191久久久久久久久久久| 久久国产福利国产秒拍| 国产精品看片你懂得| 欧美午夜精品久久久久久超碰| 蜜臀av性久久久久蜜臀av麻豆| 26uuu亚洲综合色| 99re视频精品| 日韩不卡在线观看日韩不卡视频| 欧美精品一区二区三| 99热精品国产| 日韩av中文在线观看| 中文幕一区二区三区久久蜜桃| 精品视频在线视频| 日本成人在线网站| 国产精品久久久久久久第一福利| 欧美日韩国产高清一区二区三区 | 欧美电影免费观看高清完整版在| 国产伦精品一区二区三区免费 | 亚洲成人www| 久久久久久久国产精品影院| 91蝌蚪porny| 久久av老司机精品网站导航| 国产精品护士白丝一区av| 91精品福利在线一区二区三区 | 亚洲国产欧美日韩另类综合| 欧美xxxxx裸体时装秀| 日本大香伊一区二区三区| 美女脱光内衣内裤视频久久网站| 国产精品久久三| 日韩久久久精品| 色婷婷亚洲综合| 国产精品996| 水野朝阳av一区二区三区| 国产精品久久久久久亚洲伦 | 亚洲精品精品亚洲| 欧美videossexotv100| 欧美综合一区二区| 国产成人精品综合在线观看| 日日摸夜夜添夜夜添精品视频| 国产精品色一区二区三区| 在线成人高清不卡| 91浏览器在线视频| 青青草精品视频| 成人欧美一区二区三区小说 | 亚洲午夜一二三区视频| 国产欧美日韩另类视频免费观看| 欧美嫩在线观看| 91视频免费观看| 国产成人99久久亚洲综合精品| 日本大胆欧美人术艺术动态| 亚洲一区二区三区视频在线播放 | 91精品国产品国语在线不卡| 欧美日韩一区二区不卡| 欧美性色黄大片手机版|