Lines Matching defs:bits
66 bits: 4, /* need to hold 0 - 15 */
209 if (psenc->bits > 0 || psenc->cache > 0)
229 if (psenc->bits >= BASE64_BIT)
232 psenc->bits = psenc->cache = 0;
242 switch (psenc->bits) {
244 psenc->bits += BASE64_BIT;
247 psenc->bits -= (UTF16_BIT - BASE64_BIT);
248 *u16 = (psenc->cache >> psenc->bits)
345 int bits, i;
350 if (psenc->chlen != 0 || psenc->bits > BASE64_BIT)
355 if (psenc->bits > 0) {
356 bits = BASE64_BIT - psenc->bits;
357 i = (psenc->cache << bits) & BASE64_MAX;
359 psenc->bits = psenc->cache = 0;
365 if (psenc->bits != 0)
372 if (psenc->bits > 0)
378 bits = UTF16_BIT + psenc->bits;
379 psenc->bits = bits % BASE64_BIT;
380 while ((bits -= BASE64_BIT) >= 0) {
381 i = (psenc->cache >> bits) & BASE64_MAX;
440 int bits, pos;
447 if (psenc->chlen != 0 || psenc->bits > BASE64_BIT || psenc->surrogate)
451 if (psenc->bits > 0) {
454 bits = BASE64_BIT - psenc->bits;
455 pos = (psenc->cache << bits) & BASE64_MAX;
458 psenc->bits = psenc->cache = 0;
462 if (psenc->bits != 0)