My Project
Static Public Member Functions | List of all members
osl::misc::BitOp Struct Reference

#include <mask.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を返す.
 

Detailed Description

Definition at line 135 of file mask.h.

Member Function Documentation

◆ bsf()

template<class Integer >
static int osl::misc::BitOp::bsf ( Integer  mask)
inlinestatic

◆ bsr()

template<class Integer >
static int osl::misc::BitOp::bsr ( Integer  mask)
inlinestatic

Definition at line 143 of file mask.h.

Referenced by osl::misc::GeneralMask< Integer >::bsr().

◆ countBit()

template<class Integer >
static int osl::misc::BitOp::countBit ( Integer  mask)
inlinestatic

◆ hasMultipleBit()

template<class Integer >
static bool osl::misc::BitOp::hasMultipleBit ( Integer  mask)
inlinestatic

Definition at line 171 of file mask.h.

Referenced by osl::misc::GeneralMask< Integer >::hasMultipleBit().

◆ lowestBit()

template<class Integer >
static Integer osl::misc::BitOp::lowestBit ( Integer  mask)
inlinestatic

non-zeroのmaskのsetされているビットをLSBから探し,そのビットだけがsetされたmaskを返す.

Definition at line 179 of file mask.h.

Referenced by osl::misc::GeneralMask< Integer >::lowestBit().

◆ takeOneBit()

template<class Integer >
static int osl::misc::BitOp::takeOneBit ( Integer &  mask)
inlinestatic

The documentation for this struct was generated from the following file: