Lines Matching refs:mask

51 int find_lowest_bit( uint32 mask ) {
53 if( (mask & 0xffff) == 0 ) {
54 mask >>= 16;
57 if( (mask & 0xff) == 0 ) {
58 mask >>= 8;
61 if( (mask & 0xf) == 0 ) {
62 mask >>= 4;
65 if( (mask & 0x3) == 0 ) {
66 mask >>= 2;
69 if( (mask & 0x1) == 0 ) {
70 mask >>= 1;
73 if( mask == 0 ) {
80 int find_hihghest_bit( uint32 mask ) {
82 if( mask > 0xffff ) {
83 mask >>= 16;
86 if( mask > 0xff ) {
87 mask >>= 8;
90 if( mask > 0xf ) {
91 mask >>= 4;
94 if( mask > 0x3 ) {
95 mask >>= 2;
98 if( mask > 0x1 ) {
99 mask >>= 1;
102 if( mask == 0 ) {
156 // Find the lowest-numbered register pair in the mask. Return the
196 // Assert that the register mask contains only bit pairs.
203 bits -= bit; // Remove bit from mask
213 // Return TRUE if the mask contains a single bit
220 bit = _A[i] & -_A[i]; // Extract 1 bit from mask
224 // True for both the empty mask and for a single bit
229 // Return TRUE if the mask contains an adjacent pair of bits and no other bits.
237 bit = _A[i] & -(_A[i]); // Extract 1 bit from mask
249 // True for both the empty mask and for a bit pair
255 // Find the lowest-numbered register set in the mask. Return the
327 // Assert that the register mask contains only bit sets.
346 // Return TRUE if the mask contains one adjacent set of bits and no other bits.
356 bit = _A[i] & -_A[i]; // Extract low bit from mask
375 // True for both the empty mask and for a bit set
393 // Compute size of register mask in bits
413 if (OptoReg::is_valid(start)) { // Check for empty mask
414 rm.Remove(start); // Yank from mask
424 break; // Empty mask, end loop
425 rm.Remove(reg); // Yank from mask