My Project
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()

◆ bsr()

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

Definition at line 143 of file mask.h.

◆ countBit()

◆ hasMultipleBit()

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

Definition at line 171 of file mask.h.

◆ lowestBit()

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

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

Definition at line 179 of file mask.h.

◆ takeOneBit()

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

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