/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/ |
H A D | 7-3.c | 45 size_t size = 1024; in main() local 60 if (ftruncate(fd, size) == -1) { in main() 65 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); in main() 79 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, in main() 105 munmap(pa, size); in main()
|
H A D | 7-4.c | 45 size_t size = 1024; in main() local 62 /* Set the size of the shared memory object */ in main() 63 if (ftruncate(shm_fd, size) == -1) { in main() 68 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, shm_fd, 0); in main() 81 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE, in main() 103 munmap(pa, size); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/munmap/ |
H A D | 4-1.c | 49 size_t size = total_size; in main() local 76 pa = mmap(addr, size, prot, flag, fd, off); in main() 88 if ((rc = msync(pa, size, MS_SYNC)) != 0) { in main() 93 munmap(pa, size); in main() 97 pa = mmap(addr, size, prot, flag, fd, off); in main()
|
/third_party/node/deps/v8/src/torque/ |
H A D | source-positions.cc | 37 path_from_root.resize(path_from_root.size() - strlen(".tq")); in PathFromV8RootWithoutExtension() 44 return SourceId(static_cast<int>(Get().sources_.size()) - 1); in AddSource() 49 for (size_t i = 0; i < Get().sources_.size(); ++i) { in GetSourceId() 61 result.reserve(static_cast<int>(self.sources_.size())); in AllSources() 62 for (int i = 0; i < static_cast<int>(self.sources_.size()); ++i) { in AllSources()
|
H A D | type-oracle.cc | 31 while (current != Get().aggregate_types_.size()) { in FinalizeAggregateTypes() 42 if (params.size() != arg_types.size()) { in GetGenericTypeInstance() 43 ReportError("Generic struct takes ", params.size(), " parameters, but ", in GetGenericTypeInstance() 44 arg_types.size(), " were given"); in GetGenericTypeInstance()
|
/third_party/musl/libc-test/src/functionalext/supplement/ldso/ldso_gtest/ |
H A D | ldso_dl_iterate_phdr_test.cpp | 16 static int CallBack001(struct dl_phdr_info* info, size_t size, void* data) in CallBack001() argument 36 void CallBack002(dl_phdr_info* info, size_t size) in CallBack002() argument 38 EXPECT_EQ(sizeof(dl_phdr_info), size); in CallBack002() local 64 int TempFunc(dl_phdr_info* info, size_t size, void* data) in TempFunc() argument 66 CallBack002(info, size); in TempFunc()
|
/third_party/musl/libc-test/src/common/ |
H A D | check_log.c | 34 int size = ftell(fp);
in check_log() local 35 if (size <= 0) {
in check_log() 37 t_error("FAIL %s size is <=0!\n", file);
in check_log() 43 char *buffer = malloc(size);
in check_log() 45 t_error("FAIL %s malloc %d failed!\n", size);
in check_log() 49 int rsize = fread(buffer, 1, size, fp);
in check_log()
|
/third_party/python/Tools/freeze/ |
H A D | makefreeze.py | 47 size = len(str) 51 done.append((mod, mangled, size, is_package)) 56 for mod, mangled, size, _ in done: 59 for mod, mangled, size, is_package in done: 60 outfp.write('\t{"%s", M_%s, %d, %s},\n' % (mod, mangled, size, is_package)) 65 # The zero value size is never used.
|
/third_party/python/Tools/scripts/ |
H A D | dutree.py | 12 size = eval(line[:i]) 18 total, d = store(size, comps, total, d) 25 def store(size, comps, total, d): 27 return size, d 31 d[comps[0]] = store(size, comps[1:], t1, d1)
|
/third_party/vk-gl-cts/external/amber/src/src/ |
H A D | descriptor_set_and_binding_parser.cc | 36 while (idx < buffer_id.size() && buffer_id[idx] != ':') in Parse() 44 if (idx >= buffer_id.size()) in Parse() 72 if (str.size() < 2 || str[0] != ':') in Parse() 75 auto substr = str.substr(1, str.size()); in Parse() 77 for (size_t i = 0; i < substr.size(); ++i) { in Parse()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/ |
H A D | MemoryObjectVk.h | 30 GLuint64 size, 35 GLuint64 size, 43 const gl::Extents &size, 52 angle::Result importOpaqueFd(ContextVk *contextVk, GLuint64 size, GLint fd); 53 angle::Result importZirconVmo(ContextVk *contextVk, GLuint64 size, GLuint handle);
|
/third_party/skia/src/core/ |
H A D | SkMallocPixelRef.cpp | 33 size_t size = info.computeByteSize(rowBytes); in MakeAllocate() local 34 if (SkImageInfo::ByteSizeOverflowed(size)) { in MakeAllocate() 38 if (size > 100000) { in MakeAllocate() 42 void* addr = sk_calloc_canfail(size); in MakeAllocate() 63 // - we overflowed computing the size? in MakeWithData() 64 if ((rowBytes < info.minRowBytes()) || (data->size() < info.computeByteSize(rowBytes))) { in MakeWithData()
|
/third_party/skia/third_party/externals/spirv-tools/source/opt/ |
H A D | build_module.cpp | 52 const size_t size) { in BuildModule() 53 return BuildModule(env, consumer, binary, size, true); in BuildModule() 59 const size_t size, in BuildModule() 68 spv_result_t status = spvBinaryParse(context, &loader, binary, size, in BuildModule() 85 return BuildModule(env, consumer, binary.data(), binary.size()); in BuildModule() 49 BuildModule(spv_target_env env, MessageConsumer consumer, const uint32_t* binary, const size_t size) BuildModule() argument 56 BuildModule(spv_target_env env, MessageConsumer consumer, const uint32_t* binary, const size_t size, bool extra_line_tracking) BuildModule() argument
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/ |
H A D | build_module.cpp | 52 const size_t size) { in BuildModule() 53 return BuildModule(env, consumer, binary, size, true); in BuildModule() 59 const size_t size, in BuildModule() 68 spv_result_t status = spvBinaryParse(context, &loader, binary, size, in BuildModule() 85 return BuildModule(env, consumer, binary.data(), binary.size()); in BuildModule() 49 BuildModule(spv_target_env env, MessageConsumer consumer, const uint32_t* binary, const size_t size) BuildModule() argument 56 BuildModule(spv_target_env env, MessageConsumer consumer, const uint32_t* binary, const size_t size, bool extra_line_tracking) BuildModule() argument
|
/third_party/skia/third_party/externals/libwebp/extras/ |
H A D | quality_estimate.c | 41 #define GET_BIT(n) GetBit(data, (n), size, &bit_pos) 44 int VP8EstimateQuality(const uint8_t* const data, size_t size) { in VP8EstimateQuality() argument 54 if (WebPGetFeatures(data, size, &features) != VP8_STATUS_OK) { in VP8EstimateQuality() 60 while (pos < size) { in VP8EstimateQuality() 68 if (pos + 4 > size) return -1; in VP8EstimateQuality()
|
/third_party/skia/third_party/externals/oboe/apps/fxlab/app/src/main/cpp/ |
H A D | FunctionList.h | 49 if (index < functionList.size()) { in removeEffectAt() 56 if (from >= v.size() || to >= v.size()) return; in rotateEffectAt() 60 from = v.size() - 1 - from; in rotateEffectAt() 61 to = v.size() - 1 - to; in rotateEffectAt()
|
/third_party/skia/tests/ |
H A D | FakeStreams.h | 49 : fTotalSize(data->size()) in HaltingStream() 58 size_t read(void* buffer, size_t size) override { 59 if (fStream.getPosition() + size > fLimit) { 60 size = fLimit - fStream.getPosition(); 63 return fStream.read(buffer, size);
|
H A D | CodecExactReadTest.cpp | 65 const size_t size = data->size(); in DEF_TEST() local 66 sk_sp<SkData> multiData = SkData::MakeUninitialized(size * kNumImages); in DEF_TEST() 69 memcpy(SkTAddOffset<void>(dst, size * i), data->data(), size); in DEF_TEST() local
|
/third_party/skia/third_party/externals/dawn/src/dawn_wire/client/ |
H A D | Buffer.h | 43 size_t size, 46 void* GetMappedRange(size_t offset, size_t size); 47 const void* GetConstMappedRange(size_t offset, size_t size); 58 bool CheckGetMappedRangeOffsetSize(size_t offset, size_t size) const; 80 size_t size = 0; member
|
/third_party/optimized-routines/string/test/ |
H A D | mte.h | 44 mte_mmap (size_t size) in mte_mmap() argument 48 return mmap (NULL, size, PROT_READ | PROT_WRITE | PROT_MTE, in mte_mmap() 53 return malloc (size); in mte_mmap() 117 mte_mmap (size_t size) in mte_mmap() argument 119 return malloc (size); in mte_mmap()
|
/third_party/skia/third_party/externals/freetype/src/type42/ |
H A D | t42objs.h | 35 /* Type42 size */ 78 T42_Size_Init( FT_Size size ); variable 82 T42_Size_Request( FT_Size size, 87 T42_Size_Select( FT_Size size, 92 T42_Size_Done( FT_Size size ); variable 101 FT_Size size,
|
/third_party/skia/third_party/externals/icu/fuzzers/ |
H A D | icu_appendable_fuzzer.cc | 30 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { in LLVMFuzzerTestOneInput() argument 31 FuzzedDataProvider provider(data, size); in LLVMFuzzerTestOneInput() 47 if (appendChrs8.size() == 0) in LLVMFuzzerTestOneInput() 51 appendChrs8.size())); in LLVMFuzzerTestOneInput() 52 strAppendable.appendString(appendChrs.data(), appendChrs.size()); in LLVMFuzzerTestOneInput()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
H A D | Memory.h | 25 /// and a size. It is used by the Memory class (a friend) as the result of 32 MemoryBlock(void *addr, size_t size) : Address(addr), Size(size) { } in MemoryBlock() argument 34 size_t size() const { return Size; } in size() function in llvm::sys::MemoryBlock 70 /// system allocation granularity (64K on Windows, page size on Linux). 177 size_t size() const { return M.size(); } in size() function in llvm::sys::OwningMemoryBlock
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/TextAPI/MachO/ |
H A D | PackedVersion.cpp | 32 if (Parts.size() > 3) in parse32() 44 for (unsigned i = 1, ShiftNum = 8; i < Parts.size(); ++i, ShiftNum -= 8) { in parse32() 67 if (Parts.size() > 5) in parse64() 83 for (unsigned i = 1, ShiftNum = 8; i < Parts.size() && i < 3; in parse64() 98 if (Parts.size() > 3) in parse64()
|
/third_party/skia/third_party/externals/tint/src/sem/ |
H A D | call_target.cc | 41 for (size_t i = 0; i < parameters.size(); i++) { in IndexOf() 51 parameters.size() != other.parameters.size()) { in operator ==() 54 for (size_t i = 0; i < parameters.size(); i++) { in operator ==() 71 size_t hash = tint::utils::Hash(sig.parameters.size()); in operator ()()
|