Home
last modified time | relevance | path

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

12

/third_party/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()
/third_party/grpc/src/core/ext/transport/chttp2/transport/
Dhpack_table.cc138 rebuild_ents(tbl, GPR_MAX(tbl->max_entries, 2 * tbl->cap_entries)); in grpc_chttp2_hptbl_set_current_table_size()
140 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.cc177 static_cast<uint32_t> GPR_MAX( in report_stall()
326 return static_cast<uint32_t> GPR_MAX( in stream_remote_window()
/third_party/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.cc216 static char g_alt_stack[GPR_MAX(MINSIGSTKSZ, 65536)];
/third_party/grpc/src/core/lib/transport/
Dbdp_estimator.cc58 estimate_ = GPR_MAX(accumulator_, estimate_ * 2); in CompletePing()
/third_party/grpc/src/core/lib/gpr/
Duseful.h25 #define GPR_MAX(a, b) ((a) > (b) ? (a) : (b)) macro
Dstring.cc92 out->capacity = GPR_MAX(8, 2 * out->capacity); in dump_out_append()
293 *capstrs = GPR_MAX(8, 2 * *capstrs); in add_string_to_split()
/third_party/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()
/third_party/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()
/third_party/grpc/src/core/lib/http/
Dparser.cc224 GPR_MAX(parser->hdr_capacity + 1, parser->hdr_capacity * 3 / 2); in add_header()
283 parser->body_capacity = GPR_MAX(8, parser->body_capacity * 3 / 2); in addbyte_body()
/third_party/grpc/test/core/transport/
Dbdp_estimator_test.cc128 EXPECT_LE(est.EstimateBdp(), GPR_MAX(65536, 2 * NextPow2(max))) in TEST_P()
/third_party/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_poll_posix.cc886 GPR_MAX(pollset->fd_capacity + 8, pollset->fd_count * 3 / 2);
1210 GPR_MAX(8, 2 * pollset_set->pollset_capacity);
1259 bag->pollset_set_capacity = GPR_MAX(8, 2 * bag->pollset_set_capacity);
1296 pollset_set->fd_capacity = GPR_MAX(8, 2 * pollset_set->fd_capacity);
Dev_epollex_linux.cc1365 pss->fd_capacity = GPR_MAX(pss->fd_capacity * 2, 8);
1474 pss->pollset_capacity = GPR_MAX(pss->pollset_capacity * 2, 8);
1528 a->fd_capacity = GPR_MAX(2 * a->fd_capacity, a->fd_count + b->fd_count);
1546 GPR_MAX(2 * a->pollset_capacity, a->pollset_count + b->pollset_count);
/third_party/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()
/third_party/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.cc283 GPR_MAX(*max_protected_frame_size, kMinFrameLength); in alts_zero_copy_grpc_protector_create()
/third_party/grpc/src/core/lib/debug/
Dstats.cc41 g_num_cores = GPR_MAX(1, gpr_cpu_num_cores()); in grpc_stats_init()
/third_party/grpc/test/cpp/microbenchmarks/
Dbm_fullstack_trickle.cc306 i < GPR_MAX(FLAGS_warmup_iterations, FLAGS_warmup_megabytes * 1024 * in BM_PumpStreamServerToClient_Trickle()
419 i < GPR_MAX(FLAGS_warmup_iterations, FLAGS_warmup_megabytes * 1024 * in BM_PumpUnbalancedUnary_Trickle()
/third_party/grpc/src/core/ext/filters/client_idle/
Dclient_idle_filter.cc120 return GPR_MAX( in GetClientIdleTimeout()
/third_party/grpc/src/core/lib/security/context/
Dsecurity_context.cc225 GPR_MAX(properties_.capacity + 8, properties_.capacity * 2); in ensure_capacity()

12