Return a mask with only the bit at index set.
Synopsis
Declared in <bdlb_bitmaskutil.h>
static
uint64_t
eq64(int index);
Description
Return the unsigned integral value having the bit at the specified index position set to 1, and all other bits set to 0. The behavior is undefined unless 0 <= index <= # of bits in result.
Return Value
mask with only the bit at index set
Parameters
Name |
Description |
index |
bit position to set |
Created with MrDocs