#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を返す. More... | |
|
inlinestatic |
Definition at line 137 of file bitOp.h.
Referenced by osl::misc::GeneralMask< Integer >::bsf(), 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().
|
inlinestatic |
Definition at line 142 of file bitOp.h.
Referenced by osl::misc::GeneralMask< Integer >::bsr().
|
inlinestatic |
Definition at line 159 of file bitOp.h.
References count.
Referenced by osl::PieceStand::atMostOneKind(), osl::checkmate::Dfpn::attack(), osl::misc::GeneralMask< Integer >::countBit(), 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().
|
inlinestatic |
Definition at line 170 of file bitOp.h.
Referenced by osl::misc::GeneralMask< Integer >::hasMultipleBit().
|
inlinestatic |
non-zeroのmaskのsetされているビットをLSBから探し,そのビットだけがsetされたmaskを返す.
Definition at line 178 of file bitOp.h.
Referenced by osl::misc::GeneralMask< Integer >::lowestBit().
|
inlinestatic |
Definition at line 147 of file bitOp.h.
References bsf().
Referenced by osl::checkmate::detail::slowCheckDrop(), osl::effect_util::SendOffSquare::Table::Table(), osl::misc::GeneralMask< Integer >::takeOneBit(), osl::container::BoardMask::takeOneBit(), osl::container::NearMask::takeOneBit(), and osl::effect_util::SendOffSquare::unpack().