Lines Matching +full:1 +full:ac
34 u32 ac = 0; in base64_encode() local
40 ac = (ac << 8) | src[i]; in base64_encode()
44 *cp++ = base64_table[(ac >> bits) & 0x3f]; in base64_encode()
48 *cp++ = base64_table[(ac << (6 - bits)) & 0x3f]; in base64_encode()
71 * or -1 if the string isn't a valid base64 string.
75 u32 ac = 0; in base64_decode() local
84 ac = (ac << 6); in base64_decode()
91 return -1; in base64_decode()
92 ac = (ac << 6) | (p - base64_table); in base64_decode()
96 *bp++ = (u8)(ac >> bits); in base64_decode()
99 if (ac & ((1 << bits) - 1)) in base64_decode()
100 return -1; in base64_decode()