HomeSort by: relevance | last modified time | path
    Searched refs:Bytes (Results 1 - 25 of 170) sorted by relevancy

1 2 3 4 5 6 7

  /src/external/apache2/llvm/dist/llvm/include/llvm/Support/
Base64.h 20 template <class InputBytes> std::string encodeBase64(InputBytes const &Bytes) {
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[i] << 16) | ((unsigned char)Bytes[i + 1] << 8)
    [all...]
MD5.h 56 std::array<uint8_t, 16> Bytes;
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);
93 /// Translates the bytes in \p Res to a hex string that is
97 /// Computes the hash for a given bytes.
105 return LHS.Bytes == RHS.Bytes;
    [all...]
DataExtractor.h 20 uint8_t Bytes[3];
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[2-LoIx] << 16)
    [all...]
  /src/external/gpl3/gdb.old/dist/gdbsupport/
packed.h 57 template<typename T, size_t Bytes = sizeof (T)>
69 for (int i = (Bytes - 1); i >= 0; --i)
79 static_assert (sizeof (packed) == Bytes);
97 if (++i == Bytes)
109 gdb_byte m_bytes[Bytes];
111 T m_val : (Bytes * HOST_CHAR_BIT) ATTRIBUTE_PACKED;
124 template<typename T, size_t Bytes> \
125 bool operator OP (const std::atomic<packed<T, Bytes>> &lhs, \
126 const std::atomic<packed<T, Bytes>> &rhs) \
131 template<typename T, size_t Bytes> \
    [all...]
  /src/external/gpl3/gdb/dist/gdbsupport/
packed.h 57 template<typename T, size_t Bytes = sizeof (T)>
69 for (int i = (Bytes - 1); i >= 0; --i)
79 static_assert (sizeof (packed) == Bytes);
97 if (++i == Bytes)
109 gdb_byte m_bytes[Bytes];
111 T m_val : (Bytes * HOST_CHAR_BIT) ATTRIBUTE_PACKED;
124 template<typename T, size_t Bytes> \
125 bool operator OP (const std::atomic<packed<T, Bytes>> &lhs, \
126 const std::atomic<packed<T, Bytes>> &rhs) \
131 template<typename T, size_t Bytes> \
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Support/
circular_raw_ostream.cpp 25 unsigned Bytes =
27 memcpy(Cur, Ptr, Bytes);
28 Size -= Bytes;
29 Cur += Bytes;
  /src/external/apache2/llvm/dist/llvm/lib/Target/BPF/Disassembler/
BPFDisassembler.cpp 69 ArrayRef<uint8_t> Bytes, uint64_t Address,
140 static DecodeStatus readInstruction64(ArrayRef<uint8_t> Bytes, uint64_t Address,
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[6] << 16) | (Bytes[7] << 24)
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Target/WebAssembly/Disassembler/
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) {
77 if (Size >= Bytes.size())
79 auto V = Bytes[Size];
84 static bool nextLEB(int64_t &Val, ArrayRef<uint8_t> Bytes, uint64_t &Size,
88 Val = Signed ? decodeSLEB128(Bytes.data() + Size, &N,
89 Bytes.data() + Bytes.size(), &Error)
90 : static_cast<int64_t>(decodeULEB128(Bytes.data() + Size, &N
    [all...]
  /src/external/apache2/llvm/dist/clang/include/clang/AST/
ASTContextAllocate.h 26 void *operator new(size_t Bytes, const clang::ASTContext &C,
28 void *operator new[](size_t Bytes, const clang::ASTContext &C,
  /src/external/apache2/llvm/dist/llvm/lib/DebugInfo/GSYM/
FileWriter.cpp 21 uint8_t Bytes[32];
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);
  /src/external/apache2/llvm/dist/llvm/lib/Target/ARC/Disassembler/
ARCDisassembler.cpp 44 ArrayRef<uint8_t> Bytes, uint64_t Address,
50 static bool readInstruction32(ArrayRef<uint8_t> Bytes, uint64_t Address,
55 (Bytes[0] << 16) | (Bytes[1] << 24) | (Bytes[2] << 0) | (Bytes[3] << 8);
59 static bool readInstruction64(ArrayRef<uint8_t> Bytes, uint64_t Address,
62 Insn = ((uint64_t)Bytes[0] << 16) | ((uint64_t)Bytes[1] << 24) |
63 ((uint64_t)Bytes[2] << 0) | ((uint64_t)Bytes[3] << 8)
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Target/Lanai/Disassembler/
LanaiDisassembler.h 30 getInstruction(MCInst &Instr, uint64_t &Size, ArrayRef<uint8_t> Bytes,
LanaiDisassembler.cpp 75 static DecodeStatus readInstruction32(ArrayRef<uint8_t> Bytes, uint64_t &Size,
77 // We want to read exactly 4 bytes of data.
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);
  /src/external/apache2/llvm/dist/llvm/lib/DebugInfo/CodeView/
DebugChecksumsSubsection.cpp 29 uint8_t ChecksumSize; // Number of bytes of checksum.
31 // Checksum bytes follow.
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);
  /src/sys/external/bsd/acpica/dist/utilities/
utmisc.c 129 * RETURN: UINT32 integer with bytes swapped
131 * DESCRIPTION: Convert a 32-bit value to big-endian (swap the bytes)
142 UINT8 Bytes[4];
147 UINT8 Bytes[4];
156 Out.Bytes[0] = In.Bytes[3];
157 Out.Bytes[1] = In.Bytes[2];
158 Out.Bytes[2] = In.Bytes[1]
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Target/MSP430/Disassembler/
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.data() + Words * 2
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Target/AArch64/Disassembler/
AArch64Disassembler.h 27 getInstruction(MCInst &Instr, uint64_t &Size, ArrayRef<uint8_t> Bytes,
  /src/external/apache2/llvm/dist/llvm/lib/XRay/
FDRTraceWriter.cpp 49 auto Bytes = IndexedWriter<0>::write(OS, T);
50 assert(Bytes <= 15 && "Must only ever write at most 16 byte metadata!");
52 for (; Bytes < 15; ++Bytes)
67 // appear and that we expect, instead of blasting bytes of the struct through.
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())
    [all...]
  /src/external/apache2/llvm/dist/llvm/tools/llvm-mc/
Disassembler.cpp 9 // This class implements the disassembler of strings of bytes written in
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]),
60 Size = 1; // skip illegible bytes
65 SM.PrintMessage(SMLoc::getFromPointer(Bytes.second[Index]),
192 // It's a real token, get the bytes and emit them
  /src/external/apache2/llvm/dist/llvm/tools/llvm-ml/
Disassembler.cpp 9 // This class implements the disassembler of strings of bytes written in
33 static bool PrintInsts(const MCDisassembler &DisAsm, const ByteArrayTy &Bytes,
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]),
56 Size = 1; // skip illegible bytes
61 SM.PrintMessage(SMLoc::getFromPointer(Bytes.second[Index]),
188 // It's a real token, get the bytes and emit them
  /src/external/apache2/llvm/dist/llvm/lib/Target/SystemZ/
SystemZSelectionDAGInfo.cpp 21 // a block operation of Size bytes with source address Src and destination
35 // much point using a loop for 5 * 256 bytes or fewer. Anything in
61 // Handle a memset of 1, 2, 4 or 8 bytes with the operands given by
85 uint64_t Bytes = CSize->getZExtValue();
86 if (Bytes == 0)
95 Bytes <= 16 && countPopulation(Bytes) <= 2 :
96 Bytes <= 4) {
97 unsigned Size1 = Bytes == 16 ? 8 : 1 << findLastSet(Bytes);
    [all...]
  /src/sys/external/bsd/compiler_rt/dist/lib/fuzzer/
FuzzerShmem.h 34 size_t WriteByteArray(const uint8_t *Bytes, size_t N) {
37 memcpy(GetData() + sizeof(N), Bytes, N);
  /src/external/apache2/llvm/dist/llvm/lib/Target/AVR/
AVRMachineFunctionInfo.h 41 /// stack frame in bytes.
78 void setCalleeSavedFrameSize(unsigned Bytes) { CalleeSavedFrameSize = Bytes; }
  /src/external/apache2/llvm/dist/llvm/lib/Target/AVR/Disassembler/
AVRDisassembler.cpp 42 ArrayRef<uint8_t> Bytes, uint64_t Address,
234 static DecodeStatus readInstruction16(ArrayRef<uint8_t> Bytes, uint64_t Address,
236 if (Bytes.size() < 2) {
242 Insn = (Bytes[0] << 0) | (Bytes[1] << 8);
247 static DecodeStatus readInstruction32(ArrayRef<uint8_t> Bytes, uint64_t Address,
250 if (Bytes.size() < 4) {
256 Insn = (Bytes[0] << 16) | (Bytes[1] << 24) | (Bytes[2] << 0) | (Bytes[3] << 8)
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Support/Windows/
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 / sizeof(HMODULE))
    [all...]

Completed in 34 milliseconds

1 2 3 4 5 6 7