/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/Support/ |
H A D | Base64.h | 20 template <class InputBytes> std::string encodeBase64(InputBytes const &Bytes) { argument 25 Buffer.resize(((Bytes.size() + 2) / 3) * 4); 28 for (size_t n = Bytes.size() / 3 * 3; i < n; i += 3, j += 4) { 29 uint32_t x = ((unsigned char)Bytes[i] << 16) | 30 ((unsigned char)Bytes[i + 1] << 8) | 31 (unsigned char)Bytes[i + 2]; 37 if (i + 1 == Bytes.size()) { 38 uint32_t x = ((unsigned char)Bytes[i] << 16); 43 } else if (i + 2 == Bytes.size()) { 45 ((unsigned char)Bytes[ [all...] |
H A D | MD5.h | 56 std::array<uint8_t, 16> Bytes; member in struct:llvm::MD5::MD5Result 58 operator std::array<uint8_t, 16>() const { return Bytes; } 60 const uint8_t &operator[](size_t I) const { return Bytes[I]; } 61 uint8_t &operator[](size_t I) { return Bytes[I]; } 69 return endian::read<uint64_t, little, unaligned>(Bytes.data()); 74 return endian::read<uint64_t, little, unaligned>(Bytes.data() + 8); 105 return LHS.Bytes == RHS.Bytes;
|
H A D | DataExtractor.h | 20 uint8_t Bytes[3]; member in struct:llvm::Uint24 22 Bytes[0] = Bytes[1] = Bytes[2] = U; 25 Bytes[0] = U0; Bytes[1] = U1; Bytes[2] = U2; 29 return Bytes[LoIx] + (Bytes[1] << 8) + (Bytes[ [all...] |
H A D | BinaryStreamReader.h | 79 ArrayRef<uint8_t> Bytes; local 80 if (auto EC = readBytes(Bytes, sizeof(T))) 84 Bytes.data(), Stream.getEndian()); 188 ArrayRef<uint8_t> Bytes; local 198 if (auto EC = readBytes(Bytes, NumElements * sizeof(T))) 201 assert(isAddrAligned(Align::Of<T>(), Bytes.data()) && 204 Array = ArrayRef<T>(reinterpret_cast<const T *>(Bytes.data()), NumElements);
|
/netbsd-current/external/gpl3/gdb/dist/gdbsupport/ |
H A D | packed.h | 57 template<typename T, size_t Bytes = sizeof (T)> 69 for (int i = (Bytes - 1); i >= 0; --i) 79 gdb_static_assert (sizeof (packed) == Bytes); 99 if (++i == Bytes) 111 gdb_byte m_bytes[Bytes]; 113 T m_val : (Bytes * HOST_CHAR_BIT) ATTRIBUTE_PACKED; 126 template<typename T, size_t Bytes> \ 127 bool operator OP (const std::atomic<packed<T, Bytes>> &lhs, \ 128 const std::atomic<packed<T, Bytes>> &rhs) \ 133 template<typename T, size_t Bytes> \ [all...] |
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Support/ |
H A D | circular_raw_ostream.cpp | 25 unsigned Bytes = local 27 memcpy(Cur, Ptr, Bytes); 28 Size -= Bytes; 29 Cur += Bytes;
|
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Target/BPF/Disassembler/ |
H A D | BPFDisassembler.cpp | 69 ArrayRef<uint8_t> Bytes, uint64_t Address, 140 static DecodeStatus readInstruction64(ArrayRef<uint8_t> Bytes, uint64_t Address, argument 145 if (Bytes.size() < 8) { 152 Hi = (Bytes[0] << 24) | (Bytes[1] << 16) | (Bytes[2] << 0) | (Bytes[3] << 8); 153 Lo = (Bytes[4] << 0) | (Bytes[5] << 8) | (Bytes[ 164 getInstruction(MCInst &Instr, uint64_t &Size, ArrayRef<uint8_t> Bytes, uint64_t Address, raw_ostream &CStream) const argument [all...] |
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Target/WebAssembly/Disassembler/ |
H A D | WebAssemblyDisassembler.cpp | 46 ArrayRef<uint8_t> Bytes, uint64_t Address, 49 ArrayRef<uint8_t> Bytes, 76 static int nextByte(ArrayRef<uint8_t> Bytes, uint64_t &Size) { argument 77 if (Size >= Bytes.size()) 79 auto V = Bytes[Size]; 84 static bool nextLEB(int64_t &Val, ArrayRef<uint8_t> Bytes, uint64_t &Size, argument 88 Val = Signed ? decodeSLEB128(Bytes.data() + Size, &N, 89 Bytes.data() + Bytes.size(), &Error) 90 : static_cast<int64_t>(decodeULEB128(Bytes 99 parseLEBImmediate(MCInst &MI, uint64_t &Size, ArrayRef<uint8_t> Bytes, bool Signed) argument 109 parseImmediate(MCInst &MI, uint64_t &Size, ArrayRef<uint8_t> Bytes) argument 124 onSymbolStart( SymbolInfoTy &Symbol, uint64_t &Size, ArrayRef<uint8_t> Bytes, uint64_t Address, raw_ostream &CStream) const argument 159 getInstruction( MCInst &MI, uint64_t &Size, ArrayRef<uint8_t> Bytes, uint64_t , raw_ostream &CS) const argument [all...] |
/netbsd-current/external/apache2/llvm/dist/llvm/lib/DebugInfo/GSYM/ |
H A D | FileWriter.cpp | 21 uint8_t Bytes[32]; local 22 auto Length = encodeSLEB128(S, Bytes); 23 assert(Length < sizeof(Bytes)); 24 OS.write(reinterpret_cast<const char *>(Bytes), Length); 28 uint8_t Bytes[32]; 29 auto Length = encodeULEB128(U, Bytes); 30 assert(Length < sizeof(Bytes)); 31 OS.write(reinterpret_cast<const char *>(Bytes), Length);
|
/netbsd-current/external/apache2/llvm/dist/clang/include/clang/AST/ |
H A D | ASTContextAllocate.h | 26 void *operator new(size_t Bytes, const clang::ASTContext &C, 28 void *operator new[](size_t Bytes, const clang::ASTContext &C,
|
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Target/ARC/Disassembler/ |
H A D | ARCDisassembler.cpp | 44 ArrayRef<uint8_t> Bytes, uint64_t Address, 50 static bool readInstruction32(ArrayRef<uint8_t> Bytes, uint64_t Address, argument 55 (Bytes[0] << 16) | (Bytes[1] << 24) | (Bytes[2] << 0) | (Bytes[3] << 8); 59 static bool readInstruction64(ArrayRef<uint8_t> Bytes, uint64_t Address, argument 62 Insn = ((uint64_t)Bytes[0] << 16) | ((uint64_t)Bytes[1] << 24) | 63 ((uint64_t)Bytes[ 69 readInstruction48(ArrayRef<uint8_t> Bytes, uint64_t Address, uint64_t &Size, uint64_t &Insn) argument 78 readInstruction16(ArrayRef<uint8_t> Bytes, uint64_t Address, uint64_t &Size, uint32_t &Insn) argument [all...] |
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Target/Lanai/Disassembler/ |
H A D | LanaiDisassembler.h | 30 getInstruction(MCInst &Instr, uint64_t &Size, ArrayRef<uint8_t> Bytes,
|
H A D | LanaiDisassembler.cpp | 75 static DecodeStatus readInstruction32(ArrayRef<uint8_t> Bytes, uint64_t &Size, argument 78 if (Bytes.size() < 4) { 85 (Bytes[0] << 24) | (Bytes[1] << 16) | (Bytes[2] << 8) | (Bytes[3] << 0); 133 ArrayRef<uint8_t> Bytes, uint64_t Address, 137 DecodeStatus Result = readInstruction32(Bytes, Size, Insn); 132 getInstruction(MCInst &Instr, uint64_t &Size, ArrayRef<uint8_t> Bytes, uint64_t Address, raw_ostream & ) const argument
|
/netbsd-current/external/apache2/llvm/dist/llvm/lib/DebugInfo/CodeView/ |
H A D | DebugChecksumsSubsection.cpp | 69 ArrayRef<uint8_t> Bytes) { 71 if (!Bytes.empty()) { 72 uint8_t *Copy = Storage.Allocate<uint8_t>(Bytes.size()); 73 ::memcpy(Copy, Bytes.data(), Bytes.size()); 74 Entry.Checksum = makeArrayRef(Copy, Bytes.size()); 86 uint32_t Len = alignTo(sizeof(FileChecksumEntryHeader) + Bytes.size(), 4); 67 addChecksum(StringRef FileName, FileChecksumKind Kind, ArrayRef<uint8_t> Bytes) argument
|
/netbsd-current/sys/external/bsd/acpica/dist/utilities/ |
H A D | utmisc.c | 142 UINT8 Bytes[4]; member in union:__anon81 147 UINT8 Bytes[4]; member in union:__anon82 156 Out.Bytes[0] = In.Bytes[3]; 157 Out.Bytes[1] = In.Bytes[2]; 158 Out.Bytes[2] = In.Bytes[1]; 159 Out.Bytes[3] = In.Bytes[ [all...] |
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Target/MSP430/Disassembler/ |
H A D | MSP430Disassembler.cpp | 34 ArrayRef<uint8_t> Bytes, uint64_t Address, 38 ArrayRef<uint8_t> Bytes, uint64_t Address, 42 ArrayRef<uint8_t> Bytes, uint64_t Address, 50 ArrayRef<uint8_t> Bytes, uint64_t Address, 230 ArrayRef<uint8_t> Bytes, 233 uint64_t Insn = support::endian::read16le(Bytes.data()); 247 if (Bytes.size() < (Words + 1) * 2) { 251 Insn |= (uint64_t)support::endian::read16le(Bytes.data() + 2) << 16; 261 if (Bytes.size() < (Words + 1) * 2) { 265 Insn |= (uint64_t)support::endian::read16le(Bytes [all...] |
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Target/AArch64/Disassembler/ |
H A D | AArch64Disassembler.h | 27 getInstruction(MCInst &Instr, uint64_t &Size, ArrayRef<uint8_t> Bytes,
|
/netbsd-current/external/apache2/llvm/dist/llvm/lib/XRay/ |
H A D | FDRTraceWriter.cpp | 49 auto Bytes = IndexedWriter<0>::write(OS, T); local 50 assert(Bytes <= 15 && "Must only ever write at most 16 byte metadata!"); 52 for (; Bytes < 15; ++Bytes) 99 ArrayRef<char> Bytes(D.data(), D.size()); 100 OS.write(Bytes); 108 ArrayRef<char> Bytes(D.data(), D.size()); 109 OS.write(Bytes); 117 ArrayRef<char> Bytes(D.data(), D.size()); 118 OS.write(Bytes); [all...] |
/netbsd-current/external/apache2/llvm/dist/llvm/tools/llvm-mc/ |
H A D | Disassembler.cpp | 35 const ByteArrayTy &Bytes, 39 ArrayRef<uint8_t> Data(Bytes.first.data(), Bytes.first.size()); 45 for (Index = 0; Index < Bytes.first.size(); Index += Size) { 52 SM.PrintMessage(SMLoc::getFromPointer(Bytes.second[Index]), 65 SM.PrintMessage(SMLoc::getFromPointer(Bytes.second[Index]), 34 PrintInsts(const MCDisassembler &DisAsm, const ByteArrayTy &Bytes, SourceMgr &SM, raw_ostream &Out, MCStreamer &Streamer, bool InAtomicBlock, const MCSubtargetInfo &STI) argument
|
/netbsd-current/external/apache2/llvm/dist/llvm/tools/llvm-ml/ |
H A D | Disassembler.cpp | 33 static bool PrintInsts(const MCDisassembler &DisAsm, const ByteArrayTy &Bytes, argument 36 ArrayRef<uint8_t> Data(Bytes.first.data(), Bytes.first.size()); 42 for (Index = 0; Index < Bytes.first.size(); Index += Size) { 49 SM.PrintMessage(SMLoc::getFromPointer(Bytes.second[Index]), 61 SM.PrintMessage(SMLoc::getFromPointer(Bytes.second[Index]),
|
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Target/SystemZ/ |
H A D | SystemZSelectionDAGInfo.cpp | 85 uint64_t Bytes = CSize->getZExtValue(); local 86 if (Bytes == 0) 95 Bytes <= 16 && countPopulation(Bytes) <= 2 : 96 Bytes <= 4) { 97 unsigned Size1 = Bytes == 16 ? 8 : 1 << findLastSet(Bytes); 98 unsigned Size2 = Bytes - Size1; 113 if (Bytes <= 2) { 116 if (Bytes 185 uint64_t Bytes = CSize->getZExtValue(); local [all...] |
/netbsd-current/sys/external/bsd/compiler_rt/dist/lib/fuzzer/ |
H A D | FuzzerShmem.h | 34 size_t WriteByteArray(const uint8_t *Bytes, size_t N) { argument 37 memcpy(GetData() + sizeof(N), Bytes, N); local
|
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Target/AVR/ |
H A D | AVRMachineFunctionInfo.h | 78 void setCalleeSavedFrameSize(unsigned Bytes) { CalleeSavedFrameSize = Bytes; } argument
|
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Target/AVR/Disassembler/ |
H A D | AVRDisassembler.cpp | 42 ArrayRef<uint8_t> Bytes, uint64_t Address, 234 static DecodeStatus readInstruction16(ArrayRef<uint8_t> Bytes, uint64_t Address, argument 236 if (Bytes.size() < 2) { 242 Insn = (Bytes[0] << 0) | (Bytes[1] << 8); 247 static DecodeStatus readInstruction32(ArrayRef<uint8_t> Bytes, uint64_t Address, argument 250 if (Bytes.size() < 4) { 256 Insn = (Bytes[0] << 16) | (Bytes[1] << 24) | (Bytes[ 270 getInstruction(MCInst &Instr, uint64_t &Size, ArrayRef<uint8_t> Bytes, uint64_t Address, raw_ostream &CStream) const argument [all...] |
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Support/Windows/ |
H A D | DynamicLibrary.inc | 71 static bool GetProcessModules(HANDLE H, DWORD &Bytes, HMODULE *Data = nullptr) { 76 !EnumProcessModulesEx(H, Data, Bytes, &Bytes, LIST_MODULES_64BIT) 78 !EnumProcessModules(H, Data, Bytes, &Bytes) 113 DWORD Bytes = 0; 115 if (!GetProcessModules(Self, Bytes)) 124 assert(Bytes && ((Bytes % sizeof(HMODULE)) == 0) && 126 Handles.resize(Bytes / sizeo [all...] |