Lines Matching defs:bit
264 /* Check that a bit is set in a sequence array */
266 check_bit(seq_array_t sa, unsigned int bit)
268 if (bit >= NBITS)
271 return (sa->arr[bit/WBITS] & ((seq_word_t)1 << (bit % WBITS)) ? 1 : 0);
274 /* Set a bit in a sequence array */
276 set_bit(seq_array_t sa, unsigned int bit)
278 if (bit < NBITS)
279 sa->arr[bit/WBITS] |= ((seq_word_t)1 << (bit % WBITS));
282 /* Clear a bit in a sequence array */
287 * clear_bit(seq_array_t sa, unsigned int bit)
289 * if (bit < NBITS)
290 * sa->arr[bit/WBITS] &= ~((seq_word_t)1 << (bit % WBITS));
297 * The seqeunece arrays are logically arranged least significant bit to
298 * most significant bit, where the LSB represents that last sequence
307 * This bit corresponds to the last sequence number seen sa->seqno.
339 * shift this part of the bit array and "add in"
378 /* See if n is zero or that the high order bit is set or n = 0 */
409 /* So set the most recent bit */