Lines Matching refs:bits
68 int ret,j,bits,len;
79 bits=(int)a->flags&0x07;
88 if (j & 0x01) bits=0;
89 else if (j & 0x02) bits=1;
90 else if (j & 0x04) bits=2;
91 else if (j & 0x08) bits=3;
92 else if (j & 0x10) bits=4;
93 else if (j & 0x20) bits=5;
94 else if (j & 0x40) bits=6;
95 else if (j & 0x80) bits=7;
96 else bits=0; /* should not happen */
100 bits=0;
107 *(p++)=(unsigned char)bits;
111 if (len > 0) p[-1]&=(0xff<<bits);
145 if (len-- > 1) /* using one because of the bits left byte */