Home
last modified time | relevance | path

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

12

/external/protobuf/java/core/src/main/java/com/google/protobuf/
DUtf8.java193 private static int incompleteStateFor(int byte1) { in incompleteStateFor() argument
194 return (byte1 > (byte) 0xF4) ? in incompleteStateFor()
195 MALFORMED : byte1; in incompleteStateFor()
198 private static int incompleteStateFor(int byte1, int byte2) { in incompleteStateFor() argument
199 return (byte1 > (byte) 0xF4 || in incompleteStateFor()
201 MALFORMED : byte1 ^ (byte2 << 8); in incompleteStateFor()
204 private static int incompleteStateFor(int byte1, int byte2, int byte3) { in incompleteStateFor() argument
205 return (byte1 > (byte) 0xF4 || in incompleteStateFor()
208 MALFORMED : byte1 ^ (byte2 << 8) ^ (byte3 << 16); in incompleteStateFor()
212 int byte1 = bytes[index - 1]; in incompleteStateFor() local
[all …]
/external/libunwind/src/ia64/
Dunwind_decoder.h109 unsigned char byte1, abreg; in unw_decode_x1() local
112 byte1 = *dp++; in unw_decode_x1()
115 abreg = (byte1 & 0x7f); in unw_decode_x1()
116 if (byte1 & 0x80) in unw_decode_x1()
126 unsigned char byte1, byte2, abreg, x, ytreg; in unw_decode_x2() local
129 byte1 = *dp++; byte2 = *dp++; in unw_decode_x2()
131 abreg = (byte1 & 0x7f); in unw_decode_x2()
133 x = (byte1 >> 7) & 1; in unw_decode_x2()
134 if ((byte1 & 0x80) == 0 && ytreg == 0) in unw_decode_x2()
144 unsigned char byte1, byte2, abreg, qp; in unw_decode_x3() local
[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()
117 resultArr[resultPos] = (char) (((byte1 & 0x1F) << 6) | trailingByteValue(byte2)); in handleTwoBytes()
121 byte byte1, byte byte2, byte byte3, char[] resultArr, int resultPos) in handleThreeBytes() argument
125 || (byte1 == (byte) 0xE0 && byte2 < (byte) 0xA0) in handleThreeBytes()
127 || (byte1 == (byte) 0xED && byte2 >= (byte) 0xA0) in handleThreeBytes()
132 … (((byte1 & 0x0F) << 12) | (trailingByteValue(byte2) << 6) | trailingByteValue(byte3)); in handleThreeBytes()
136 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/guava/guava/src/com/google/common/base/
DUtf8.java139 int byte1; in isWellFormedSlowPath() local
146 } while ((byte1 = bytes[index++]) >= 0); in isWellFormedSlowPath()
148 if (byte1 < (byte) 0xE0) { in isWellFormedSlowPath()
155 if (byte1 < (byte) 0xC2 || bytes[index++] > (byte) 0xBF) { in isWellFormedSlowPath()
158 } else if (byte1 < (byte) 0xF0) { in isWellFormedSlowPath()
166 || (byte1 == (byte) 0xE0 && byte2 < (byte) 0xA0) in isWellFormedSlowPath()
168 || (byte1 == (byte) 0xED && (byte) 0xA0 <= byte2) in isWellFormedSlowPath()
184 || (((byte1 << 28) + (byte2 - (byte) 0x90)) >> 30) != 0 in isWellFormedSlowPath()
/external/u-boot/drivers/mtd/
Dmw_eeprom.c102 u8 byte1=0; in mw_eeprom_write_word() local
110 byte1 = EEP_OPC_WRITE >> 2; in mw_eeprom_write_word()
115 byte1 = EEP_OPC_WRITE >> 1; in mw_eeprom_write_word()
120 byte1 = EEP_OPC_WRITE; in mw_eeprom_write_word()
124 byte1 = EEP_OPC_WRITE << 1; in mw_eeprom_write_word()
125 byte1 |= addr >> 8; in mw_eeprom_write_word()
129 byte1 = EEP_OPC_WRITE << 2; in mw_eeprom_write_word()
130 byte1 |= addr >> 8; in mw_eeprom_write_word()
139 ssi_tx_byte(byte1); in mw_eeprom_write_word()
/external/libtextclassifier/utils/utf8/
Dunicodetext.cc278 unsigned char byte1 = static_cast<unsigned char>(it_[0]); in operator *() local
279 if (byte1 < 0x80) return byte1; in operator *()
282 if (byte1 < 0xE0) return ((byte1 & 0x1F) << 6) | (byte2 & 0x3F); in operator *()
285 if (byte1 < 0xF0) { in operator *()
286 return ((byte1 & 0x0F) << 12) | ((byte2 & 0x3F) << 6) | (byte3 & 0x3F); in operator *()
290 return ((byte1 & 0x07) << 18) | ((byte2 & 0x3F) << 12) | in operator *()
/external/mesa3d/src/gallium/state_trackers/glx/xlib/
Dglx_usefont.c141 char2b.byte1 = (c >> 8) & 0xff; in fill_bitmap()
168 unsigned int byte1 = 0, byte2 = 0; in isvalid() local
182 byte1 = which >> 8; in isvalid()
185 (fs->min_byte1 > byte1) || (fs->max_byte1 < byte1)) in isvalid()
197 i = ((byte1 - fs->min_byte1) * pages) + in isvalid()
/external/mesa3d/src/mesa/drivers/x11/
Dxfonts.c141 char2b.byte1 = (c >> 8) & 0xff; in fill_bitmap()
168 unsigned int byte1 = 0, byte2 = 0; in isvalid() local
182 byte1 = which >> 8; in isvalid()
185 (fs->min_byte1 > byte1) || (fs->max_byte1 < byte1)) in isvalid()
197 i = ((byte1 - fs->min_byte1) * pages) + in isvalid()
/external/swiftshader/third_party/llvm-7.0/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/pdfium/core/fpdfapi/font/
Dcpdf_cmap.cpp349 uint8_t byte1 = pBytes[offset++]; in GetNextChar() local
350 return 256 * byte1 + pBytes[offset++]; in GetNextChar()
353 uint8_t byte1 = pBytes[offset++]; in GetNextChar() local
354 if (!m_MixedTwoByteLeadingBytes[byte1]) in GetNextChar()
355 return byte1; in GetNextChar()
356 return 256 * byte1 + pBytes[offset++]; in GetNextChar()
/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/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/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/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/Disassembler/
DX86DisassemblerDecoder.cpp452 uint8_t byte1, byte2; in readPrefixes() local
454 if (consumeByte(insn, &byte1)) { in readPrefixes()
464 if ((insn->mode == MODE_64BIT || (byte1 & 0xc0) == 0xc0) && in readPrefixes()
465 ((~byte1 & 0xc) == 0xc) && ((byte2 & 0x4) == 0x4)) { in readPrefixes()
474 insn->vectorExtensionPrefix[1] = byte1; in readPrefixes()
498 uint8_t byte1; in readPrefixes() local
500 if (lookAtByte(insn, &byte1)) { in readPrefixes()
505 if (insn->mode == MODE_64BIT || (byte1 & 0xc0) == 0xc0) in readPrefixes()
529 uint8_t byte1; in readPrefixes() local
531 if (lookAtByte(insn, &byte1)) { in readPrefixes()
[all …]
/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()
737 uint8_t byte1; in readPrefixes() local
739 if (lookAtByte(insn, &byte1)) { in readPrefixes()
744 if (insn->mode == MODE_64BIT || (byte1 & 0xc0) == 0xc0) { in readPrefixes()
770 uint8_t byte1; in readPrefixes() local
772 if (lookAtByte(insn, &byte1)) { in readPrefixes()
[all …]
/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()
Dbcc_debug.h41 void adjustInstSize(uint64_t &Size, uint8_t byte0, uint8_t byte1);
/external/u-boot/drivers/ddr/marvell/a38x/
Dddr3_training_db.c473 u8 i, byte0 = 0, byte1 = 0; in pattern_table_get_killer_word16() local
481 byte1 |= pattern_killer_pattern_table_map[index * 2 + 1][role] << i; in pattern_table_get_killer_word16()
484 return byte0 | (byte0 << 8) | (byte1 << 16) | (byte1 << 24); in pattern_table_get_killer_word16()
/external/pdfium/core/fpdfapi/parser/
Dcpdf_syntax_parser.cpp513 unsigned char byte1 = 0; in ReadEOLMarkers() local
516 GetCharAt(pos, byte1); in ReadEOLMarkers()
519 if (byte1 == '\r' && byte2 == '\n') in ReadEOLMarkers()
522 if (byte1 == '\r' || byte1 == '\n') in ReadEOLMarkers()
/external/swiftshader/third_party/LLVM/lib/Target/X86/Disassembler/
DX86DisassemblerDecoder.c387 uint8_t byte1; in readPrefixes() local
389 if (lookAtByte(insn, &byte1)) { in readPrefixes()
394 if (insn->mode == MODE_64BIT || (byte1 & 0xc0) == 0xc0) { in readPrefixes()
431 uint8_t byte1; in readPrefixes() local
433 if (lookAtByte(insn, &byte1)) { in readPrefixes()
438 if (insn->mode == MODE_64BIT || (byte1 & 0xc0) == 0xc0) { in readPrefixes()
/external/bcc/src/cc/includes/
Dbcc_debug.h41 void adjustInstSize(uint64_t &Size, uint8_t byte0, uint8_t byte1);

12