Searched refs:num_bits (Results 1 – 1 of 1) sorted by relevance
54 static inline void bitmask_init(unsigned int *bitmask, int num_bits) in bitmask_init() argument56 memset(bitmask, 0, BITS_TO_WORDS(num_bits)*sizeof(unsigned int)); in bitmask_init()59 static inline int bitmask_ffz(unsigned int *bitmask, int num_bits) in bitmask_ffz() argument64 for (i = 0; i < BITS_TO_WORDS(num_bits); i++) { in bitmask_ffz()70 if (result >= num_bits) in bitmask_ffz()78 static inline int bitmask_weight(unsigned int *bitmask, int num_bits) in bitmask_weight() argument83 for (i = 0; i < BITS_TO_WORDS(num_bits); i++) in bitmask_weight()