/third_party/ltp/testcases/kernel/syscalls/pipe/ |
H A D | pipe12.c | 20 static ssize_t max_size, invalid_size; variable 43 memset(rdbuf, 0, max_size); in verify_pipe() 47 SAFE_WRITE(SAFE_WRITE_ALL, fds[1], wrbuf, max_size); in verify_pipe() 68 if (nbytes == max_size - tc->offset) in verify_pipe() 72 max_size, nbytes); in verify_pipe() 77 SAFE_READ(0, fds[0], rdbuf, max_size); in verify_pipe() 97 max_size = SAFE_FCNTL(fds[1], F_GETPIPE_SZ); in setup() 98 invalid_size = max_size + 4096; in setup() 100 rdbuf = SAFE_MALLOC(max_size); in setup()
|
/third_party/json/docs/examples/ |
H A D | max_size.cpp | 17 // call max_size() in main() 18 std::cout << j_null.max_size() << '\n'; in main() 19 std::cout << j_boolean.max_size() << '\n'; in main() 20 std::cout << j_number_integer.max_size() << '\n'; in main() 21 std::cout << j_number_float.max_size() << '\n'; in main() 22 std::cout << j_object.max_size() << '\n'; in main() 23 std::cout << j_array.max_size() << '\n'; in main() 24 std::cout << j_string.max_size() << '\n'; in main()
|
/third_party/ffmpeg/libavformat/ |
H A D | voc_packet.c | 27 ff_voc_get_packet(AVFormatContext *s, AVPacket *pkt, AVStream *st, int max_size) in ff_voc_get_packet() argument 47 if (max_size < 4) in ff_voc_get_packet() 48 max_size = 0; in ff_voc_get_packet() 62 max_size -= 4; in ff_voc_get_packet() 81 max_size -= 2; in ff_voc_get_packet() 94 max_size -= 4; in ff_voc_get_packet() 113 max_size -= 12; in ff_voc_get_packet() 118 max_size -= voc->remaining_size; in ff_voc_get_packet() 146 if (max_size <= 0) in ff_voc_get_packet() 147 max_size in ff_voc_get_packet() [all...] |
H A D | libgme.c | 38 int64_t max_size; member 47 {"max_size", "set max file size supported (in bytes)", OFFSET(max_size), AV_OPT_TYPE_INT64, {.i64 = 50 * 1024 * 1024}, 0, SIZE_MAX, A|D}, 105 sz = gme->max_size; in read_header_gme() 106 } else if (gme->max_size && sz > gme->max_size) { in read_header_gme() 107 sz = gme->max_size; in read_header_gme() 115 // Data left means our buffer (the max_size option) is too small in read_header_gme() 117 av_log(s, AV_LOG_ERROR, "File size is larger than max_size option " in read_header_gme() 118 "value %"PRIi64", consider increasing the max_size optio in read_header_gme() [all...] |
/third_party/mesa3d/src/gallium/auxiliary/cso_cache/ |
H A D | cso_cache.c | 76 int max_size) in sanitize_hash() 79 sc->sanitize_cb(hash, type, max_size, sc->sanitize_data); in sanitize_hash() 84 int max_size, void *user_data) in sanitize_cb() 91 int max_entries = (max_size > hash_size) ? max_size : hash_size; in sanitize_cb() 92 int to_remove = (max_size < max_entries) * max_entries/4; in sanitize_cb() 93 if (hash_size > max_size) in sanitize_cb() 94 to_remove += hash_size - max_size; in sanitize_cb() 111 sanitize_hash(sc, hash, type, sc->max_size); in cso_insert_state() 163 sc->max_size in cso_cache_init() 73 sanitize_hash(struct cso_cache *sc, struct cso_hash *hash, enum cso_cache_type type, int max_size) sanitize_hash() argument 83 sanitize_cb(struct cso_hash *hash, enum cso_cache_type type, int max_size, void *user_data) sanitize_cb() argument [all...] |
/third_party/json/tests/src/ |
H A D | unit-capacity.cpp | 415 SECTION("max_size()") 422 SECTION("result of max_size") 424 CHECK(j.max_size() == 1); 425 CHECK(j_const.max_size() == 1); 434 SECTION("result of max_size") 436 CHECK(j.max_size() == 1); 437 CHECK(j_const.max_size() == 1); 448 SECTION("result of max_size") 450 CHECK(j.max_size() >= j.size()); 451 CHECK(j_const.max_size() > [all...] |
/third_party/node/deps/v8/src/heap/ |
H A D | heap-controller.cc | 36 size_t max_size = max_heap_size; in MaxGrowingFactor() local 37 max_size = std::max({max_size, Trait::kMinSize}); in MaxGrowingFactor() 41 if (max_size >= Trait::kMaxSize) { in MaxGrowingFactor() 45 DCHECK_GE(max_size, Trait::kMinSize); in MaxGrowingFactor() 46 DCHECK_LT(max_size, Trait::kMaxSize); in MaxGrowingFactor() 49 double factor = (max_size - Trait::kMinSize) * in MaxGrowingFactor() 129 Heap* heap, size_t current_size, size_t min_size, size_t max_size, in CalculateAllocationLimit() 157 (static_cast<uint64_t>(current_size) + max_size) / 2; in CalculateAllocationLimit() 128 CalculateAllocationLimit( Heap* heap, size_t current_size, size_t min_size, size_t max_size, size_t new_space_capacity, double factor, Heap::HeapGrowingMode growing_mode) CalculateAllocationLimit() argument
|
/third_party/pcre2/pcre2/src/sljit/ |
H A D | sljitUtils.c | 175 SLJIT_API_FUNC_ATTRIBUTE struct sljit_stack* SLJIT_FUNC sljit_allocate_stack(sljit_uw start_size, sljit_uw max_size, void *allocator_data) in sljit_allocate_stack() argument 182 if (start_size > max_size || start_size < 1) in sljit_allocate_stack() 189 ptr = SLJIT_MALLOC(max_size, allocator_data); in sljit_allocate_stack() 196 stack->end = stack->min_start + max_size; in sljit_allocate_stack() 239 SLJIT_API_FUNC_ATTRIBUTE struct sljit_stack* SLJIT_FUNC sljit_allocate_stack(sljit_uw start_size, sljit_uw max_size, void *allocator_data) in sljit_allocate_stack() argument 247 if (start_size > max_size || start_size < 1) in sljit_allocate_stack() 254 /* Align max_size. */ in sljit_allocate_stack() 256 max_size = (max_size + page_align) & ~page_align; in sljit_allocate_stack() 259 ptr = VirtualAlloc(NULL, max_size, MEM_RESERV in sljit_allocate_stack() [all...] |
/third_party/curl/lib/vauth/ |
H A D | krb5_gssapi.c | 199 unsigned int max_size = 0; in Curl_auth_create_gssapi_security_message() local 229 max_size = ((unsigned int)indata[1] << 16) | in Curl_auth_create_gssapi_security_message() 244 if(max_size > 0) { in Curl_auth_create_gssapi_security_message() 248 max_size = 0; in Curl_auth_create_gssapi_security_message() 262 message[1] = (max_size >> 16) & 0xFF; in Curl_auth_create_gssapi_security_message() 263 message[2] = (max_size >> 8) & 0xFF; in Curl_auth_create_gssapi_security_message() 264 message[3] = max_size & 0xFF; in Curl_auth_create_gssapi_security_message()
|
H A D | krb5_sspi.c | 270 unsigned long max_size = 0; in Curl_auth_create_gssapi_security_message() local 322 max_size = ((unsigned long)indata[1] << 16) | in Curl_auth_create_gssapi_security_message() 336 if(max_size > 0) { in Curl_auth_create_gssapi_security_message() 340 max_size = 0; in Curl_auth_create_gssapi_security_message() 362 message[1] = (max_size >> 16) & 0xFF; in Curl_auth_create_gssapi_security_message() 363 message[2] = (max_size >> 8) & 0xFF; in Curl_auth_create_gssapi_security_message() 364 message[3] = max_size & 0xFF; in Curl_auth_create_gssapi_security_message()
|
/third_party/skia/third_party/externals/libwebp/imageio/ |
H A D | imageio_util.c | 38 size_t max_size = 0; in ImgIoUtilReadFromStdin() local 50 const size_t extra_size = (max_size == 0) ? kBlockSize : max_size; in ImgIoUtilReadFromStdin() 52 void* const new_data = realloc(input, max_size + extra_size + 1); in ImgIoUtilReadFromStdin() 55 max_size += extra_size; in ImgIoUtilReadFromStdin() 57 if (size < max_size) break; in ImgIoUtilReadFromStdin()
|
/third_party/skia/third_party/externals/angle2/src/common/third_party/base/anglebase/containers/ |
H A D | mru_cache.h | 78 // The max_size is the size at which the cache will prune its members to when 82 explicit MRUCacheBase(size_type max_size) : max_size_(max_size) {} in MRUCacheBase() argument 86 size_type max_size() const { return max_size_; } in max_size() function in angle::base::MRUCacheBase 238 explicit MRUCache(typename ParentType::size_type max_size) : ParentType(max_size) {} in MRUCache() argument 264 explicit HashingMRUCache(typename ParentType::size_type max_size) : ParentType(max_size) {} in HashingMRUCache() argument
|
/third_party/ffmpeg/libavutil/ |
H A D | mem.c | 507 size_t max_size; in av_fast_realloc() local 512 max_size = atomic_load_explicit(&max_alloc_size, memory_order_relaxed); in av_fast_realloc() 514 max_size = FFMIN(max_size, UINT_MAX); in av_fast_realloc() 516 if (min_size > max_size) { in av_fast_realloc() 521 min_size = FFMIN(max_size, FFMAX(min_size + min_size / 16 + 32, min_size)); in av_fast_realloc() 537 size_t max_size; in fast_malloc() local 546 max_size = atomic_load_explicit(&max_alloc_size, memory_order_relaxed); in fast_malloc() 548 max_size = FFMIN(max_size, UINT_MA in fast_malloc() [all...] |
/third_party/mesa3d/src/util/ |
H A D | disk_cache.c | 78 uint64_t max_size; in disk_cache_create() local 122 max_size = 0; in disk_cache_create() 142 max_size = strtoul(max_size_str, &end, 10); in disk_cache_create() 144 max_size = 0; in disk_cache_create() 149 max_size *= 1024; in disk_cache_create() 153 max_size *= 1024*1024; in disk_cache_create() 159 max_size *= 1024*1024*1024; in disk_cache_create() 166 if (max_size == 0) { in disk_cache_create() 167 max_size = 1024*1024*1024; in disk_cache_create() 170 cache->max_size in disk_cache_create() [all...] |
/third_party/ltp/testcases/network/mpls/ |
H A D | mpls_lib.sh | 87 local max_size=$TST_NET_MAX_PKT 90 tst_ping -I $ip_virt_local -H $ip_virt_remote -s "10 100 1000 2000 $max_size" 91 tst_ping -I $ip6_virt_local -H $ip6_virt_remote -s "10 100 1000 2000 $max_size" 95 tst_netload -S $ip_virt_local -H $ip_virt_remote -T $type -A $max_size 96 tst_netload -S $ip6_virt_local -H $ip6_virt_remote -T $type -A $max_size
|
H A D | mpls02.sh | 41 local max_size=$TST_NET_MAX_PKT 44 tst_ping -I $ip_loc -H $ip_rmt -s "10 100 1000 2000 $max_size" 47 tst_netload -S $ip_loc -H $ip_rmt -T $type -A $max_size
|
/third_party/backends/backend/genesys/ |
H A D | test_settings.cpp | 79 unsigned max_size = 50; in get_testing_device_name() local 80 name.resize(max_size); in get_testing_device_name() 81 name.resize(std::snprintf(&name.front(), max_size, "test device:0x%04x:0x%04x", in get_testing_device_name()
|
/third_party/alsa-utils/axfer/ |
H A D | container.c | 218 cntr->max_size = parser->max_size; in container_parser_init() 276 cntr->max_size = builder->max_size; in container_builder_init() 299 byte_count = cntr->max_size; in container_context_pre_process() 332 cntr->max_size -= cntr->max_size / bytes_per_frame; in container_context_pre_process() 390 if (cntr->handled_byte_count > cntr->max_size - byte_count) in container_context_process_frames() 391 byte_count = cntr->max_size - cntr->handled_byte_count; in container_context_process_frames() 402 if (cntr->handled_byte_count == cntr->max_size) in container_context_process_frames() [all...] |
H A D | container.h | 51 uint64_t max_size; member 97 uint64_t max_size; member 105 uint64_t max_size; member
|
/third_party/skia/third_party/externals/libwebp/src/enc/ |
H A D | histogram_enc.c | 129 memory += set->max_size * sizeof(*set->histograms); in HistogramSetResetPointers() 130 for (i = 0; i < set->max_size; ++i) { in HistogramSetResetPointers() 156 set->max_size = size; in VP8LAllocateHistogramSet() 168 const int size = set->max_size; in VP8LHistogramSetClear() 175 set->max_size = size; in VP8LHistogramSetClear() 590 assert(image_histo->max_size == orig_histo->max_size); in HistogramCopyAndAnalyze() 591 for (cluster_id = 0, i = 0; i < orig_histo->max_size; ++i) { in HistogramCopyAndAnalyze() 610 assert(cluster_id <= image_histo->max_size); in HistogramCopyAndAnalyze() 741 int max_size; member 744 HistoQueueInit(HistoQueue* const histo_queue, const int max_size) HistoQueueInit() argument [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | dca.c | 50 int max_size) in avpriv_dca_convert_bitstream() 56 if ((unsigned) src_size > (unsigned) max_size) in avpriv_dca_convert_bitstream() 57 src_size = max_size; in avpriv_dca_convert_bitstream() 74 init_put_bits(&pb, dst, max_size); in avpriv_dca_convert_bitstream() 49 avpriv_dca_convert_bitstream(const uint8_t *src, int src_size, uint8_t *dst, int max_size) avpriv_dca_convert_bitstream() argument
|
/third_party/node/deps/v8/tools/testrunner/testproc/ |
H A D | combiner.py | 85 max_size = self._rng.randint(self._min_size, self._max_size) 86 sample = groups.sample(self._rng, max_size) 117 def sample(self, rng, max_size): 124 return [rng.choice(tests) for _ in range(0, max_size)]
|
/third_party/cups-filters/cupsfilters/ |
H A D | image.c | 567 max_size; /* Maximum cache size in bytes */ in cupsImageSetMaxTiles() local 585 switch (sscanf(cache_env, "%d%254s", &max_size, cache_units)) in cupsImageSetMaxTiles() 588 max_size = 32 * 1024 * 1024; in cupsImageSetMaxTiles() 591 max_size *= 4 * CUPS_TILE_SIZE * CUPS_TILE_SIZE; in cupsImageSetMaxTiles() 595 max_size *= 1024 * 1024 * 1024; in cupsImageSetMaxTiles() 597 max_size *= 1024 * 1024; in cupsImageSetMaxTiles() 599 max_size *= 1024; in cupsImageSetMaxTiles() 601 max_size *= 4 * CUPS_TILE_SIZE * CUPS_TILE_SIZE; in cupsImageSetMaxTiles() 606 max_size = 32 * 1024 * 1024; in cupsImageSetMaxTiles() 608 if (cache_size > max_size) in cupsImageSetMaxTiles() [all...] |
/third_party/ltp/testcases/kernel/syscalls/mlock2/ |
H A D | mlock202.c | 39 size_t *max_size; member 57 new_limit.rlim_cur = *tc->max_size; in verify_mlock2() 58 new_limit.rlim_max = *tc->max_size; in verify_mlock2()
|
/third_party/skia/third_party/externals/tint/fuzzers/tint_spirv_tools_fuzzer/ |
H A D | mutator_cache.cc | 21 MutatorCache::MutatorCache(size_t max_size) in MutatorCache() argument 22 : map_(), entries_(), max_size_(max_size) { in MutatorCache() 23 assert(max_size && "`max_size` may not be 0"); in MutatorCache()
|