Home
last modified time | relevance | path

Searched refs:Buf (Results 1 – 25 of 249) sorted by relevance

12345678910

/external/compiler-rt/test/esan/Unit/
Dcircular_buffer.cpp12 void testBuffer(__esan::CircularBuffer<int> *Buf) { in testBuffer() argument
13 assert(Buf->size() == 0); in testBuffer()
14 assert(Buf->empty()); in testBuffer()
16 Buf->push_back(1); in testBuffer()
17 assert(Buf->back() == 1); in testBuffer()
18 assert((*Buf)[0] == 1); in testBuffer()
19 assert(Buf->size() == 1); in testBuffer()
20 assert(!Buf->empty()); in testBuffer()
22 Buf->push_back(2); in testBuffer()
23 Buf->push_back(3); in testBuffer()
[all …]
/external/angle/third_party/glslang/src/Test/baseResults/
Dhlsl.noSemantic.functionality1.comp.out15 Name 11 "Buf"
16 MemberName 11(Buf) 0 "@data"
17 Name 13 "Buf"
18 Name 17 "Buf@count"
19 MemberName 17(Buf@count) 0 "@count"
20 Name 19 "Buf@count"
22 MemberDecorate 11(Buf) 0 Offset 0
23 Decorate 11(Buf) BufferBlock
24 Decorate 13(Buf) DescriptorSet 0
25 Decorate 13(Buf) Binding 0
[all …]
/external/deqp-deps/glslang/Test/baseResults/
Dhlsl.noSemantic.functionality1.comp.out15 Name 11 "Buf"
16 MemberName 11(Buf) 0 "@data"
17 Name 13 "Buf"
18 Name 17 "Buf@count"
19 MemberName 17(Buf@count) 0 "@count"
20 Name 19 "Buf@count"
22 MemberDecorate 11(Buf) 0 Offset 0
23 Decorate 11(Buf) BufferBlock
24 Decorate 13(Buf) DescriptorSet 0
25 Decorate 13(Buf) Binding 0
[all …]
/external/giflib/
Degif_lib.c40 static int EGifBufferedOutput(GifFileType * GifFile, GifByteType * Buf,
272 GifByteType Buf[3]; in EGifPutScreenDesc() local
322 Buf[0] = (ColorMap ? 0x80 : 0x00) | /* Yes/no global colormap */ in EGifPutScreenDesc()
327 Buf[0] |= 0x08; in EGifPutScreenDesc()
328 Buf[1] = BackGround; /* Index into the ColorTable for background color */ in EGifPutScreenDesc()
329 Buf[2] = GifFile->AspectByte; /* Pixel Aspect Ratio */ in EGifPutScreenDesc()
330 InternalWrite(GifFile, Buf, 3); in EGifPutScreenDesc()
337 Buf[0] = ColorMap->Colors[i].Red; in EGifPutScreenDesc()
338 Buf[1] = ColorMap->Colors[i].Green; in EGifPutScreenDesc()
339 Buf[2] = ColorMap->Colors[i].Blue; in EGifPutScreenDesc()
[all …]
Ddgif_lib.c41 static int DGifBufferedInput(GifFileType *GifFile, GifByteType *Buf,
73 char Buf[GIF_STAMP_LEN + 1]; in DGifOpenFileHandle() local
120 if (READ(GifFile, (unsigned char *)Buf, GIF_STAMP_LEN) != GIF_STAMP_LEN) { in DGifOpenFileHandle()
130 Buf[GIF_STAMP_LEN] = 0; in DGifOpenFileHandle()
131 if (strncmp(GIF_STAMP, Buf, GIF_VERSION_POS) != 0) { in DGifOpenFileHandle()
150 Private->gif89 = (Buf[GIF_VERSION_POS] == '9'); in DGifOpenFileHandle()
161 char Buf[GIF_STAMP_LEN + 1]; in DGifOpen() local
197 if (READ(GifFile, (unsigned char *)Buf, GIF_STAMP_LEN) != GIF_STAMP_LEN) { in DGifOpen()
206 Buf[GIF_STAMP_LEN] = '\0'; in DGifOpen()
207 if (strncmp(GIF_STAMP, Buf, GIF_VERSION_POS) != 0) { in DGifOpen()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Demangle/
DPartialDemangleTest.cpp63 char *Buf = static_cast<char *>(std::malloc(Size)); in TEST() local
73 Buf = D.getFunctionDeclContextName(Buf, &Size); in TEST()
74 EXPECT_STREQ(Buf, N.ContextName); in TEST()
76 Buf = D.getFunctionBaseName(Buf, &Size); in TEST()
77 EXPECT_STREQ(Buf, N.BaseName); in TEST()
79 Buf = D.getFunctionReturnType(Buf, &Size); in TEST()
80 EXPECT_STREQ(Buf, N.ReturnType); in TEST()
82 Buf = D.getFunctionParameters(Buf, &Size); in TEST()
83 EXPECT_STREQ(Buf, N.Params); in TEST()
86 std::free(Buf); in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Object/
DCOFFModuleDefinition.cpp91 Lexer(StringRef S) : Buf(S) {} in Lexer()
94 Buf = Buf.trim(); in lex()
95 if (Buf.empty()) in lex()
98 switch (Buf[0]) { in lex()
102 size_t End = Buf.find('\n'); in lex()
103 Buf = (End == Buf.npos) ? "" : Buf.drop_front(End); in lex()
107 Buf = Buf.drop_front(); in lex()
108 if (Buf.startswith("=")) { in lex()
109 Buf = Buf.drop_front(); in lex()
114 Buf = Buf.drop_front(); in lex()
[all …]
DArchive.cpp79 std::string Buf; in ArchiveMemberHeader() local
80 raw_string_ostream OS(Buf); in ArchiveMemberHeader()
84 std::string Msg("terminator characters in archive member \"" + Buf + in ArchiveMemberHeader()
158 std::string Buf; in getName() local
159 raw_string_ostream OS(Buf); in getName()
165 "not all decimal numbers: '" + Buf + "' for " in getName()
196 std::string Buf; in getName() local
197 raw_string_ostream OS(Buf); in getName()
203 "not all decimal numbers: '" + Buf + "' for " in getName()
231 std::string Buf; in getSize() local
[all …]
DObject.cpp63 std::unique_ptr<MemoryBuffer> Buf(unwrap(MemBuf)); in LLVMCreateObjectFile() local
65 ObjectFile::createObjectFile(Buf->getMemBufferRef())); in LLVMCreateObjectFile()
73 auto *Ret = new OwningBinary<ObjectFile>(std::move(ObjOrErr.get()), std::move(Buf)); in LLVMCreateObjectFile()
106 std::string Buf; in LLVMMoveToContainingSection() local
107 raw_string_ostream OS(Buf); in LLVMMoveToContainingSection()
110 report_fatal_error(Buf); in LLVMMoveToContainingSection()
188 std::string Buf; in LLVMGetSymbolName() local
189 raw_string_ostream OS(Buf); in LLVMGetSymbolName()
192 report_fatal_error(Buf); in LLVMGetSymbolName()
200 std::string Buf; in LLVMGetSymbolAddress() local
[all …]
/external/clang/tools/libclang/
DCIndexUSRs.cpp35 bool cxcursor::getDeclCursorUSR(const Decl *D, SmallVectorImpl<char> &Buf) { in getDeclCursorUSR() argument
36 return generateUSRForDecl(D, Buf); in getDeclCursorUSR()
96 SmallString<128> Buf(getUSRSpacePrefix()); in clang_constructUSR_ObjCIvar() local
97 llvm::raw_svector_ostream OS(Buf); in clang_constructUSR_ObjCIvar()
106 SmallString<128> Buf(getUSRSpacePrefix()); in clang_constructUSR_ObjCMethod() local
107 llvm::raw_svector_ostream OS(Buf); in clang_constructUSR_ObjCMethod()
114 SmallString<128> Buf(getUSRSpacePrefix()); in clang_constructUSR_ObjCClass() local
115 llvm::raw_svector_ostream OS(Buf); in clang_constructUSR_ObjCClass()
121 SmallString<128> Buf(getUSRSpacePrefix()); in clang_constructUSR_ObjCProtocol() local
122 llvm::raw_svector_ostream OS(Buf); in clang_constructUSR_ObjCProtocol()
[all …]
/external/lzma/CPP/7zip/Common/
DCWrappers.cpp160 ::MidFree(Buf); in Free()
161 Buf = 0; in Free()
166 if (Buf == 0 || size != Size) in Alloc()
169 Lim = Cur = Buf = (Byte *)::MidAlloc((size_t)size); in Alloc()
172 return (Buf != 0); in Alloc()
180 Processed += (Cur - Buf); in ReadByteFromNewBlock()
181 Res = Stream->Read(Buf, Size, &avail); in ReadByteFromNewBlock()
182 Cur = Buf; in ReadByteFromNewBlock()
183 Lim = Buf + avail; in ReadByteFromNewBlock()
199 CByteInBufWrap::CByteInBufWrap(): Buf(0) in CByteInBufWrap()
[all …]
DCWrappers.h59 Byte *Buf; member
72 Lim = Cur = Buf; in Init()
77 UInt64 GetProcessed() const { return Processed + (Cur - Buf); } in GetProcessed()
93 Byte *Buf; member
105 Cur = Buf; in Init()
106 Lim = Buf + Size; in Init()
110 UInt64 GetProcessed() const { return Processed + (Cur - Buf); } in GetProcessed()
/external/clang/unittests/Rewrite/
DRewriteBufferTest.cpp19 RewriteBuffer &Buf) { in tagRange() argument
25 Buf.InsertTextAfter(Offset, BeginTag); in tagRange()
26 Buf.InsertTextBefore(Offset+Len, EndTag); in tagRange()
33 RewriteBuffer Buf; in TEST() local
34 Buf.Initialize(Input); in TEST()
37 Buf.RemoveText(Pos, RemoveStr.size()); in TEST()
41 tagRange(Pos, TagStr.size(), "outer", Buf); in TEST()
42 tagRange(Pos, TagStr.size(), "inner", Buf); in TEST()
46 Buf.write(OS); in TEST()
/external/lzma/CPP/Windows/
DCommonDialog.cpp28 LPTSTR Buf; member in NWindows::CDoubleZeroStringListA
31 CDoubleZeroStringListA(LPSTR buf, unsigned size): Buf(buf), Size(size) {} in CDoubleZeroStringListA()
33 void Finish() { *Buf = 0; } in Finish()
41 MyStringCopy(Buf, s); in Add()
42 Buf += len; in Add()
51 LPWSTR Buf; member in NWindows::CDoubleZeroStringListW
54 CDoubleZeroStringListW(LPWSTR buf, unsigned size): Buf(buf), Size(size) {} in CDoubleZeroStringListW()
56 void Finish() { *Buf = 0; } in Finish()
64 MyStringCopy(Buf, s); in Add()
65 Buf += len; in Add()
/external/swiftshader/third_party/subzero/pnacl-llvm/include/llvm/Bitcode/NaCl/
DNaClBitcodeHeader.h84 bool Write(uint8_t *Buf, size_t BufLen) const;
87 bool Read(const uint8_t *Buf, size_t BufLen);
105 static size_t GetDataSizeFromSerialized(const uint8_t *Buf) { in GetDataSizeFromSerialized() argument
107 ReadFixedSubfield(&Length, Buf + sizeof(FixedSubfield)); in GetDataSizeFromSerialized()
139 static void WriteFixedSubfield(FixedSubfield Value, uint8_t *Buf) { in WriteFixedSubfield() argument
140 Buf[0] = Value & 0xFF; in WriteFixedSubfield()
141 Buf[1] = (Value >> 8) & 0xFF; in WriteFixedSubfield()
143 static void ReadFixedSubfield(FixedSubfield *Value, const uint8_t *Buf) { in ReadFixedSubfield() argument
144 *Value = Buf[0] | Buf[1] << 8; in ReadFixedSubfield()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Demangle/
DDemangle.h49 char *finishDemangle(char *Buf, size_t *N) const;
53 char *getFunctionBaseName(char *Buf, size_t *N) const;
57 char *getFunctionDeclContextName(char *Buf, size_t *N) const;
60 char *getFunctionName(char *Buf, size_t *N) const;
63 char *getFunctionParameters(char *Buf, size_t *N) const;
64 char *getFunctionReturnType(char *Buf, size_t *N) const;
/external/llvm/include/llvm/Object/
DBinary.h142 std::unique_ptr<MemoryBuffer> Buf; variable
146 OwningBinary(std::unique_ptr<T> Bin, std::unique_ptr<MemoryBuffer> Buf);
158 std::unique_ptr<MemoryBuffer> Buf) in OwningBinary() argument
159 : Bin(std::move(Bin)), Buf(std::move(Buf)) {} in OwningBinary()
165 : Bin(std::move(Other.Bin)), Buf(std::move(Other.Buf)) {} in OwningBinary()
170 Buf = std::move(Other.Buf);
177 return std::make_pair(std::move(Bin), std::move(Buf)); in takeBinary()
DArchiveWriter.h24 std::unique_ptr<MemoryBuffer> Buf; member
30 : Buf(std::move(Other.Buf)), ModTime(Other.ModTime), UID(Other.UID), in NewArchiveMember()
33 Buf = std::move(Other.Buf);
/external/llvm/lib/Object/
DObject.cpp63 std::unique_ptr<MemoryBuffer> Buf(unwrap(MemBuf)); in LLVMCreateObjectFile() local
65 ObjectFile::createObjectFile(Buf->getMemBufferRef())); in LLVMCreateObjectFile()
73 auto *Ret = new OwningBinary<ObjectFile>(std::move(ObjOrErr.get()), std::move(Buf)); in LLVMCreateObjectFile()
106 std::string Buf; in LLVMMoveToContainingSection() local
107 raw_string_ostream OS(Buf); in LLVMMoveToContainingSection()
110 report_fatal_error(Buf); in LLVMMoveToContainingSection()
188 std::string Buf; in LLVMGetSymbolName() local
189 raw_string_ostream OS(Buf); in LLVMGetSymbolName()
192 report_fatal_error(Buf); in LLVMGetSymbolName()
200 std::string Buf; in LLVMGetSymbolAddress() local
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Object/
DBinary.h167 std::unique_ptr<MemoryBuffer> Buf; variable
171 OwningBinary(std::unique_ptr<T> Bin, std::unique_ptr<MemoryBuffer> Buf);
183 std::unique_ptr<MemoryBuffer> Buf) in OwningBinary() argument
184 : Bin(std::move(Bin)), Buf(std::move(Buf)) {} in OwningBinary()
190 : Bin(std::move(Other.Bin)), Buf(std::move(Other.Buf)) {} in OwningBinary()
195 Buf = std::move(Other.Buf);
202 return std::make_pair(std::move(Bin), std::move(Buf)); in takeBinary()
/external/clang/lib/Frontend/
DTextDiagnosticBuffer.cpp27 SmallString<100> Buf; in HandleDiagnostic() local
28 Info.FormatDiagnostic(Buf); in HandleDiagnostic()
33 Notes.emplace_back(Info.getLocation(), Buf.str()); in HandleDiagnostic()
36 Warnings.emplace_back(Info.getLocation(), Buf.str()); in HandleDiagnostic()
39 Remarks.emplace_back(Info.getLocation(), Buf.str()); in HandleDiagnostic()
43 Errors.emplace_back(Info.getLocation(), Buf.str()); in HandleDiagnostic()
/external/llvm/lib/AsmParser/
DParser.cpp28 std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(F); in parseAssemblyInto() local
29 SM.AddNewSourceBuffer(std::move(Buf), SMLoc()); in parseAssemblyInto()
73 std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(Asm); in parseConstantValue() local
74 SM.AddNewSourceBuffer(std::move(Buf), SMLoc()); in parseConstantValue()
90 std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(Asm); in parseType() local
91 SM.AddNewSourceBuffer(std::move(Buf), SMLoc()); in parseType()
102 std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(Asm); in parseTypeAtBeginning() local
103 SM.AddNewSourceBuffer(std::move(Buf), SMLoc()); in parseTypeAtBeginning()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/FuzzMutate/
DFuzzerCLI.cpp162 std::unique_ptr<MemoryBuffer> Buf = std::move(BufOrErr.get()); in runFuzzerOnInputs() local
163 errs() << "Running: " << Arg << " (" << Buf->getBufferSize() << " bytes)\n"; in runFuzzerOnInputs()
164 TestOne(reinterpret_cast<const uint8_t *>(Buf->getBufferStart()), in runFuzzerOnInputs()
165 Buf->getBufferSize()); in runFuzzerOnInputs()
191 std::string Buf; in writeModule() local
193 raw_string_ostream OS(Buf); in writeModule()
196 if (Buf.size() > MaxSize) in writeModule()
198 memcpy(Dest, Buf.data(), Buf.size()); in writeModule()
199 return Buf.size(); in writeModule()
/external/compiler-rt/test/esan/TestCases/
Dlibc-intercept.c7 char Buf[2048]; in main() local
9 strcpy(Buf, Str); in main()
10 strncpy(Buf, Str, 17); in main()
11 return strncmp(Buf, Str, 17); in main()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DSHA1.cpp34 static uint32_t blk0(uint32_t *Buf, int I) { return Buf[I]; } in blk0() argument
36 static uint32_t blk(uint32_t *Buf, int I) { in blk() argument
37 Buf[I & 15] = rol(Buf[(I + 13) & 15] ^ Buf[(I + 8) & 15] ^ Buf[(I + 2) & 15] ^ in blk()
38 Buf[I & 15], in blk()
40 return Buf[I & 15]; in blk()
44 int I, uint32_t *Buf) { in r0() argument
45 E += ((B & (C ^ D)) ^ D) + blk0(Buf, I) + 0x5A827999 + rol(A, 5); in r0()
50 int I, uint32_t *Buf) { in r1() argument
51 E += ((B & (C ^ D)) ^ D) + blk(Buf, I) + 0x5A827999 + rol(A, 5); in r1()
56 int I, uint32_t *Buf) { in r2() argument
[all …]

12345678910