Searched refs:Bytes (Results 1 - 25 of 167) sorted by relevance

1234567

/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/Support/
H A DBase64.h20 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 DMD5.h56 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 DDataExtractor.h20 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 DBinaryStreamReader.h79 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 Dpacked.h57 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 Dcircular_raw_ostream.cpp25 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 DBPFDisassembler.cpp69 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 DWebAssemblyDisassembler.cpp46 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 DFileWriter.cpp21 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 DASTContextAllocate.h26 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 DARCDisassembler.cpp44 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 DLanaiDisassembler.h30 getInstruction(MCInst &Instr, uint64_t &Size, ArrayRef<uint8_t> Bytes,
H A DLanaiDisassembler.cpp75 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 DDebugChecksumsSubsection.cpp69 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 Dutmisc.c142 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 DMSP430Disassembler.cpp34 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 DAArch64Disassembler.h27 getInstruction(MCInst &Instr, uint64_t &Size, ArrayRef<uint8_t> Bytes,
/netbsd-current/external/apache2/llvm/dist/llvm/lib/XRay/
H A DFDRTraceWriter.cpp49 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 DDisassembler.cpp35 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 DDisassembler.cpp33 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 DSystemZSelectionDAGInfo.cpp85 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 DFuzzerShmem.h34 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 DAVRMachineFunctionInfo.h78 void setCalleeSavedFrameSize(unsigned Bytes) { CalleeSavedFrameSize = Bytes; } argument
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Target/AVR/Disassembler/
H A DAVRDisassembler.cpp42 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 DDynamicLibrary.inc71 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...]

Completed in 424 milliseconds

1234567