Lines Matching refs:bits
35 int bits = 0; in base64_encode() local
41 bits += 8; in base64_encode()
43 bits -= 6; in base64_encode()
44 *cp++ = base64_table[(ac >> bits) & 0x3f]; in base64_encode()
45 } while (bits >= 6); in base64_encode()
47 if (bits) { in base64_encode()
48 *cp++ = base64_table[(ac << (6 - bits)) & 0x3f]; in base64_encode()
49 bits -= 6; in base64_encode()
51 while (bits < 0) { in base64_encode()
53 bits += 2; in base64_encode()
76 int bits = 0; in base64_decode() local
85 bits += 6; in base64_decode()
86 if (bits >= 8) in base64_decode()
87 bits -= 8; in base64_decode()
93 bits += 6; in base64_decode()
94 if (bits >= 8) { in base64_decode()
95 bits -= 8; in base64_decode()
96 *bp++ = (u8)(ac >> bits); in base64_decode()
99 if (ac & ((1 << bits) - 1)) in base64_decode()