#include <bitOp.h>
Static Public Member Functions | |
template<class Integer > | |
static int | bsf (Integer mask) |
template<class Integer > | |
static int | bsr (Integer mask) |
template<class Integer > | |
static int | takeOneBit (Integer &mask) |
template<class Integer > | |
static int | countBit (Integer mask) |
template<class Integer > | |
static bool | hasMultipleBit (Integer mask) |
template<class Integer > | |
static Integer | lowestBit (Integer mask) |
non-zeroのmaskのsetされているビットをLSBから探し,そのビットだけがsetされたmaskを返す. |
static int osl::misc::BitOp::bsf | ( | Integer | mask | ) | [inline, static] |
Definition at line 137 of file bitOp.h.
Referenced by osl::move_probability::StateInfo::findCheckmateDefender(), osl::search::BreakThreatmate::generate(), osl::move_probability::AddEffectLong::match(), osl::move_probability::KingBlockade::match(), takeOneBit(), and osl::move_probability::StateInfo::updatePinnedGenerals().
static int osl::misc::BitOp::bsr | ( | Integer | mask | ) | [inline, static] |
static int osl::misc::BitOp::countBit | ( | Integer | mask | ) | [inline, static] |
Definition at line 159 of file bitOp.h.
References count.
Referenced by osl::PieceStand::atMostOneKind(), osl::checkmate::Dfpn::attack(), osl::checkmate::ProofNumberTable::countLiberty(), osl::checkmate::Dfpn::defense(), osl::checkmate::ProofNumberTable::disproofAfterAllCheck(), osl::threatmate::MlPredictor::predict(), osl::checkmate::ProofNumberTable::ProofNumberTable(), osl::checkmate::EdgeTable::resetEdgeFromLiberty(), and osl::checkmate::DfpnTable::List::testTable().
static bool osl::misc::BitOp::hasMultipleBit | ( | Integer | mask | ) | [inline, static] |
static Integer osl::misc::BitOp::lowestBit | ( | Integer | mask | ) | [inline, static] |
static int osl::misc::BitOp::takeOneBit | ( | Integer & | mask | ) | [inline, static] |
Definition at line 147 of file bitOp.h.
References bsf().
Referenced by osl::checkmate::detail::slowCheckDrop(), osl::effect_util::SendOffSquare::Table::Table(), osl::container::BoardMask::takeOneBit(), and osl::effect_util::SendOffSquare::unpack().