Home
last modified time | relevance | path

Searched refs:byte2 (Results 1 – 25 of 43) sorted by relevance

12

/external/protobuf/java/core/src/main/java/com/google/protobuf/
DUtf8.java183 private static int incompleteStateFor(int byte1, int byte2) { in incompleteStateFor() argument
184 return (byte1 > (byte) 0xF4 || byte2 > (byte) 0xBF) ? MALFORMED : byte1 ^ (byte2 << 8); in incompleteStateFor()
187 private static int incompleteStateFor(int byte1, int byte2, int byte3) { in incompleteStateFor() argument
188 return (byte1 > (byte) 0xF4 || byte2 > (byte) 0xBF || byte3 > (byte) 0xBF) in incompleteStateFor()
190 : byte1 ^ (byte2 << 8) ^ (byte3 << 16); in incompleteStateFor()
476 byte byte2 = (byte) ~(state >> 8); in partialIsValidUtf8Default()
477 if (byte2 == 0) { in partialIsValidUtf8Default()
478 byte2 = buffer.get(index++); in partialIsValidUtf8Default()
480 return incompleteStateFor(byte1, byte2); in partialIsValidUtf8Default()
483 if (byte2 > (byte) 0xBF in partialIsValidUtf8Default()
[all …]
/external/flatbuffers/java/com/google/flatbuffers/
DUtf8.java109 byte byte1, byte byte2, char[] resultArr, int resultPos) in handleTwoBytes() argument
116 if (isNotTrailingByte(byte2)) { in handleTwoBytes()
119 resultArr[resultPos] = (char) (((byte1 & 0x1F) << 6) | trailingByteValue(byte2)); in handleTwoBytes()
123 byte byte1, byte byte2, byte byte3, char[] resultArr, int resultPos) in handleThreeBytes() argument
125 if (isNotTrailingByte(byte2) in handleThreeBytes()
127 || (byte1 == (byte) 0xE0 && byte2 < (byte) 0xA0) in handleThreeBytes()
129 || (byte1 == (byte) 0xED && byte2 >= (byte) 0xA0) in handleThreeBytes()
134 … (((byte1 & 0x0F) << 12) | (trailingByteValue(byte2) << 6) | trailingByteValue(byte3)); in handleThreeBytes()
138 byte byte1, byte byte2, byte byte3, byte byte4, char[] resultArr, int resultPos) in handleFourBytes() argument
140 if (isNotTrailingByte(byte2) in handleFourBytes()
[all …]
/external/icu/icu4c/source/i18n/
Dcollation.cpp80 int32_t byte2 = ((int32_t)(basePrimary >> 16) & 0xff) - step; in decTwoBytePrimaryByOneStep() local
82 if(byte2 < 4) { in decTwoBytePrimaryByOneStep()
83 byte2 += 251; in decTwoBytePrimaryByOneStep()
87 if(byte2 < 2) { in decTwoBytePrimaryByOneStep()
88 byte2 += 254; in decTwoBytePrimaryByOneStep()
92 return (basePrimary & 0xff000000) | ((uint32_t)byte2 << 16); in decTwoBytePrimaryByOneStep()
107 int32_t byte2 = ((int32_t)(basePrimary >> 16) & 0xff) - 1; in decThreeBytePrimaryByOneStep() local
109 if(byte2 < 4) { in decThreeBytePrimaryByOneStep()
110 byte2 = 0xfe; in decThreeBytePrimaryByOneStep()
114 if(byte2 < 2) { in decThreeBytePrimaryByOneStep()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
DCollation.java516 int byte2 = ((int)(basePrimary >> 16) & 0xff) - step;
518 if(byte2 < 4) {
519 byte2 += 251;
523 if(byte2 < 2) {
524 byte2 += 254;
528 return (basePrimary & 0xff000000L) | (byte2 << 16);
545 int byte2 = ((int)(basePrimary >> 16) & 0xff) - 1;
547 if(byte2 < 4) {
548 byte2 = 0xfe;
552 if(byte2 < 2) {
[all …]
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
DCollation.java514 int byte2 = ((int)(basePrimary >> 16) & 0xff) - step;
516 if(byte2 < 4) {
517 byte2 += 251;
521 if(byte2 < 2) {
522 byte2 += 254;
526 return (basePrimary & 0xff000000L) | (byte2 << 16);
543 int byte2 = ((int)(basePrimary >> 16) & 0xff) - 1;
545 if(byte2 < 4) {
546 byte2 = 0xfe;
550 if(byte2 < 2) {
[all …]
/external/oj-libjdwp/src/share/npt/
Dutf.c233 unsigned byte2, byte3, byte4, u21; in utf8sToUtf8m() local
236 byte2 = (unsigned char)string[++i]; in utf8sToUtf8m()
241 u21 += (byte2 & 0x3F) << 12; in utf8sToUtf8m()
274 unsigned byte1, byte2, byte3, byte4, byte5, byte6; in utf8mToUtf8sLength() local
284 byte2 = (unsigned char)string[++i]; in utf8mToUtf8sLength()
285 if ( byte1 != 0xC0 || byte2 != 0x80 ) { in utf8mToUtf8sLength()
296 byte2 = (unsigned char)string[++i]; in utf8mToUtf8sLength()
300 if ( (i+3) < length && byte1 == 0xED && (byte2 & 0xF0) == 0xA0 ) { in utf8mToUtf8sLength()
341 unsigned byte1, byte2, byte3, byte4, byte5, byte6; in utf8mToUtf8s() local
348 byte2 = (unsigned char)string[++i]; in utf8mToUtf8s()
[all …]
/external/guava/android/guava/src/com/google/common/base/
DUtf8.java165 int byte2 = bytes[index++]; in isWellFormedSlowPath() local
166 if (byte2 > (byte) 0xBF in isWellFormedSlowPath()
168 || (byte1 == (byte) 0xE0 && byte2 < (byte) 0xA0) in isWellFormedSlowPath()
170 || (byte1 == (byte) 0xED && (byte) 0xA0 <= byte2) in isWellFormedSlowPath()
180 int byte2 = bytes[index++]; in isWellFormedSlowPath() local
181 if (byte2 > (byte) 0xBF in isWellFormedSlowPath()
186 || (((byte1 << 28) + (byte2 - (byte) 0x90)) >> 30) != 0 in isWellFormedSlowPath()
/external/guava/guava/src/com/google/common/base/
DUtf8.java165 int byte2 = bytes[index++]; in isWellFormedSlowPath() local
166 if (byte2 > (byte) 0xBF in isWellFormedSlowPath()
168 || (byte1 == (byte) 0xE0 && byte2 < (byte) 0xA0) in isWellFormedSlowPath()
170 || (byte1 == (byte) 0xED && (byte) 0xA0 <= byte2) in isWellFormedSlowPath()
180 int byte2 = bytes[index++]; in isWellFormedSlowPath() local
181 if (byte2 > (byte) 0xBF in isWellFormedSlowPath()
186 || (((byte1 << 28) + (byte2 - (byte) 0x90)) >> 30) != 0 in isWellFormedSlowPath()
/external/libtextclassifier/native/utils/strings/
Dutf8.cc53 unsigned char byte2 = static_cast<unsigned char>(str[1]); in ValidCharToRune() local
56 return ((byte1 & 0x1F) << 6) | (byte2 & 0x3F); in ValidCharToRune()
62 return ((byte1 & 0x0F) << 12) | ((byte2 & 0x3F) << 6) | (byte3 & 0x3F); in ValidCharToRune()
67 return ((byte1 & 0x07) << 18) | ((byte2 & 0x3F) << 12) | in ValidCharToRune()
/external/rust/crates/aho-corasick/src/
Dprefilter.rs569 byte2: bytes[1], in build()
574 byte2: bytes[1], in build()
723 byte2: u8, field
733 memchr2(self.byte1, self.byte2, &haystack[at..]) in next_candidate()
762 byte2: u8, field
773 memchr3(self.byte1, self.byte2, self.byte3, &haystack[at..]) in next_candidate()
872 byte2: bytes[1], in build()
876 byte2: bytes[1], in build()
939 byte2: u8, field
949 memchr2(self.byte1, self.byte2, &haystack[at..]) in next_candidate()
[all …]
/external/mesa3d/src/gallium/frontends/glx/xlib/
Dglx_usefont.c143 char2b.byte2 = (c & 0xff); in fill_bitmap()
169 unsigned int byte1 = 0, byte2 = 0; in isvalid() local
182 byte2 = which & 0xff; in isvalid()
184 if ((fs->min_char_or_byte2 > byte2) || in isvalid()
185 (fs->max_char_or_byte2 < byte2) || in isvalid()
199 (byte2 - fs->min_char_or_byte2); in isvalid()
/external/mesa3d/src/glx/
Dxfont.c147 char2b.byte2 = (c & 0xff); in fill_bitmap()
173 int byte1 = 0, byte2 = 0; in isvalid() local
186 byte2 = which & 0xff; in isvalid()
188 if ((fs->min_char_or_byte2 > byte2) || in isvalid()
189 (fs->max_char_or_byte2 < byte2) || in isvalid()
203 (byte2 - fs->min_char_or_byte2); in isvalid()
/external/mesa3d/src/mesa/drivers/x11/
Dxfonts.c141 char2b.byte2 = (c & 0xff); in fill_bitmap()
167 unsigned int byte1 = 0, byte2 = 0; in isvalid() local
180 byte2 = which & 0xff; in isvalid()
182 if ((fs->min_char_or_byte2 > byte2) || in isvalid()
183 (fs->max_char_or_byte2 < byte2) || in isvalid()
197 (byte2 - fs->min_char_or_byte2); in isvalid()
/external/pigweed/pw_base64/
Dbase64.cc43 constexpr char BitGroup2Char(uint8_t byte1, uint8_t byte2 = 0) { in BitGroup2Char() argument
45 ((byte2 & 0b11000000) >> 6)]; in BitGroup2Char()
47 constexpr char BitGroup3Char(uint8_t byte2) { in BitGroup3Char() argument
48 return kEncodeTable[byte2 & 0b00111111]; in BitGroup3Char()
/external/deqp-deps/amber/samples/
Dppm.cc35 uint8_t byte2(uint32_t word) { in byte2() function
61 buffer->push_back(byte2(pixel)); // R in ConvertToPPM()
Dpng.cc39 unsigned char byte2(uint32_t word) { in byte2() function
62 data.push_back(byte2(pixel)); // R in ConvertToPNG()
/external/usrsctp/usrsctplib/netinet/
Dsctp_crc32.c742 uint8_t byte0, byte1, byte2, byte3; in sctp_finalize_crc32c() local
754 byte2 = (result >> 16) & 0x000000ff; in sctp_finalize_crc32c()
756 crc32c = ((byte0 << 24) | (byte1 << 16) | (byte2 << 8) | byte3); in sctp_finalize_crc32c()
/external/pdfium/core/fpdfapi/font/
Dcpdf_cmap.cpp335 uint8_t byte2 = offset < pBytes.size() ? pBytes[offset++] : 0; in GetNextChar() local
336 return 256 * byte1 + byte2; in GetNextChar()
342 uint8_t byte2 = offset < pBytes.size() ? pBytes[offset++] : 0; in GetNextChar() local
343 return 256 * byte1 + byte2; in GetNextChar()
/external/skia/tests/
DSkVxTest.cpp20 using byte2 = skvx::Vec< 2,uint8_t>; typedef
42 static_assert(sizeof(byte2) == 2, ""); in DEF_TEST()
156 REPORTER_ASSERT(r, all(mull(byte2 (x), byte2 (y)) == xy)); in DEF_TEST()
/external/llvm/test/CodeGen/SystemZ/
Dbranch-06.ll161 %byte2 = load i8 , i8 *%targetptr2
163 %ext2 = zext i8 %byte2 to i32
/external/pdfium/core/fpdfapi/parser/
Dcpdf_syntax_parser.cpp570 unsigned char byte2 = 0; in ReadEOLMarkers() local
573 GetCharAt(pos + 1, byte2); in ReadEOLMarkers()
575 if (byte1 == '\r' && byte2 == '\n') in ReadEOLMarkers()
/external/dng_sdk/source/
Ddng_iptc.cpp278 uint32 byte2 = stream.Get_uint8 (); in Parse() local
282 byte2 == 0x25 && in Parse()
/external/harfbuzz_ng/src/
Dhb-cff-interp-common.hh91 #define Make_OpCode_ESC(byte2) ((op_code_t)(OpCode_ESC_Base + (byte2))) argument
/external/scapy/scapy/
Dutils6.py759 def matching_bits(byte1, byte2): argument
762 if (byte1 & cur_mask) != (byte2 & cur_mask):
/external/tensorflow/tensorflow/lite/delegates/gpu/common/
Dtypes.h179 using byte2 = Vec2<int8_t>; variable

12