「spaghetti」の編集履歴(バックアップ)一覧はこちら
「spaghetti」(2010/08/31 (火) 15:13:23) の最新版変更点
追加された行は緑色になります。
削除された行は赤色になります。
* spaghetti モジュール
+ bitset.h
** bitset.h
bitset は整数型をビットの並びとして取り扱います。
*** 型エイリアス
typedef unsigned int bitset_t;
* spaghetti モジュール
+ bitset.h
** bitset.h
bitset は整数型をビットの並びとして取り扱います。
*** 型エイリアス
typedef unsigned int bitset_t;
self に other_bitset が含まれていたら真を返します。
bool bitset_is_include(bitset_t self, bitset_t other_bitset)
{
return (self & other_bitset) == other_bitset;
}
指定されたビットセットを反転したものを返します。
bitset_t bitset_inversion(bitset_t self)
{
return self ^ ~0;
}