Home
last modified time | relevance | path

Searched refs:startBit (Results 1 – 8 of 8) sorted by relevance

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DEndian.h86 inline value_type readAtBitAlignment(const void *memory, uint64_t startBit) { in readAtBitAlignment() argument
87 assert(startBit < 8); in readAtBitAlignment()
88 if (startBit == 0) in readAtBitAlignment()
101 make_unsigned_t<value_type> lowerVal = val[0] >> startBit; in readAtBitAlignment()
104 (sizeof(value_type) * 8) - startBit; in readAtBitAlignment()
109 val[1] & (((make_unsigned_t<value_type>)1 << startBit) - 1); in readAtBitAlignment()
121 uint64_t startBit) { in writeAtBitAlignment() argument
122 assert(startBit < 8); in writeAtBitAlignment()
123 if (startBit == 0) in writeAtBitAlignment()
137 val[0] &= ((make_unsigned_t<value_type>)1 << startBit) - 1; in writeAtBitAlignment()
[all …]
/third_party/lwip/src/netif/ppp/
Dpppcrypt.c41 static u_char pppcrypt_get_7bits(u_char *input, int startBit) { in pppcrypt_get_7bits() argument
44 word = (unsigned)input[startBit / 8] << 8; in pppcrypt_get_7bits()
45 word |= (unsigned)input[startBit / 8 + 1]; in pppcrypt_get_7bits()
47 word >>= 15 - (startBit % 8 + 7); in pppcrypt_get_7bits()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DEndian.h119 inline value_type readAtBitAlignment(const void *memory, uint64_t startBit) { in readAtBitAlignment() argument
120 assert(startBit < 8); in readAtBitAlignment()
121 if (startBit == 0) in readAtBitAlignment()
134 make_unsigned_t<value_type> lowerVal = val[0] >> startBit; in readAtBitAlignment()
137 (sizeof(value_type) * 8) - startBit; in readAtBitAlignment()
142 val[1] & (((make_unsigned_t<value_type>)1 << startBit) - 1); in readAtBitAlignment()
154 uint64_t startBit) { in writeAtBitAlignment() argument
155 assert(startBit < 8); in writeAtBitAlignment()
156 if (startBit == 0) in writeAtBitAlignment()
170 val[0] &= ((make_unsigned_t<value_type>)1 << startBit) - 1; in writeAtBitAlignment()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/MCTargetDesc/
DHexagonShuffler.cpp173 static unsigned makeAllBits(unsigned startBit, unsigned Lanes) in makeAllBits() argument
176 startBit = (startBit << 1) | startBit; in makeAllBits()
177 return startBit; in makeAllBits()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/configs/common/lib/Target/PowerPC/
DPPCGenDisassemblerTables.inc34 static InsnType fieldFromInstruction(InsnType insn, unsigned startBit,
36 assert(startBit + numBits <= 64 && "Cannot support >64-bit extractions!");
37 assert(startBit + numBits <= (sizeof(InsnType) * 8) &&
43 fieldMask = (((InsnType)1 << numBits) - 1) << startBit;
44 return (insn & fieldMask) >> startBit;
48 static InsnType fieldFromInstruction(InsnType insn, unsigned startBit,
50 assert(startBit + numBits <= InsnType::max_size_in_bits && "Instruction field out of bounds!");
52 return (insn >> startBit) & fieldMask;
56 static InsnType fieldFromInstruction(InsnType insn, unsigned startBit,
58 return fieldFromInstruction(insn, startBit, numBits, std::is_integral<InsnType>());
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/configs/common/lib/Target/Mips/
DMipsGenDisassemblerTables.inc34 static InsnType fieldFromInstruction(InsnType insn, unsigned startBit,
36 assert(startBit + numBits <= 64 && "Cannot support >64-bit extractions!");
37 assert(startBit + numBits <= (sizeof(InsnType) * 8) &&
43 fieldMask = (((InsnType)1 << numBits) - 1) << startBit;
44 return (insn & fieldMask) >> startBit;
48 static InsnType fieldFromInstruction(InsnType insn, unsigned startBit,
50 assert(startBit + numBits <= InsnType::max_size_in_bits && "Instruction field out of bounds!");
52 return (insn >> startBit) & fieldMask;
56 static InsnType fieldFromInstruction(InsnType insn, unsigned startBit,
58 return fieldFromInstruction(insn, startBit, numBits, std::is_integral<InsnType>());
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/configs/common/lib/Target/ARM/
DARMGenDisassemblerTables.inc34 static InsnType fieldFromInstruction(InsnType insn, unsigned startBit,
36 assert(startBit + numBits <= 64 && "Cannot support >64-bit extractions!");
37 assert(startBit + numBits <= (sizeof(InsnType) * 8) &&
43 fieldMask = (((InsnType)1 << numBits) - 1) << startBit;
44 return (insn & fieldMask) >> startBit;
48 static InsnType fieldFromInstruction(InsnType insn, unsigned startBit,
50 assert(startBit + numBits <= InsnType::max_size_in_bits && "Instruction field out of bounds!");
52 return (insn >> startBit) & fieldMask;
56 static InsnType fieldFromInstruction(InsnType insn, unsigned startBit,
58 return fieldFromInstruction(insn, startBit, numBits, std::is_integral<InsnType>());
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/configs/common/lib/Target/AArch64/
DAArch64GenDisassemblerTables.inc34 static InsnType fieldFromInstruction(InsnType insn, unsigned startBit,
36 assert(startBit + numBits <= 64 && "Cannot support >64-bit extractions!");
37 assert(startBit + numBits <= (sizeof(InsnType) * 8) &&
43 fieldMask = (((InsnType)1 << numBits) - 1) << startBit;
44 return (insn & fieldMask) >> startBit;
48 static InsnType fieldFromInstruction(InsnType insn, unsigned startBit,
50 assert(startBit + numBits <= InsnType::max_size_in_bits && "Instruction field out of bounds!");
52 return (insn >> startBit) & fieldMask;
56 static InsnType fieldFromInstruction(InsnType insn, unsigned startBit,
58 return fieldFromInstruction(insn, startBit, numBits, std::is_integral<InsnType>());