Lines Matching refs:size
27 * \brief Bitset of arbitrary size definitions.
55 #define BITSET_SIZE(x) (8 * sizeof(x)) // bitset size in bits
212 const unsigned size = end - start + 1;
215 if (start_mod + size <= BITSET_WORDBITS) {
231 const unsigned size = end - start + 1;
234 if (start_mod + size <= BITSET_WORDBITS) {
250 const unsigned size = end - start + 1;
253 if (start_mod + size <= BITSET_WORDBITS) {
282 /* Count set bits in the bitset (compute the size/cardinality of the bitset).
327 #define BITSET_LAST_BIT_SIZED(x, size) __bitset_last_bit(x, size)
331 const BITSET_WORD *set, unsigned size)
346 if (word >= BITSET_WORDS(size))
347 return size;
375 unsigned size)
382 if (word >= BITSET_WORDS(size)) {
383 *start = *end = size;
389 if (word >= BITSET_WORDS(size)) {
390 *start = *end = size;
403 if (word >= BITSET_WORDS(size)) {
404 *end = size;
410 if (word >= BITSET_WORDS(size)) {
411 *end = size;
417 /* Cap "end" at "size" in case there are extra bits past "size" set in the
419 * "start" goes past "size".
421 *end = MIN2(word * BITSET_WORDBITS + ffs(~tmp) - 1, size);
442 * Simple C++ wrapper of a bitset type of static size, with value semantics