Lines Matching refs:leftbits
261 int leftbits = 0; in binascii_a2b_uu_impl() local
308 leftbits += 6; in binascii_a2b_uu_impl()
309 if ( leftbits >= 8 ) { in binascii_a2b_uu_impl()
310 leftbits -= 8; in binascii_a2b_uu_impl()
311 *bin_data++ = (leftchar >> leftbits) & 0xff; in binascii_a2b_uu_impl()
312 leftchar &= ((1 << leftbits) - 1); in binascii_a2b_uu_impl()
350 int leftbits = 0; in binascii_b2a_uu_impl() local
377 for( ; bin_len > 0 || leftbits != 0 ; bin_len--, bin_data++ ) { in binascii_b2a_uu_impl()
383 leftbits += 8; in binascii_b2a_uu_impl()
386 while ( leftbits >= 6 ) { in binascii_b2a_uu_impl()
387 this_ch = (leftchar >> (leftbits-6)) & 0x3f; in binascii_b2a_uu_impl()
388 leftbits -= 6; in binascii_b2a_uu_impl()
442 int leftbits = 0; in binascii_a2b_base64_impl() local
490 leftbits = 0; in binascii_a2b_base64_impl()
505 leftbits += 6; in binascii_a2b_base64_impl()
507 if ( leftbits >= 8 ) { in binascii_a2b_base64_impl()
508 leftbits -= 8; in binascii_a2b_base64_impl()
509 *bin_data++ = (leftchar >> leftbits) & 0xff; in binascii_a2b_base64_impl()
510 leftchar &= ((1 << leftbits) - 1); in binascii_a2b_base64_impl()
514 if (leftbits != 0) { in binascii_a2b_base64_impl()
515 if (leftbits == 6) { in binascii_a2b_base64_impl()
554 int leftbits = 0; in binascii_b2a_base64_impl() local
584 leftbits += 8; in binascii_b2a_base64_impl()
587 while ( leftbits >= 6 ) { in binascii_b2a_base64_impl()
588 this_ch = (leftchar >> (leftbits-6)) & 0x3f; in binascii_b2a_base64_impl()
589 leftbits -= 6; in binascii_b2a_base64_impl()
593 if ( leftbits == 2 ) { in binascii_b2a_base64_impl()
597 } else if ( leftbits == 4 ) { in binascii_b2a_base64_impl()
622 int leftbits = 0; in binascii_a2b_hqx_impl() local
664 leftbits += 6; in binascii_a2b_hqx_impl()
665 if ( leftbits >= 8 ) { in binascii_a2b_hqx_impl()
666 leftbits -= 8; in binascii_a2b_hqx_impl()
667 *bin_data++ = (leftchar >> leftbits) & 0xff; in binascii_a2b_hqx_impl()
668 leftchar &= ((1 << leftbits) - 1); in binascii_a2b_hqx_impl()
672 if ( leftbits && !done ) { in binascii_a2b_hqx_impl()
763 int leftbits = 0; in binascii_b2a_hqx_impl() local
786 leftbits += 8; in binascii_b2a_hqx_impl()
787 while ( leftbits >= 6 ) { in binascii_b2a_hqx_impl()
788 this_ch = (leftchar >> (leftbits-6)) & 0x3f; in binascii_b2a_hqx_impl()
789 leftbits -= 6; in binascii_b2a_hqx_impl()
794 if ( leftbits ) { in binascii_b2a_hqx_impl()
795 leftchar <<= (6-leftbits); in binascii_b2a_hqx_impl()