Home
last modified time | relevance | path

Searched refs:byte1 (Results 1 – 25 of 67) sorted by relevance

123

/external/protobuf/java/core/src/main/java/com/google/protobuf/
DUtf8.java179 private static int incompleteStateFor(int byte1) { in incompleteStateFor() argument
180 return (byte1 > (byte) 0xF4) ? MALFORMED : byte1; in incompleteStateFor()
183 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()
194 int byte1 = bytes[index - 1]; in incompleteStateFor() local
197 return incompleteStateFor(byte1); in incompleteStateFor()
199 return incompleteStateFor(byte1, bytes[index]); in incompleteStateFor()
[all …]
/external/llvm-project/lldb/source/Symbol/
DArmUnwindInfo.cpp136 uint8_t byte1 = GetByteAtOffset(data, byte_offset++); in GetUnwindPlan() local
137 if ((byte1 & 0xc0) == 0x00) { in GetUnwindPlan()
140 vsp += ((byte1 & 0x3f) << 2) + 4; in GetUnwindPlan()
141 } else if ((byte1 & 0xc0) == 0x40) { in GetUnwindPlan()
144 vsp -= ((byte1 & 0x3f) << 2) + 4; in GetUnwindPlan()
145 } else if ((byte1 & 0xf0) == 0x80) { in GetUnwindPlan()
150 if (byte1 == 0x80 && byte2 == 0) { in GetUnwindPlan()
158 uint16_t regs = ((byte1 & 0x0f) << 8) | byte2; in GetUnwindPlan()
166 } else if ((byte1 & 0xff) == 0x9d) { in GetUnwindPlan()
170 } else if ((byte1 & 0xff) == 0x9f) { in GetUnwindPlan()
[all …]
/external/oj-libjdwp/src/share/npt/
Dutf.c210 unsigned byte1; in utf8sToUtf8m() local
212 byte1 = (unsigned char)string[i]; in utf8sToUtf8m()
215 if ( (byte1 & 0x80) == 0 ) { /* 1byte encoding */ in utf8sToUtf8m()
216 if ( byte1 == 0 ) { in utf8sToUtf8m()
222 newString[j++] = byte1; in utf8sToUtf8m()
224 } else if ( (byte1 & 0xE0) == 0xC0 ) { /* 2byte encoding */ in utf8sToUtf8m()
225 newString[j++] = byte1; in utf8sToUtf8m()
227 } else if ( (byte1 & 0xF0) == 0xE0 ) { /* 3byte encoding */ in utf8sToUtf8m()
228 newString[j++] = byte1; in utf8sToUtf8m()
231 } else if ( (byte1 & 0xF8) == 0xF0 ) { /* 4byte encoding */ in utf8sToUtf8m()
[all …]
/external/flatbuffers/java/com/google/flatbuffers/
DUtf8.java104 static void handleOneByte(byte byte1, char[] resultArr, int resultPos) { in handleOneByte() argument
105 resultArr[resultPos] = (char) byte1; in handleOneByte()
109 byte byte1, byte byte2, char[] resultArr, int resultPos) in handleTwoBytes() argument
113 if (byte1 < (byte) 0xC2) { 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
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
[all …]
DUtf8Safe.java153 byte byte1 = bytes[offset++]; in decodeUtf8Array()
154 if (DecodeUtil.isOneByte(byte1)) { in decodeUtf8Array()
155 DecodeUtil.handleOneByte(byte1, resultArr, resultPos++); in decodeUtf8Array()
166 } else if (DecodeUtil.isTwoBytes(byte1)) { in decodeUtf8Array()
170 DecodeUtil.handleTwoBytes(byte1, /* byte2 */ bytes[offset++], resultArr, resultPos++); in decodeUtf8Array()
171 } else if (DecodeUtil.isThreeBytes(byte1)) { in decodeUtf8Array()
176 byte1, in decodeUtf8Array()
186 byte1, in decodeUtf8Array()
228 byte byte1 = buffer.get(offset++); in decodeUtf8Buffer()
229 if (DecodeUtil.isOneByte(byte1)) { in decodeUtf8Buffer()
[all …]
/external/libtextclassifier/native/utils/strings/
Dutf8.cc47 unsigned char byte1 = static_cast<unsigned char>(str[0]); in ValidCharToRune() local
48 if (byte1 < 0x80) { in ValidCharToRune()
50 return byte1; in ValidCharToRune()
54 if (byte1 < 0xE0) { in ValidCharToRune()
56 return ((byte1 & 0x1F) << 6) | (byte2 & 0x3F); in ValidCharToRune()
60 if (byte1 < 0xF0) { 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/guava/android/guava/src/com/google/common/base/
DUtf8.java140 int byte1; in isWellFormedSlowPath() local
147 } while ((byte1 = bytes[index++]) >= 0); in isWellFormedSlowPath()
149 if (byte1 < (byte) 0xE0) { in isWellFormedSlowPath()
156 if (byte1 < (byte) 0xC2 || bytes[index++] > (byte) 0xBF) { in isWellFormedSlowPath()
159 } else if (byte1 < (byte) 0xF0) { in isWellFormedSlowPath()
167 || (byte1 == (byte) 0xE0 && byte2 < (byte) 0xA0) in isWellFormedSlowPath()
169 || (byte1 == (byte) 0xED && (byte) 0xA0 <= byte2) in isWellFormedSlowPath()
185 || (((byte1 << 28) + (byte2 - (byte) 0x90)) >> 30) != 0 in isWellFormedSlowPath()
/external/guava/guava/src/com/google/common/base/
DUtf8.java140 int byte1; in isWellFormedSlowPath() local
147 } while ((byte1 = bytes[index++]) >= 0); in isWellFormedSlowPath()
149 if (byte1 < (byte) 0xE0) { in isWellFormedSlowPath()
156 if (byte1 < (byte) 0xC2 || bytes[index++] > (byte) 0xBF) { in isWellFormedSlowPath()
159 } else if (byte1 < (byte) 0xF0) { in isWellFormedSlowPath()
167 || (byte1 == (byte) 0xE0 && byte2 < (byte) 0xA0) in isWellFormedSlowPath()
169 || (byte1 == (byte) 0xED && (byte) 0xA0 <= byte2) in isWellFormedSlowPath()
185 || (((byte1 << 28) + (byte2 - (byte) 0x90)) >> 30) != 0 in isWellFormedSlowPath()
/external/rust/crates/aho-corasick/src/
Dprefilter.rs563 byte1: bytes[0], in build()
568 byte1: bytes[0], in build()
573 byte1: bytes[0], in build()
662 byte1: u8, field
673 memchr(self.byte1, &haystack[at..]) in next_candidate()
722 byte1: u8, field
733 memchr2(self.byte1, self.byte2, &haystack[at..]) in next_candidate()
761 byte1: u8, field
773 memchr3(self.byte1, self.byte2, self.byte3, &haystack[at..]) in next_candidate()
869 1 => Some(PrefilterObj::new(StartBytesOne { byte1: bytes[0] })), in build()
[all …]
/external/mesa3d/src/glx/
Dxfont.c146 char2b.byte1 = (c >> 8) & 0xff; in fill_bitmap()
173 int byte1 = 0, byte2 = 0; in isvalid() local
187 byte1 = which >> 8; in isvalid()
190 (fs->min_byte1 > byte1) || (fs->max_byte1 < byte1)) in isvalid()
202 i = ((byte1 - fs->min_byte1) * pages) + in isvalid()
/external/mesa3d/src/mesa/drivers/x11/
Dxfonts.c140 char2b.byte1 = (c >> 8) & 0xff; in fill_bitmap()
167 unsigned int byte1 = 0, byte2 = 0; in isvalid() local
181 byte1 = which >> 8; in isvalid()
184 (fs->min_byte1 > byte1) || (fs->max_byte1 < byte1)) in isvalid()
196 i = ((byte1 - fs->min_byte1) * pages) + in isvalid()
/external/mesa3d/src/gallium/frontends/glx/xlib/
Dglx_usefont.c142 char2b.byte1 = (c >> 8) & 0xff; in fill_bitmap()
169 unsigned int byte1 = 0, byte2 = 0; in isvalid() local
183 byte1 = which >> 8; in isvalid()
186 (fs->min_byte1 > byte1) || (fs->max_byte1 < byte1)) in isvalid()
198 i = ((byte1 - fs->min_byte1) * pages) + in isvalid()
/external/pigweed/pw_base64/
Dbase64.cc39 constexpr char BitGroup1Char(uint8_t byte0, uint8_t byte1 = 0) { in BitGroup1Char() argument
40 return encode_bits[((byte0 & 0b00000011) << 4) | ((byte1 & 0b11110000) >> 4)]; in BitGroup1Char()
42 constexpr char BitGroup2Char(uint8_t byte1, uint8_t byte2 = 0) { in BitGroup2Char() argument
43 return encode_bits[((byte1 & 0b00001111) << 2) | ((byte2 & 0b11000000) >> 6)]; in BitGroup2Char()
/external/scapy/scapy/layers/tls/
Dautomaton.py107 byte1 = struct.unpack("B", self.remain_in[1:2])[0]
108 if (byte0 in _tls_type) and (byte1 == 3):
117 grablen = 2 + 0 + ((byte0 & 0x7f) << 8) + byte1
119 grablen = 2 + 1 + ((byte0 & 0x3f) << 8) + byte1
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/sevenz/
DAES256SHA256Decoder.java46 final int byte1 = 0xff & coder.properties[1]; in decode() local
47 final int ivSize = ((byte0 >> 6) & 1) + (byte1 & 0x0f); in decode()
48 final int saltSize = ((byte0 >> 7) & 1) + (byte1 >> 4); in decode()
/external/pdfium/core/fpdfapi/font/
Dcpdf_cmap.cpp334 uint8_t byte1 = offset < pBytes.size() ? pBytes[offset++] : 0; in GetNextChar() local
336 return 256 * byte1 + byte2; in GetNextChar()
339 uint8_t byte1 = offset < pBytes.size() ? pBytes[offset++] : 0; in GetNextChar() local
340 if (!m_MixedTwoByteLeadingBytes[byte1]) in GetNextChar()
341 return byte1; in GetNextChar()
343 return 256 * byte1 + byte2; in GetNextChar()
/external/llvm-project/llvm/test/CodeGen/X86/
Dbswap_tree.ll28 %byte1 = and i32 %x, 65280 ; 0x0000ff00
32 %tmp1 = lshr i32 %byte1, 8
60 %byte1 = shl i32 %x, 8
64 %tmp1 = and i32 %byte1, 65280 ; 0x0000ff00
Dbswap_tree2.ll40 %byte1 = and i32 %x, 65280 ; 0x0000ff00
44 %tmp1 = lshr i32 %byte1, 8
86 %byte1 = lshr i32 %x, 8
90 %tmp1 = and i32 %byte1, 65280 ; 0x0000ff00
/external/deqp-deps/amber/samples/
Dppm.cc31 uint8_t byte1(uint32_t word) { in byte1() function
62 buffer->push_back(byte1(pixel)); // G in ConvertToPPM()
Dpng.cc35 unsigned char byte1(uint32_t word) { in byte1() function
63 data.push_back(byte1(pixel)); // G in ConvertToPNG()
/external/llvm/lib/Target/X86/Disassembler/
DX86DisassemblerDecoder.cpp454 uint8_t byte1, byte2; in readPrefixes() local
456 if (consumeByte(insn, &byte1)) { in readPrefixes()
466 if ((insn->mode == MODE_64BIT || (byte1 & 0xc0) == 0xc0) && in readPrefixes()
467 ((~byte1 & 0xc) == 0xc) && ((byte2 & 0x4) == 0x4)) { in readPrefixes()
477 insn->vectorExtensionPrefix[1] = byte1; in readPrefixes()
501 uint8_t byte1; in readPrefixes() local
503 if (lookAtByte(insn, &byte1)) { in readPrefixes()
508 if (insn->mode == MODE_64BIT || (byte1 & 0xc0) == 0xc0) { in readPrefixes()
536 uint8_t byte1; in readPrefixes() local
538 if (lookAtByte(insn, &byte1)) { in readPrefixes()
[all …]
/external/usrsctp/usrsctplib/netinet/
Dsctp_crc32.c742 uint8_t byte0, byte1, byte2, byte3; in sctp_finalize_crc32c() local
753 byte1 = (result >> 8) & 0x000000ff; in sctp_finalize_crc32c()
756 crc32c = ((byte0 << 24) | (byte1 << 16) | (byte2 << 8) | byte3); in sctp_finalize_crc32c()
/external/capstone/arch/X86/
DX86DisassemblerDecoder.c682 uint8_t byte1, byte2; in readPrefixes() local
684 if (consumeByte(insn, &byte1)) { in readPrefixes()
689 if ((insn->mode == MODE_64BIT || (byte1 & 0xc0) == 0xc0) && in readPrefixes()
690 ((~byte1 & 0xc) == 0xc)) { in readPrefixes()
706 insn->vectorExtensionPrefix[1] = byte1; in readPrefixes()
743 uint8_t byte1; in readPrefixes() local
745 if (lookAtByte(insn, &byte1)) { in readPrefixes()
750 if (insn->mode == MODE_64BIT || (byte1 & 0xc0) == 0xc0) { in readPrefixes()
783 uint8_t byte1; in readPrefixes() local
785 if (lookAtByte(insn, &byte1)) { in readPrefixes()
[all …]
/external/openscreen/cast/streaming/
Drtcp_common.cc79 const uint8_t byte1 = ConsumeField<uint8_t>(&buffer); in Parse() local
80 if (!IsRtcpPacketType(byte1)) { in Parse()
87 header.packet_type = static_cast<RtcpPacketType>(byte1); in Parse()
/external/bcc/src/cc/
Dbcc_debug.cc52 uint8_t byte1) { in adjustInstSize() argument
55 if (byte0 == 0x18 && ((isLittleEndian && (byte1 & 0xf) == 0x1) || in adjustInstSize()
56 (!isLittleEndian && (byte1 & 0xf0) == 0x10))) in adjustInstSize()

123