Lines Matching refs:lo
321 uint32_t lo; in uconv_u16tou32() local
378 lo = (uint32_t)((inendian) ? u16s[u16l] : BSWAP_16(u16s[u16l])); in uconv_u16tou32()
380 if (lo >= UCONV_U16_HI_MIN && lo <= UCONV_U16_HI_MAX) { in uconv_u16tou32()
383 hi = lo; in uconv_u16tou32()
385 } else if (lo >= UCONV_U16_LO_MIN && lo <= UCONV_U16_LO_MAX) { in uconv_u16tou32()
388 lo = (((hi - UCONV_U16_HI_MIN) * UCONV_U16_BIT_SHIFT + in uconv_u16tou32()
389 lo - UCONV_U16_LO_MIN) & UCONV_U16_BIT_MASK) in uconv_u16tou32()
399 u32s[u32l++] = (outendian) ? lo : BSWAP_32(lo); in uconv_u16tou32()
431 uint32_t lo; in uconv_u16tou8() local
457 lo = (uint32_t)((inendian) ? u16s[u16l] : BSWAP_16(u16s[u16l])); in uconv_u16tou8()
459 if (lo >= UCONV_U16_HI_MIN && lo <= UCONV_U16_HI_MAX) { in uconv_u16tou8()
462 hi = lo; in uconv_u16tou8()
464 } else if (lo >= UCONV_U16_LO_MIN && lo <= UCONV_U16_LO_MAX) { in uconv_u16tou8()
467 lo = (((hi - UCONV_U16_HI_MIN) * UCONV_U16_BIT_SHIFT + in uconv_u16tou8()
468 lo - UCONV_U16_LO_MIN) & UCONV_U16_BIT_MASK) in uconv_u16tou8()
480 if (lo <= UCONV_U8_ONE_BYTE) { in uconv_u16tou8()
483 u8s[u8l++] = (uchar_t)lo; in uconv_u16tou8()
484 } else if (lo <= UCONV_U8_TWO_BYTES) { in uconv_u16tou8()
487 u8s[u8l++] = (uchar_t)(0xc0 | ((lo & 0x07c0) >> 6)); in uconv_u16tou8()
488 u8s[u8l++] = (uchar_t)(0x80 | (lo & 0x003f)); in uconv_u16tou8()
489 } else if (lo <= UCONV_U8_THREE_BYTES) { in uconv_u16tou8()
492 u8s[u8l++] = (uchar_t)(0xe0 | ((lo & 0x0f000) >> 12)); in uconv_u16tou8()
493 u8s[u8l++] = (uchar_t)(0x80 | ((lo & 0x00fc0) >> 6)); in uconv_u16tou8()
494 u8s[u8l++] = (uchar_t)(0x80 | (lo & 0x0003f)); in uconv_u16tou8()
495 } else if (lo <= UCONV_U8_FOUR_BYTES) { in uconv_u16tou8()
498 u8s[u8l++] = (uchar_t)(0xf0 | ((lo & 0x01c0000) >> 18)); in uconv_u16tou8()
499 u8s[u8l++] = (uchar_t)(0x80 | ((lo & 0x003f000) >> 12)); in uconv_u16tou8()
500 u8s[u8l++] = (uchar_t)(0x80 | ((lo & 0x0000fc0) >> 6)); in uconv_u16tou8()
501 u8s[u8l++] = (uchar_t)(0x80 | (lo & 0x000003f)); in uconv_u16tou8()
525 uint32_t lo; in uconv_u32tou16() local
570 lo = ((hi - UCONV_U16_START) % UCONV_U16_BIT_SHIFT) + in uconv_u32tou16()
580 u16s[u16l++] = (uint16_t)lo; in uconv_u32tou16()
583 u16s[u16l++] = BSWAP_16(((uint16_t)lo)); in uconv_u32tou16()
607 uint32_t lo; in uconv_u32tou8() local
632 lo = (inendian) ? u32s[u32l] : BSWAP_32(u32s[u32l]); in uconv_u32tou8()
634 if (lo <= UCONV_U8_ONE_BYTE) { in uconv_u32tou8()
637 u8s[u8l++] = (uchar_t)lo; in uconv_u32tou8()
638 } else if (lo <= UCONV_U8_TWO_BYTES) { in uconv_u32tou8()
641 u8s[u8l++] = (uchar_t)(0xc0 | ((lo & 0x07c0) >> 6)); in uconv_u32tou8()
642 u8s[u8l++] = (uchar_t)(0x80 | (lo & 0x003f)); in uconv_u32tou8()
643 } else if (lo <= UCONV_U8_THREE_BYTES) { in uconv_u32tou8()
646 u8s[u8l++] = (uchar_t)(0xe0 | ((lo & 0x0f000) >> 12)); in uconv_u32tou8()
647 u8s[u8l++] = (uchar_t)(0x80 | ((lo & 0x00fc0) >> 6)); in uconv_u32tou8()
648 u8s[u8l++] = (uchar_t)(0x80 | (lo & 0x0003f)); in uconv_u32tou8()
649 } else if (lo <= UCONV_U8_FOUR_BYTES) { in uconv_u32tou8()
652 u8s[u8l++] = (uchar_t)(0xf0 | ((lo & 0x01c0000) >> 18)); in uconv_u32tou8()
653 u8s[u8l++] = (uchar_t)(0x80 | ((lo & 0x003f000) >> 12)); in uconv_u32tou8()
654 u8s[u8l++] = (uchar_t)(0x80 | ((lo & 0x0000fc0) >> 6)); in uconv_u32tou8()
655 u8s[u8l++] = (uchar_t)(0x80 | (lo & 0x000003f)); in uconv_u32tou8()
676 uint32_t lo; in uconv_u8tou16() local
731 lo = (uint32_t)u8s[u8l++]; in uconv_u8tou16()
734 if (lo < valid_min_2nd_byte[first_b] || in uconv_u8tou16()
735 lo > valid_max_2nd_byte[first_b]) in uconv_u8tou16()
738 } else if (lo < UCONV_U8_BYTE_MIN || in uconv_u8tou16()
739 lo > UCONV_U8_BYTE_MAX) { in uconv_u8tou16()
743 (lo & UCONV_U8_BIT_MASK); in uconv_u8tou16()
748 lo = ((hi - UCONV_U16_START) % UCONV_U16_BIT_SHIFT) + in uconv_u8tou16()
758 u16s[u16l++] = (uint16_t)lo; in uconv_u8tou16()
761 u16s[u16l++] = BSWAP_16(((uint16_t)lo)); in uconv_u8tou16()