Home | History | Annotate | Download | only in asn1

Lines Matching full:bits

70 	int ret,j,bits,len;
81 bits=(int)a->flags&0x07;
90 if (j & 0x01) bits=0;
91 else if (j & 0x02) bits=1;
92 else if (j & 0x04) bits=2;
93 else if (j & 0x08) bits=3;
94 else if (j & 0x10) bits=4;
95 else if (j & 0x20) bits=5;
96 else if (j & 0x40) bits=6;
97 else if (j & 0x80) bits=7;
98 else bits=0; /* should not happen */
102 bits=0;
109 *(p++)=(unsigned char)bits;
113 if (len > 0) p[-1]&=(0xff<<bits);
155 if (len-- > 1) /* using one because of the bits left byte */
237 * Checks if the given bit string contains only bits specified by