Home
last modified time | relevance | path

Searched refs:GPR_MAX (Results 1 – 25 of 40) sorted by relevance

12

/external/grpc-grpc/test/core/gpr/
Duseful_test.cc32 GPR_ASSERT(GPR_MAX(1, 2) == 2); in main()
34 GPR_ASSERT(GPR_MAX(2, 1) == 2); in main()
/external/grpc-grpc/src/core/lib/gpr/
Dstring.cc92 out->capacity = GPR_MAX(8, 2 * out->capacity); in dump_out_append()
274 sv->capacity = GPR_MAX(sv->capacity + 8, sv->capacity * 2); in gpr_strvec_add()
303 *capstrs = GPR_MAX(8, 2 * *capstrs); in add_string_to_split()
Duseful.h25 #define GPR_MAX(a, b) ((a) > (b) ? (a) : (b)) macro
/external/grpc-grpc/test/core/util/
Dfuzzer_util.cc42 cap = GPR_MAX(3 * cap / 2, cap + 8); in grpc_fuzzer_get_next_string()
Dslice_splitter.cc117 capacity = GPR_MAX(capacity * 2, GRPC_SLICE_LENGTH(slices[i]) + length); in grpc_slice_merge()
Dtest_config.cc214 static char g_alt_stack[GPR_MAX(MINSIGSTKSZ, 65536)];
/external/grpc-grpc/src/core/ext/transport/chttp2/transport/
Dhpack_table.cc283 rebuild_ents(tbl, GPR_MAX(tbl->max_entries, 2 * tbl->cap_entries)); in grpc_chttp2_hptbl_set_current_table_size()
285 uint32_t new_cap = GPR_MAX(tbl->max_entries, 16u); in grpc_chttp2_hptbl_set_current_table_size()
Dframe_ping.cc116 t->ping_ack_capacity = GPR_MAX(t->ping_ack_capacity * 3 / 2, 3); in grpc_chttp2_ping_parser_parse()
Dwriting.cc156 static_cast<uint32_t> GPR_MAX( in report_stall()
322 return static_cast<uint32_t> GPR_MAX( in stream_remote_window()
Dhpack_encoder.cc652 rebuild_elems(c, GPR_MAX(c->max_table_elems, 2 * c->cap_table_elems)); in grpc_chttp2_hpack_compressor_set_max_table_size()
654 uint32_t new_cap = GPR_MAX(c->max_table_elems, 16); in grpc_chttp2_hpack_compressor_set_max_table_size()
/external/grpc-grpc/src/core/lib/transport/
Dbdp_estimator.cc58 estimate_ = GPR_MAX(accumulator_, estimate_ * 2); in CompletePing()
/external/grpc-grpc/test/core/bad_client/tests/
Dwindow_overflow.cc60 g_cap = GPR_MAX(g_count + len, g_cap * 2); in addbuf()
Dhead_of_line_blocking.cc103 g_cap = GPR_MAX(g_count + len, g_cap * 2); in addbuf()
/external/grpc-grpc/src/core/lib/http/
Dparser.cc204 GPR_MAX(parser->hdr_capacity + 1, parser->hdr_capacity * 3 / 2); in add_header()
263 parser->body_capacity = GPR_MAX(8, parser->body_capacity * 3 / 2); in addbyte_body()
/external/grpc-grpc/src/core/lib/surface/
Dchannel_init.cc56 g_slots[type].cap_slots = GPR_MAX(8, 3 * g_slots[type].cap_slots / 2); in grpc_channel_init_register_stage()
/external/grpc-grpc/test/core/transport/
Dbdp_estimator_test.cc128 EXPECT_LE(est.EstimateBdp(), GPR_MAX(65536, 2 * NextPow2(max))) in TEST_P()
/external/grpc-grpc/src/core/lib/iomgr/
Dtimer_heap.cc101 GPR_MAX(heap->timer_capacity + 1, heap->timer_capacity * 3 / 2); in grpc_timer_heap_add()
Dev_epollex_linux.cc1397 pss->fd_capacity = GPR_MAX(pss->fd_capacity * 2, 8);
1506 pss->pollset_capacity = GPR_MAX(pss->pollset_capacity * 2, 8);
1560 a->fd_capacity = GPR_MAX(2 * a->fd_capacity, a->fd_count + b->fd_count);
1578 GPR_MAX(2 * a->pollset_capacity, a->pollset_count + b->pollset_count);
/external/grpc-grpc/src/core/lib/avl/
Davl.cc66 : 1 + GPR_MAX(calculate_height(node->left), in calculate_height()
90 node->height = 1 + GPR_MAX(node_height(left), node_height(right)); in new_node()
/external/grpc-grpc/src/core/lib/debug/
Dstats.cc36 g_num_cores = GPR_MAX(1, gpr_cpu_num_cores()); in grpc_stats_init()
/external/grpc-grpc/src/core/tsi/alts/zero_copy_frame_protector/
Dalts_grpc_record_protocol_common.cc42 rp->iovec_buf_length = GPR_MAX(sb->count, 2 * rp->iovec_buf_length); in ensure_iovec_buf_size()
Dalts_zero_copy_grpc_protector.cc273 GPR_MAX(*max_protected_frame_size, kMinFrameLength); in alts_zero_copy_grpc_protector_create()
/external/grpc-grpc/test/cpp/microbenchmarks/
Dbm_fullstack_trickle.cc308 i < GPR_MAX(FLAGS_warmup_iterations, FLAGS_warmup_megabytes * 1024 * in BM_PumpStreamServerToClient_Trickle()
421 i < GPR_MAX(FLAGS_warmup_iterations, FLAGS_warmup_megabytes * 1024 * in BM_PumpUnbalancedUnary_Trickle()
/external/grpc-grpc/test/core/transport/chttp2/
Dhpack_encoder_test.cc91 cap_to_delete = GPR_MAX(2 * cap_to_delete, 1000); in verify()
/external/grpc-grpc/src/core/lib/security/transport/
Dserver_auth_filter.cc71 result.capacity = GPR_MAX(result.capacity + 8, result.capacity * 2); in metadata_batch_to_md_array()

12