Home
last modified time | relevance | path

Searched refs:UnicodeScalarValue (Results 1 – 3 of 3) sorted by relevance

/aosp_15_r20/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
H A DYAMLParser.cpp565 static void encodeUTF8( uint32_t UnicodeScalarValue in encodeUTF8() argument
567 if (UnicodeScalarValue <= 0x7F) { in encodeUTF8()
568 Result.push_back(UnicodeScalarValue & 0x7F); in encodeUTF8()
569 } else if (UnicodeScalarValue <= 0x7FF) { in encodeUTF8()
570 uint8_t FirstByte = 0xC0 | ((UnicodeScalarValue & 0x7C0) >> 6); in encodeUTF8()
571 uint8_t SecondByte = 0x80 | (UnicodeScalarValue & 0x3F); in encodeUTF8()
574 } else if (UnicodeScalarValue <= 0xFFFF) { in encodeUTF8()
575 uint8_t FirstByte = 0xE0 | ((UnicodeScalarValue & 0xF000) >> 12); in encodeUTF8()
576 uint8_t SecondByte = 0x80 | ((UnicodeScalarValue & 0xFC0) >> 6); in encodeUTF8()
577 uint8_t ThirdByte = 0x80 | (UnicodeScalarValue & 0x3F); in encodeUTF8()
[all …]
/aosp_15_r20/external/swiftshader/third_party/llvm-16.0/llvm/lib/Support/
H A DYAMLParser.cpp572 static void encodeUTF8( uint32_t UnicodeScalarValue in encodeUTF8() argument
574 if (UnicodeScalarValue <= 0x7F) { in encodeUTF8()
575 Result.push_back(UnicodeScalarValue & 0x7F); in encodeUTF8()
576 } else if (UnicodeScalarValue <= 0x7FF) { in encodeUTF8()
577 uint8_t FirstByte = 0xC0 | ((UnicodeScalarValue & 0x7C0) >> 6); in encodeUTF8()
578 uint8_t SecondByte = 0x80 | (UnicodeScalarValue & 0x3F); in encodeUTF8()
581 } else if (UnicodeScalarValue <= 0xFFFF) { in encodeUTF8()
582 uint8_t FirstByte = 0xE0 | ((UnicodeScalarValue & 0xF000) >> 12); in encodeUTF8()
583 uint8_t SecondByte = 0x80 | ((UnicodeScalarValue & 0xFC0) >> 6); in encodeUTF8()
584 uint8_t ThirdByte = 0x80 | (UnicodeScalarValue & 0x3F); in encodeUTF8()
[all …]
/aosp_15_r20/external/llvm/lib/Support/
H A DYAMLParser.cpp573 static void encodeUTF8( uint32_t UnicodeScalarValue in encodeUTF8() argument
575 if (UnicodeScalarValue <= 0x7F) { in encodeUTF8()
576 Result.push_back(UnicodeScalarValue & 0x7F); in encodeUTF8()
577 } else if (UnicodeScalarValue <= 0x7FF) { in encodeUTF8()
578 uint8_t FirstByte = 0xC0 | ((UnicodeScalarValue & 0x7C0) >> 6); in encodeUTF8()
579 uint8_t SecondByte = 0x80 | (UnicodeScalarValue & 0x3F); in encodeUTF8()
582 } else if (UnicodeScalarValue <= 0xFFFF) { in encodeUTF8()
583 uint8_t FirstByte = 0xE0 | ((UnicodeScalarValue & 0xF000) >> 12); in encodeUTF8()
584 uint8_t SecondByte = 0x80 | ((UnicodeScalarValue & 0xFC0) >> 6); in encodeUTF8()
585 uint8_t ThirdByte = 0x80 | (UnicodeScalarValue & 0x3F); in encodeUTF8()
[all …]