/external/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | Utf8.java | 179 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/libunwind/src/ia64/ |
D | unwind_decoder.h | 109 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/ |
D | utf.c | 210 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/ |
D | Utf8.java | 104 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 …]
|
D | Utf8Safe.java | 153 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/ |
D | utf8.cc | 67 unsigned char byte1 = static_cast<unsigned char>(str[0]); in ValidCharToRune() local 68 if (byte1 < 0x80) { in ValidCharToRune() 70 return byte1; in ValidCharToRune() 74 if (byte1 < 0xE0) { in ValidCharToRune() 76 return ((byte1 & 0x1F) << 6) | (byte2 & 0x3F); in ValidCharToRune() 80 if (byte1 < 0xF0) { in ValidCharToRune() 82 return ((byte1 & 0x0F) << 12) | ((byte2 & 0x3F) << 6) | (byte3 & 0x3F); in ValidCharToRune() 87 return ((byte1 & 0x07) << 18) | ((byte2 & 0x3F) << 12) | in ValidCharToRune()
|
/external/guava/android/guava/src/com/google/common/base/ |
D | Utf8.java | 140 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/ |
D | Utf8.java | 140 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/u-boot/drivers/mtd/ |
D | mw_eeprom.c | 103 u8 byte1=0; in mw_eeprom_write_word() local 111 byte1 = EEP_OPC_WRITE >> 2; in mw_eeprom_write_word() 116 byte1 = EEP_OPC_WRITE >> 1; in mw_eeprom_write_word() 121 byte1 = EEP_OPC_WRITE; in mw_eeprom_write_word() 125 byte1 = EEP_OPC_WRITE << 1; in mw_eeprom_write_word() 126 byte1 |= addr >> 8; in mw_eeprom_write_word() 130 byte1 = EEP_OPC_WRITE << 2; in mw_eeprom_write_word() 131 byte1 |= addr >> 8; in mw_eeprom_write_word() 140 ssi_tx_byte(byte1); in mw_eeprom_write_word()
|
/external/mesa3d/src/mesa/drivers/x11/ |
D | xfonts.c | 140 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/ |
D | glx_usefont.c | 142 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/mesa3d/src/glx/ |
D | xfont.c | 146 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/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/X86/ |
D | bswap_tree.ll | 28 %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
|
D | bswap_tree2.ll | 40 %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/scapy/scapy/layers/tls/ |
D | automaton.py | 107 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/ |
D | AES256SHA256Decoder.java | 46 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/ |
D | cpdf_cmap.cpp | 334 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/deqp-deps/amber/samples/ |
D | ppm.cc | 31 uint8_t byte1(uint32_t word) { in byte1() function 64 buffer->push_back(byte1(pixel)); // G in ConvertToPPM()
|
D | png.cc | 35 unsigned char byte1(uint32_t word) { in byte1() function 65 data.push_back(byte1(pixel)); // G in ConvertToPNG()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/Disassembler/ |
D | X86DisassemblerDecoder.cpp | 452 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/llvm/lib/Target/X86/Disassembler/ |
D | X86DisassemblerDecoder.cpp | 454 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/capstone/arch/X86/ |
D | X86DisassemblerDecoder.c | 682 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/ |
D | bcc_debug.cc | 52 uint8_t byte1) { in adjustInstSize() argument 55 if (byte0 == 0x18 && ((isLittleEndian && (byte1 & 0xf) == 0x1) || in adjustInstSize() 56 (!isLittleEndian && (byte1 & 0xf0) == 0x10))) in adjustInstSize()
|
/external/u-boot/drivers/ddr/marvell/a38x/ |
D | ddr3_training_db.c | 527 u8 i, byte0 = 0, byte1 = 0; in pattern_table_get_killer_word16() local 535 byte1 |= pattern_killer_pattern_table_map[index * 2 + 1][role] << i; in pattern_table_get_killer_word16() 538 return byte0 | (byte0 << 8) | (byte1 << 16) | (byte1 << 24); in pattern_table_get_killer_word16()
|
/external/pdfium/core/fpdfapi/parser/ |
D | cpdf_syntax_parser.cpp | 569 unsigned char byte1 = 0; in ReadEOLMarkers() local 572 GetCharAt(pos, byte1); in ReadEOLMarkers() 575 if (byte1 == '\r' && byte2 == '\n') in ReadEOLMarkers() 578 if (byte1 == '\r' || byte1 == '\n') in ReadEOLMarkers()
|