/external/grpc-grpc/test/core/gpr/ |
useful_test.cc | 35 GPR_ASSERT(GPR_CLAMP(1, 0, 2) == 1); 36 GPR_ASSERT(GPR_CLAMP(0, 0, 2) == 0); 37 GPR_ASSERT(GPR_CLAMP(2, 0, 2) == 2); 38 GPR_ASSERT(GPR_CLAMP(-1, 0, 2) == 0); 39 GPR_ASSERT(GPR_CLAMP(3, 0, 2) == 2);
|
/external/grpc-grpc/src/core/lib/transport/ |
pid_controller.cc | 34 error_integral_ = GPR_CLAMP(error_integral_, -args_.integral_range(), 43 new_control_value = GPR_CLAMP(new_control_value, args_.min_control_value(),
|
static_metadata.h | 585 ? (grpc_metadata_batch_callouts_index)GPR_CLAMP( \
|
/external/grpc-grpc/src/core/lib/gpr/ |
atm.cc | 31 new_value = GPR_CLAMP(current_value + delta, min, max);
|
useful.h | 26 #define GPR_CLAMP(a, min, max) ((a) < (min) ? (min) : (a) > (max) ? (max) : (a))
|
/external/grpc-grpc/src/core/lib/debug/ |
stats_data.cc | 354 value = GPR_CLAMP(value, 0, 262144); 377 value = GPR_CLAMP(value, 0, 1024); 400 value = GPR_CLAMP(value, 0, 16777216); 423 value = GPR_CLAMP(value, 0, 1024); 446 value = GPR_CLAMP(value, 0, 16777216); 469 value = GPR_CLAMP(value, 0, 16777216); 492 value = GPR_CLAMP(value, 0, 1024); 517 value = GPR_CLAMP(value, 0, 16777216); 542 value = GPR_CLAMP(value, 0, 1024); 567 value = GPR_CLAMP(value, 0, 1024) [all...] |
/external/grpc-grpc/src/core/ext/transport/chttp2/transport/ |
flow_control.cc | 196 const uint32_t announce = static_cast<uint32_t> GPR_CLAMP( 270 uint32_t announce = static_cast<uint32_t> GPR_CLAMP( 367 static_cast<int32_t> GPR_CLAMP(target, 128, INT32_MAX); 377 int32_t frame_size = static_cast<int32_t> GPR_CLAMP( 378 GPR_MAX((int32_t)GPR_CLAMP(bw_dbl, 0, INT_MAX) / 1000,
|
frame_settings.cc | 201 GPR_CLAMP(parser->value, sp->min_value, sp->max_value);
|
chttp2_transport.cc | [all...] |
/external/grpc-grpc/test/core/util/ |
histogram.cc | 65 size_t bucket = bucket_for_unchecked(h, GPR_CLAMP(x, 1.0, h->max_possible)); 189 return GPR_CLAMP(upper_bound - (upper_bound - lower_bound) *
|
/external/grpc-grpc/src/core/lib/iomgr/ |
tcp_posix.cc | 294 size_t sz = ((static_cast<size_t> GPR_CLAMP(target, tcp->min_read_chunk_size, [all...] |
timer_generic.cc | 498 GPR_CLAMP(computed_deadline_delta, MIN_QUEUE_WINDOW_DURATION,
|
resource_quota.cc | 300 GPR_CLAMP((gpr_atm)((1.0 - ((double)resource_quota->free_pool) / [all...] |
ev_epoll1_linux.cc | 512 g_num_neighborhoods = GPR_CLAMP(gpr_cpu_num_cores(), 1, MAX_NEIGHBORHOODS); [all...] |