Lines Matching refs:bitmask
82 * A rdbx_t consists of a xtd_seq_num_t and a bitmask. The index is highest
83 * sequence number that has been received, and the bitmask indicates
85 * highest bit in the bitmask corresponds to the index in the bitmask.
199 if (bitvector_alloc(&rdbx->bitmask, ws) != 0)
213 bitvector_dealloc(&rdbx->bitmask);
228 bitvector_set_to_zero(&rdbx->bitmask);
264 return bitvector_get_length(&rdbx->bitmask);
277 } else if ((int)(bitvector_get_length(&rdbx->bitmask) - 1) + delta < 0) {
278 /* if delta is lower than the bitmask, it's bad */
280 } else if (bitvector_get_bit(&rdbx->bitmask,
281 (int)(bitvector_get_length(&rdbx->bitmask) - 1) + delta) == 1) {
282 /* delta is within the window, so check the bitmask */
305 bitvector_left_shift(&rdbx->bitmask, delta);
306 bitvector_set_bit(&rdbx->bitmask, bitvector_get_length(&rdbx->bitmask) - 1);
308 /* delta is in window, so flip bit in bitmask */
309 bitvector_set_bit(&rdbx->bitmask, -delta);