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

123

/external/guava/guava-tests/test/com/google/common/primitives/
H A DBytesTest.java32 * Unit test for {@link Bytes}.
48 assertEquals(((Byte) value).hashCode(), Bytes.hashCode(value));
53 assertFalse(Bytes.contains(EMPTY, (byte) 1));
54 assertFalse(Bytes.contains(ARRAY1, (byte) 2));
55 assertFalse(Bytes.contains(ARRAY234, (byte) 1));
56 assertTrue(Bytes.contains(new byte[] {(byte) -1}, (byte) -1));
57 assertTrue(Bytes.contains(ARRAY234, (byte) 2));
58 assertTrue(Bytes.contains(ARRAY234, (byte) 3));
59 assertTrue(Bytes.contains(ARRAY234, (byte) 4));
63 assertEquals(-1, Bytes
[all...]
/external/llvm/lib/Support/
H A Dcircular_raw_ostream.cpp26 unsigned Bytes = local
28 memcpy(Cur, Ptr, Bytes);
29 Size -= Bytes;
30 Cur += Bytes;
H A DStreamableMemoryObject.cpp102 *ptr = Bytes[address + BytesSkipped];
111 memcpy(buf, &Bytes[address + BytesSkipped], size);
125 Bytes.reserve(size);
136 Bytes(kChunkSize), Streamer(streamer), BytesRead(0), BytesSkipped(0),
138 BytesRead = streamer->GetBytes(&Bytes[0], kChunkSize);
/external/llvm/tools/llvm-objdump/
H A Dllvm-objdump.h29 StringRef Bytes; member in class:llvm::StringRefMemoryObject
31 StringRefMemoryObject(StringRef bytes) : Bytes(bytes) {}
34 uint64_t getExtent() const { return Bytes.size(); }
39 *Byte = Bytes[Addr];
H A DMachODump.cpp388 StringRef Bytes; local
389 Sections[SectIdx].getContents(Bytes);
390 StringRefMemoryObject memoryObject(Bytes);
474 DumpBytes(StringRef(Bytes.data() + Index, Size));
516 DumpBytes(StringRef(Bytes.data() + Index, InstSize));
594 DumpBytes(StringRef(Bytes.data() + pos, 1));
595 outs() << format("\t.byte 0x%02x\n", (uint8_t)Bytes[pos]);
616 DumpBytes(StringRef(Bytes.data() + Inst.Address, Inst.Size));
/external/llvm/include/llvm/Support/
H A DStreamableMemoryObject.h141 mutable std::vector<unsigned char> Bytes; member in class:llvm::StreamingMemoryObject
143 mutable size_t BytesRead; // Bytes read from stream
144 size_t BytesSkipped;// Bytes skipped at start of stream (e.g. wrapper/header)
156 Bytes.resize(BytesRead + BytesSkipped + kChunkSize);
157 size_t bytes = Streamer->GetBytes(&Bytes[BytesRead + BytesSkipped],
/external/llvm/tools/llvm-mc/
H A DDisassembler.cpp39 const ByteArrayTy &Bytes; member in class:__anon9211::VectorMemoryObject
41 VectorMemoryObject(const ByteArrayTy &bytes) : Bytes(bytes) {}
44 uint64_t getExtent() const { return Bytes.size(); }
49 *Byte = Bytes[Addr].first;
56 const ByteArrayTy &Bytes,
60 VectorMemoryObject memoryObject(Bytes);
66 for (Index = 0; Index < Bytes.size(); Index += Size) {
74 SM.PrintMessage(SMLoc::getFromPointer(Bytes[Index].second),
82 SM.PrintMessage(SMLoc::getFromPointer(Bytes[Index].second),
55 PrintInsts(const MCDisassembler &DisAsm, const ByteArrayTy &Bytes, SourceMgr &SM, raw_ostream &Out, MCStreamer &Streamer) argument
/external/elfutils/libelf/
H A Dgelf_xlate.c112 #define INLINE2(Bytes, FName, TName) \
113 INLINE3 (Bytes, FName, TName)
114 #define INLINE3(Bytes, FName, TName) \
117 switch (Bytes) \
135 dest += Bytes; \
136 ptr += Bytes; \
144 ptr -= Bytes; \
145 dest -= Bytes; \
/external/llvm/lib/MC/MCDisassembler/
H A DDisassembler.cpp113 uint8_t *Bytes; member in class:__anon8779::DisasmMemoryObject
118 Bytes(bytes), Size(size), BasePC(basePC) {}
126 *Byte = Bytes[Addr - BasePC];
135 // instruction are specified in the parameter Bytes, and contains at least
144 size_t LLVMDisasmInstruction(LLVMDisasmContextRef DCR, uint8_t *Bytes, argument
148 // Wrap the pointer to the Bytes, BytesSize and PC in a MemoryObject.
149 DisasmMemoryObject MemoryObject(Bytes, BytesSize, PC);
/external/llvm/include/llvm-c/
H A DDisassembler.h156 * parameter Bytes, and contains at least BytesSize number of bytes. The
163 size_t LLVMDisasmInstruction(LLVMDisasmContextRef DC, uint8_t *Bytes,
/external/guava/guava/src/com/google/common/primitives/
H A DBytes.java47 public final class Bytes { class
48 private Bytes() {} method in class:Bytes
295 && Bytes.indexOf(array, (Byte) target, start, end) != -1;
301 int i = Bytes.indexOf(array, (Byte) target, start, end);
312 int i = Bytes.lastIndexOf(array, (Byte) target, start, end);
359 result = 31 * result + Bytes.hashCode(array[i]);
/external/llvm/lib/Target/Mips/Disassembler/
H A DMipsDisassembler.cpp237 uint8_t Bytes[4]; local
239 // We want to read exactly 4 Bytes of data.
240 if (region.readBytes(address, 4, (uint8_t*)Bytes, NULL) == -1) {
247 insn = (Bytes[3] << 0) |
248 (Bytes[2] << 8) |
249 (Bytes[1] << 16) |
250 (Bytes[0] << 24);
254 insn = (Bytes[0] << 0) |
255 (Bytes[1] << 8) |
256 (Bytes[
[all...]
/external/llvm/lib/Target/ARM/
H A DThumb1RegisterInfo.cpp143 static unsigned calcNumMI(int Opc, int ExtraOpc, unsigned Bytes, argument
149 unsigned ThisVal = (Bytes > Chunk) ? Chunk : Bytes;
150 Bytes -= ThisVal;
157 NumMIs += Bytes / Chunk;
158 if ((Bytes % Chunk) != 0)
175 unsigned Bytes = (unsigned)NumBytes;
176 if (isSub) Bytes = -NumBytes;
177 bool isMul4 = (Bytes & 3) == 0;
198 Bytes
[all...]
H A DARMLoadStoreOptimizer.cpp530 unsigned Bytes, unsigned Limit,
548 if (Bytes == 0 || (Limit && Bytes >= Limit))
554 (MI->getOperand(2).getImm()*Scale) == Bytes &&
563 unsigned Bytes, unsigned Limit,
580 if (Bytes == 0 || (Limit && Bytes >= Limit))
587 (MI->getOperand(2).getImm()*Scale) == Bytes &&
717 unsigned Bytes = getLSMultipleTransferSize(MI); local
739 isMatchingDecrement(PrevMBBI, Base, Bytes,
529 isMatchingDecrement(MachineInstr *MI, unsigned Base, unsigned Bytes, unsigned Limit, ARMCC::CondCodes Pred, unsigned PredReg) argument
562 isMatchingIncrement(MachineInstr *MI, unsigned Base, unsigned Bytes, unsigned Limit, ARMCC::CondCodes Pred, unsigned PredReg) argument
853 unsigned Bytes = getLSMultipleTransferSize(MI); local
1682 unsigned Bytes = getLSMultipleTransferSize(Op); local
[all...]
/external/guava/guava-tests/test/com/google/common/io/
H A DLittleEndianDataInputStreamTest.java19 import com.google.common.primitives.Bytes;
73 assertEquals(Bytes.asList(data), Bytes.asList(b));
H A DLittleEndianDataOutputStreamTest.java20 import com.google.common.primitives.Bytes;
146 assertEquals(Bytes.asList(expected), Bytes.asList(actual));
/external/clang/include/clang/AST/
H A DAttr.h42 void *operator new(size_t Bytes, const clang::ASTContext &C,
46 void *operator new[](size_t Bytes, const clang::ASTContext &C,
77 void* operator new(size_t Bytes, ASTContext &C, argument
79 return ::operator new(Bytes, C, Alignment);
/external/llvm/include/llvm/MC/
H A DMCContext.h356 /// @param Bytes The number of bytes to allocate. Calculated by the compiler.
361 inline void *operator new(size_t Bytes, llvm::MCContext &C, argument
363 return C.Allocate(Bytes, Alignment);
390 /// @param Bytes The number of bytes to allocate. Calculated by the compiler.
395 inline void *operator new[](size_t Bytes, llvm::MCContext& C, argument
397 return C.Allocate(Bytes, Alignment);
/external/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.h117 unsigned addBytes(unsigned char *Ptr, int Num, int Bytes) { argument
119 assert((curpos+Bytes) <= size);
124 for ( int i=Num; i < Bytes ; ++i) {
277 void bufferLEByte(Constant *CPV, int Bytes, AggBuffer *aggBuffer) ;
H A DNVPTXAsmPrinter.cpp1714 void NVPTXAsmPrinter::bufferLEByte(Constant *CPV, int Bytes, argument
1721 if (s<Bytes)
1722 s = Bytes;
1736 aggBuffer->addBytes(ptr, 1, Bytes);
1741 aggBuffer->addBytes(ptr, 2, Bytes);
1746 aggBuffer->addBytes(ptr, 4, Bytes);
1754 aggBuffer->addBytes(ptr, 4, Bytes);
1769 aggBuffer->addBytes(ptr, 8, Bytes);
1776 aggBuffer->addBytes(ptr, 8, Bytes);
1798 aggBuffer->addBytes(ptr, 4, Bytes);
1847 int Bytes; local
[all...]
/external/skia/src/images/
H A DSkMovie_gif.cpp70 const uint8_t* b = (const uint8_t*)image->ExtensionBlocks[j].Bytes;
227 bool has_transparency = ((eb->Bytes[0] & 1) == 1);
229 transparent = (unsigned char)eb->Bytes[3];
258 int disposal = ((eb->Bytes[0] >> 2) & 7);
275 *trans = ((eb->Bytes[0] & 1) == 1);
276 *disposal = ((eb->Bytes[0] >> 2) & 7);
/external/giflib/
H A Dgifalloc.c270 ep->Bytes = (char *)malloc(ep->ByteCount);
271 if (ep->Bytes == NULL)
275 memcpy(ep->Bytes, ExtData, Len);
292 (void)free((char *)ep->Bytes);
/external/valgrind/main/none/tests/x86-linux/
H A Dseg_override.c21 } Bytes; member in union:_LDT_ENTRY::__anon14216
/external/e2fsprogs/lib/ext2fs/
H A Dnt_io.c893 IN ULONG Bytes,
906 ASSERT(0 == (Bytes % 512));
917 &IoStatusBlock, Buffer, Bytes, &Offset, NULL);
922 &IoStatusBlock, Buffer, Bytes, &Offset, NULL);
948 IN ULONG Bytes,
953 return _BlockIo(Handle, Offset, Bytes, (PCHAR)Buffer, FALSE, Errno);
961 IN ULONG Bytes,
966 return _BlockIo(Handle, Offset, Bytes, Buffer, TRUE, Errno);
890 _BlockIo( IN HANDLE Handle, IN LARGE_INTEGER Offset, IN ULONG Bytes, IN OUT PCHAR Buffer, IN BOOLEAN Read, OUT unsigned* Errno ) argument
945 _RawWrite( IN HANDLE Handle, IN LARGE_INTEGER Offset, IN ULONG Bytes, OUT const CHAR* Buffer, OUT unsigned* Errno ) argument
958 _RawRead( IN HANDLE Handle, IN LARGE_INTEGER Offset, IN ULONG Bytes, IN PCHAR Buffer, OUT unsigned* Errno ) argument
/external/llvm/utils/TableGen/
H A DDAGISelMatcherEmitter.cpp368 unsigned Bytes=1+EmitVBRValue(cast<CheckIntegerMatcher>(N)->getValue(), OS); local
370 return Bytes;
403 unsigned Bytes=1+EmitVBRValue(cast<CheckAndImmMatcher>(N)->getValue(), OS); local
405 return Bytes;
410 unsigned Bytes = 1+EmitVBRValue(cast<CheckOrImmMatcher>(N)->getValue(), OS); local
412 return Bytes;
423 unsigned Bytes = 2+EmitVBRValue(Val, OS); local
425 return Bytes;

Completed in 540 milliseconds

123