Name

__bitmap_shift_right — logical right shift of the bits in a bitmap

Synopsis

void __bitmap_shift_right (unsigned long * dst,
 const unsigned long * src,
 unsigned shift,
 unsigned nbits);
 

Arguments

unsigned long * dst

destination bitmap

const unsigned long * src

source bitmap

unsigned shift

shift by this many bits

unsigned nbits

bitmap size, in bits

Description

Shifting right (dividing) means moving bits in the MS -> LS bit direction. Zeros are fed into the vacated MS positions and the LS bits shifted off the bottom are lost.