Home
last modified time | relevance | path

Searched refs:last_mask (Results 1 – 1 of 1) sorted by relevance

/qemu/util/
H A Dbitmap.c459 unsigned long left_mask, right_mask, last_mask; in bitmap_copy_with_src_offset() local
485 last_mask = (1ul << nbits) - 1; in bitmap_copy_with_src_offset()
486 *dst |= (src[1] & last_mask) << (BITS_PER_LONG - shift); in bitmap_copy_with_src_offset()
488 last_mask = (1ul << nbits) - 1; in bitmap_copy_with_src_offset()
489 *dst = (*src >> shift) & last_mask; in bitmap_copy_with_src_offset()
501 unsigned long left_mask, right_mask, last_mask; in bitmap_copy_with_dst_offset() local
528 last_mask = ((1ul << nbits) - 1) << (BITS_PER_LONG - shift); in bitmap_copy_with_dst_offset()
529 dst[1] = (*src & last_mask) >> (BITS_PER_LONG - shift); in bitmap_copy_with_dst_offset()
531 last_mask = (1ul << nbits) - 1; in bitmap_copy_with_dst_offset()
532 *dst |= (*src & last_mask) << shift; in bitmap_copy_with_dst_offset()