Home
last modified time | relevance | path

Searched refs:GPR_CLAMP (Results 1 – 14 of 14) sorted by relevance

/external/grpc-grpc/src/core/lib/debug/
Dstats_data.cc354 value = GPR_CLAMP(value, 0, 262144); in grpc_stats_inc_call_initial_size()
377 value = GPR_CLAMP(value, 0, 1024); in grpc_stats_inc_poll_events_returned()
400 value = GPR_CLAMP(value, 0, 16777216); in grpc_stats_inc_tcp_write_size()
423 value = GPR_CLAMP(value, 0, 1024); in grpc_stats_inc_tcp_write_iov_size()
446 value = GPR_CLAMP(value, 0, 16777216); in grpc_stats_inc_tcp_read_size()
469 value = GPR_CLAMP(value, 0, 16777216); in grpc_stats_inc_tcp_read_offer()
492 value = GPR_CLAMP(value, 0, 1024); in grpc_stats_inc_tcp_read_offer_iov_size()
517 value = GPR_CLAMP(value, 0, 16777216); in grpc_stats_inc_http2_send_message_size()
542 value = GPR_CLAMP(value, 0, 1024); in grpc_stats_inc_http2_send_initial_metadata_per_write()
567 value = GPR_CLAMP(value, 0, 1024); in grpc_stats_inc_http2_send_message_per_write()
[all …]
/external/grpc-grpc/test/core/gpr/
Duseful_test.cc35 GPR_ASSERT(GPR_CLAMP(1, 0, 2) == 1); in main()
36 GPR_ASSERT(GPR_CLAMP(0, 0, 2) == 0); in main()
37 GPR_ASSERT(GPR_CLAMP(2, 0, 2) == 2); in main()
38 GPR_ASSERT(GPR_CLAMP(-1, 0, 2) == 0); in main()
39 GPR_ASSERT(GPR_CLAMP(3, 0, 2) == 2); in main()
/external/grpc-grpc/src/core/lib/transport/
Dpid_controller.cc34 error_integral_ = GPR_CLAMP(error_integral_, -args_.integral_range(), in Update()
43 new_control_value = GPR_CLAMP(new_control_value, args_.min_control_value(), in Update()
Dstatic_metadata.h585 ? (grpc_metadata_batch_callouts_index)GPR_CLAMP( \
/external/grpc-grpc/src/core/ext/transport/chttp2/transport/
Dflow_control.cc196 const uint32_t announce = static_cast<uint32_t> GPR_CLAMP( in MaybeSendUpdate()
270 uint32_t announce = static_cast<uint32_t> GPR_CLAMP( in MaybeSendUpdate()
367 static_cast<int32_t> GPR_CLAMP(target, 128, INT32_MAX); in PeriodicUpdate()
377 int32_t frame_size = static_cast<int32_t> GPR_CLAMP( in PeriodicUpdate()
378 GPR_MAX((int32_t)GPR_CLAMP(bw_dbl, 0, INT_MAX) / 1000, in PeriodicUpdate()
Dframe_settings.cc201 GPR_CLAMP(parser->value, sp->min_value, sp->max_value); in grpc_chttp2_settings_parser_parse()
Dchttp2_transport.cc1101 uint32_t use_value = GPR_CLAMP(value, sp->min_value, sp->max_value); in queue_setting_update()
/external/grpc-grpc/src/core/lib/gpr/
Datm.cc31 new_value = GPR_CLAMP(current_value + delta, min, max); in gpr_atm_no_barrier_clamped_add()
Duseful.h26 #define GPR_CLAMP(a, min, max) ((a) < (min) ? (min) : (a) > (max) ? (max) : (a)) macro
/external/grpc-grpc/test/core/util/
Dhistogram.cc65 size_t bucket = bucket_for_unchecked(h, GPR_CLAMP(x, 1.0, h->max_possible)); in bucket_for()
189 return GPR_CLAMP(upper_bound - (upper_bound - lower_bound) * in threshold_for_count_below()
/external/grpc-grpc/src/core/lib/iomgr/
Dtcp_posix.cc294 size_t sz = ((static_cast<size_t> GPR_CLAMP(target, tcp->min_read_chunk_size, in get_target_read_size()
1043 tcp_read_chunk_size = GPR_CLAMP(tcp_read_chunk_size, tcp_min_read_chunk_size, in grpc_tcp_create()
Dtimer_generic.cc498 GPR_CLAMP(computed_deadline_delta, MIN_QUEUE_WINDOW_DURATION, in refill_heap()
Dresource_quota.cc300 GPR_CLAMP((gpr_atm)((1.0 - ((double)resource_quota->free_pool) / in rq_update_estimate()
Dev_epoll1_linux.cc512 g_num_neighborhoods = GPR_CLAMP(gpr_cpu_num_cores(), 1, MAX_NEIGHBORHOODS); in pollset_global_init()