MCPcopy Create free account
hub / github.com/catboost/catboost / InverseMaskLowerBits

Function InverseMaskLowerBits

util/generic/bitops.h:260–262  ·  view source on GitHub ↗

* Return 64-bit mask with all bits set except for `bits` lower bits. */

Source from the content-addressed store, hash-verified

258 * Return 64-bit mask with all bits set except for `bits` lower bits.
259 */
260Y_FORCE_INLINE ui64 InverseMaskLowerBits(ui64 bits) {
261 return ::NBitOps::NPrivate::INVERSE_WORD_MASK[bits];
262}
263
264/*
265 * Return 64-bit mask with all bits set except for `bits` bitst starting from `skipbits`.

Callers 2

ReverseBitsFunction · 0.85
Y_UNIT_TESTFunction · 0.85

Calls 1

MaskLowerBitsFunction · 0.85

Tested by

no test coverage detected