Home
last modified time | relevance | path

Searched refs:memory_size (Results 1 – 25 of 50) sorted by relevance

12

/third_party/ltp/testcases/kernel/mem/page/
Dpage02.c73 int memory_size, half_memory_size; local
89 memory_size = 128 * 1024;
92 if (sscanf(argv[1], "%d", &memory_size) != 1)
101 half_memory_size = memory_size / 2;
129 memory_pointer = malloc(memory_size * sizeof(int));
148 memory_size, i);
155 (memory_size / 2);
178 (memory_size / 2);
Dpage01.c74 int memory_size; local
83 memory_size = 256 * 1024;
86 if (sscanf(argv[1], "%d", &memory_size) != 1)
121 memory_pointer = malloc(memory_size * sizeof(int));
146 for (j = 1; j <= memory_size; j++)
159 for (j = 1; j <= memory_size; j++) {
/third_party/glib/glib/gnulib/
Dprintf-parse.c107 size_t memory_size; \ in PRINTF_PARSE()
113 memory_size = xtimes (a_allocated, sizeof (argument)); \ in PRINTF_PARSE()
114 if (size_overflow_p (memory_size)) \ in PRINTF_PARSE()
118 ? realloc (a->arg, memory_size) \ in PRINTF_PARSE()
119 : malloc (memory_size)); \ in PRINTF_PARSE()
586 size_t memory_size; in PRINTF_PARSE() local
590 memory_size = xtimes (d_allocated, sizeof (DIRECTIVE)); in PRINTF_PARSE()
591 if (size_overflow_p (memory_size)) in PRINTF_PARSE()
595 ? realloc (d->dir, memory_size) in PRINTF_PARSE()
596 : malloc (memory_size)); in PRINTF_PARSE()
/third_party/gettext/gettext-runtime/intl/
Dprintf-parse.c106 size_t memory_size; \ in PRINTF_PARSE()
112 memory_size = xtimes (a_allocated, sizeof (argument)); \ in PRINTF_PARSE()
113 if (size_overflow_p (memory_size)) \ in PRINTF_PARSE()
117 ? realloc (a->arg, memory_size) \ in PRINTF_PARSE()
118 : malloc (memory_size)); \ in PRINTF_PARSE()
585 size_t memory_size; in PRINTF_PARSE() local
589 memory_size = xtimes (d_allocated, sizeof (DIRECTIVE)); in PRINTF_PARSE()
590 if (size_overflow_p (memory_size)) in PRINTF_PARSE()
594 ? realloc (d->dir, memory_size) in PRINTF_PARSE()
595 : malloc (memory_size)); in PRINTF_PARSE()
/third_party/gettext/gettext-runtime/libasprintf/
Dprintf-parse.c106 size_t memory_size; \ in PRINTF_PARSE()
112 memory_size = xtimes (a_allocated, sizeof (argument)); \ in PRINTF_PARSE()
113 if (size_overflow_p (memory_size)) \ in PRINTF_PARSE()
117 ? realloc (a->arg, memory_size) \ in PRINTF_PARSE()
118 : malloc (memory_size)); \ in PRINTF_PARSE()
585 size_t memory_size; in PRINTF_PARSE() local
589 memory_size = xtimes (d_allocated, sizeof (DIRECTIVE)); in PRINTF_PARSE()
590 if (size_overflow_p (memory_size)) in PRINTF_PARSE()
594 ? realloc (d->dir, memory_size) in PRINTF_PARSE()
595 : malloc (memory_size)); in PRINTF_PARSE()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/gnn/
Dgraph_shared_memory.h34 explicit GraphSharedMemory(int64_t memory_size, key_t memory_key);
35 explicit GraphSharedMemory(int64_t memory_size, const std::string &mr_file);
55 int64_t memory_size() { return memory_size_; } in memory_size() function
Dgraph_shared_memory.cc28 GraphSharedMemory::GraphSharedMemory(int64_t memory_size, key_t memory_key) in GraphSharedMemory() argument
29 : memory_size_(memory_size), in GraphSharedMemory()
39 GraphSharedMemory::GraphSharedMemory(int64_t memory_size, const std::string &mr_file) in GraphSharedMemory() argument
41 memory_size_(memory_size), in GraphSharedMemory()
Dgraph_data_impl.h170 int64_t GetSharedMemorySize() { return graph_shared_memory_->memory_size(); } in GetSharedMemorySize()
/third_party/mindspore/mindspore/ccsrc/cxx_api/model/model_converter_utils/
Dshared_memory.cc23 Status SharedMemory::Create(uint64_t memory_size) { in Create() argument
25 shm_id_ = shmget(IPC_PRIVATE, memory_size, IPC_CREAT | IPC_EXCL | access_mode); in Create()
Dshared_memory.h25 Status Create(uint64_t memory_size);
/third_party/skia/src/core/
DSkFlattenable.cpp128 size_t SkFlattenable::serialize(void* memory, size_t memory_size, in serialize() argument
130 SkBinaryWriteBuffer writer(memory, memory_size); in serialize()
/third_party/flutter/skia/src/core/
DSkFlattenable.cpp128 size_t SkFlattenable::serialize(void* memory, size_t memory_size, in serialize() argument
130 SkBinaryWriteBuffer writer(memory, memory_size); in serialize()
/third_party/mesa3d/src/gallium/auxiliary/util/
Du_helpers.c391 struct util_throttle *t, uint64_t memory_size) in util_throttle_memory_usage() argument
407 total && total + memory_size > t->max_mem_usage) { in util_throttle_memory_usage()
431 t->ring[t->flush_index].mem_usage + memory_size > in util_throttle_memory_usage()
459 t->ring[t->flush_index].mem_usage += memory_size; in util_throttle_memory_usage()
Du_helpers.h119 struct util_throttle *t, uint64_t memory_size);
/third_party/elfio/elfio/
Delfio_segment.hpp46 ELFIO_GET_SET_ACCESS_DECL( Elf_Xword, memory_size );
91 ELFIO_GET_SET_ACCESS( Elf_Xword, memory_size, ph.p_memsz );
/third_party/flutter/skia/include/core/
DSkFlattenable.h77 size_t serialize(void* memory, size_t memory_size,
DSkTextBlob.h157 size_t serialize(const SkSerialProcs& procs, void* memory, size_t memory_size) const;
/third_party/skia/include/core/
DSkFlattenable.h73 size_t serialize(void* memory, size_t memory_size,
DSkTextBlob.h162 size_t serialize(const SkSerialProcs& procs, void* memory, size_t memory_size) const;
/third_party/libuv/src/unix/
Dhurd.c106 return hbi.memory_size; in uv_get_total_memory()
/third_party/mindspore/mindspore/ccsrc/utils/
Dtensorprint_utils.cc59 const size_t &memory_size) { in PrintTensorToString() argument
66 size_t target_size = memory_size; in PrintTensorToString()
/third_party/FreeBSD/sys/dev/usb/
Dusb_transfer.h186 usb_size_t memory_size; member
/third_party/gstreamer/gstplugins_good/ext/jpeg/
Dgstjpegenc.c251 gsize memory_size = jpegenc->output_map.size - jpegenc->jdest.free_in_buffer; in gst_jpegenc_term_destination() local
253 GST_BYTE_READER_INIT (jpegenc->output_map.data, memory_size); in gst_jpegenc_term_destination()
270 gst_memory_resize (jpegenc->output_mem, 0, memory_size); in gst_jpegenc_term_destination()
/third_party/flutter/skia/site/user/api/
DSkTextBlob_Reference.md20 …ref='undocumented#SkSerialProcs'>SkSerialProcs</a>& procs, void* memory, size_t memory_size) const;
220 … href='undocumented#SkSerialProcs'>SkSerialProcs</a>& procs, void* memory, size_t memory_size)const
224 …mented#Data'>data</a>, and <a href='#SkTextBlob_serialize_memory_size'>memory_size</a> describes t…
241 …<tr> <td><a name='SkTextBlob_serialize_memory_size'><code><strong>memory_size</strong></code></…
248 …zero if required storage is larger than <a href='#SkTextBlob_serialize_memory_size'>memory_size</a>
/third_party/elfio/examples/c_wrapper/
Delfio_c_wrapper.h172 ELFIO_C_GET_SET_ACCESS( segment, Elf_Xword, memory_size );

12