/external/grpc-grpc/test/core/gpr/ |
D | useful_test.cc | 32 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/ |
D | string.cc | 92 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()
|
D | useful.h | 25 #define GPR_MAX(a, b) ((a) > (b) ? (a) : (b)) macro
|
/external/grpc-grpc/test/core/util/ |
D | fuzzer_util.cc | 42 cap = GPR_MAX(3 * cap / 2, cap + 8); in grpc_fuzzer_get_next_string()
|
D | slice_splitter.cc | 117 capacity = GPR_MAX(capacity * 2, GRPC_SLICE_LENGTH(slices[i]) + length); in grpc_slice_merge()
|
D | test_config.cc | 214 static char g_alt_stack[GPR_MAX(MINSIGSTKSZ, 65536)];
|
/external/grpc-grpc/src/core/ext/transport/chttp2/transport/ |
D | hpack_table.cc | 283 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()
|
D | frame_ping.cc | 116 t->ping_ack_capacity = GPR_MAX(t->ping_ack_capacity * 3 / 2, 3); in grpc_chttp2_ping_parser_parse()
|
D | writing.cc | 156 static_cast<uint32_t> GPR_MAX( in report_stall() 322 return static_cast<uint32_t> GPR_MAX( in stream_remote_window()
|
D | hpack_encoder.cc | 652 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/ |
D | bdp_estimator.cc | 58 estimate_ = GPR_MAX(accumulator_, estimate_ * 2); in CompletePing()
|
/external/grpc-grpc/test/core/bad_client/tests/ |
D | window_overflow.cc | 60 g_cap = GPR_MAX(g_count + len, g_cap * 2); in addbuf()
|
D | head_of_line_blocking.cc | 103 g_cap = GPR_MAX(g_count + len, g_cap * 2); in addbuf()
|
/external/grpc-grpc/src/core/lib/http/ |
D | parser.cc | 204 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/ |
D | channel_init.cc | 56 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/ |
D | bdp_estimator_test.cc | 128 EXPECT_LE(est.EstimateBdp(), GPR_MAX(65536, 2 * NextPow2(max))) in TEST_P()
|
/external/grpc-grpc/src/core/lib/iomgr/ |
D | timer_heap.cc | 101 GPR_MAX(heap->timer_capacity + 1, heap->timer_capacity * 3 / 2); in grpc_timer_heap_add()
|
D | ev_epollex_linux.cc | 1397 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/ |
D | avl.cc | 66 : 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/ |
D | stats.cc | 36 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/ |
D | alts_grpc_record_protocol_common.cc | 42 rp->iovec_buf_length = GPR_MAX(sb->count, 2 * rp->iovec_buf_length); in ensure_iovec_buf_size()
|
D | alts_zero_copy_grpc_protector.cc | 273 GPR_MAX(*max_protected_frame_size, kMinFrameLength); in alts_zero_copy_grpc_protector_create()
|
/external/grpc-grpc/test/cpp/microbenchmarks/ |
D | bm_fullstack_trickle.cc | 308 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/ |
D | hpack_encoder_test.cc | 91 cap_to_delete = GPR_MAX(2 * cap_to_delete, 1000); in verify()
|
/external/grpc-grpc/src/core/lib/security/transport/ |
D | server_auth_filter.cc | 71 result.capacity = GPR_MAX(result.capacity + 8, result.capacity * 2); in metadata_batch_to_md_array()
|