Namespace for functions that produce 32‐ and 64‐bit bit masks.
Synopsis
Declared in <bdlb_bitmaskutil.h>
struct BitMaskUtil;
Description
This utility struct provides a namespace for a set of bit‐level, stateless functions that take one or two int arguments and return masks of the built‐in 32‐ and 64‐bit integer types uint32_t and uint64_t, respectively.
Enums
Name |
Description |
Number of bits in type |
Static Member Functions
Name |
Description |
Return a mask with only the bit at |
|
Return a mask with only the bit at |
|
Return a mask with all bits at or above |
|
Return a mask with all bits at or above |
|
Return a mask with all bits above |
|
Return a mask with all bits above |
|
Return a mask with all bits at or below |
|
Return a mask with all bits at or below |
|
Return the unsigned integral value having all bits at positions less than the specified |
|
Return a mask with all bits below |
|
Return a bitmask with the bit at |
|
Return a bitmask with the bit at |
|
Return a mask with |
|
Return a mask with |
|
Return the unsigned integral value having the specified |
|
Return a mask with |
Created with MrDocs