|
static void | printBin (unsigned int uintValue) |
| Utitlity function to print out the binary representation of an input int or unsigned int value. More...
|
|
static void | printBin (int intValue) |
|
static void | printBinN (unsigned int uintValue, int nbits) |
|
static void | printBinN (int intValue, int nbits) |
|
static const std::string | printBits (const int value, const int startbit, const int endbit) |
| print selected bit range into string More...
|
|
static bool | isSet (const unsigned int *uintValue, int bit) |
| Check if a the given bit in the given unsigned int or int value is set. More...
|
|
static bool | isSet (const int *intValue, int bit) |
|
static void | setBit (unsigned int *uintValue, int bit) |
| Set the given bit in the given unsigned int or int value. More...
|
|
static void | setBit (int *intValue, int bit) |
|
static void | clearBit (unsigned int *uintValue, int bit) |
| Clear the given bit in the given integer. More...
|
|
static void | clearBit (int *intValue, int bit) |
|
static void | sImposeNBits (unsigned int *uintValue, int stbit, int wrd) |
| Superimpose the given integer wrd starting at bit stbit onto integer or unsigned interger value. More...
|
|
static void | sImposeNBits (int *intValue, int stbit, int wrd) |
|
static void | sImposeNBits (unsigned int *uintValue, int stbit, unsigned int wrd) |
|
static void | sImposeNBits (int *intValue, int stbit, unsigned int wrd) |
|
static unsigned int | alignBits (int value, int startbit, int endbit) |
| align given bits using start and end position into 32 bits More...
|
|
static unsigned int | createMask (int startbit, int endbit) |
| create a 32 bit long mask with 1s from given start to end position More...
|
|
static unsigned int | getValue (const unsigned int *uintValue, const unsigned int mask) |
| get the value in the input word represented by a bit pattern given as a bitmask More...
|
|
Utility class for integer bit operations.
This is a utility class for integer bit operations.
Operations that set or unset bits are done using
pointers and are inline, as they need to be fast.
The print methods are not time-critical.
- Author
- Thorsten Wengler
- Revision
- 187728
- Date
- 2009-05-27 18:18:06 +0200 (Wed, 27 May 2009)
Definition at line 24 of file BitOp.h.