Home
last modified time | relevance | path

Searched refs:GPR_UNLIKELY (Results 1 – 16 of 16) sorted by relevance

/external/grpc-grpc/src/core/ext/transport/chttp2/transport/
Dbin_decoder.cc58 if (GPR_UNLIKELY((decode_table[input_ptr[i]] & 0xC0) != 0)) { in input_is_valid()
89 if (GPR_UNLIKELY(GRPC_SLICE_LENGTH(slice) - len > 2)) { in grpc_chttp2_base64_infer_length_after_decode()
96 if (GPR_UNLIKELY(tail_case == 1)) { in grpc_chttp2_base64_infer_length_after_decode()
167 if (GPR_UNLIKELY(input_length % 4 != 0)) { in grpc_chttp2_base64_decode()
193 if (GPR_UNLIKELY(!grpc_base64_decode_partial(&ctx))) { in grpc_chttp2_base64_decode()
212 if (GPR_UNLIKELY(input_length % 4 == 1)) { in grpc_chttp2_base64_decode_with_length()
222 if (GPR_UNLIKELY(output_length > in grpc_chttp2_base64_decode_with_length()
240 if (GPR_UNLIKELY(!grpc_base64_decode_partial(&ctx))) { in grpc_chttp2_base64_decode_with_length()
Dparsing.cc425 if (GPR_UNLIKELY( in on_initial_header()
554 if (GPR_UNLIKELY(is_continuation)) { in init_header_frame_parser()
573 } else if (GPR_UNLIKELY(t->last_new_stream_id >= t->incoming_stream_id)) { in init_header_frame_parser()
581 } else if (GPR_UNLIKELY((t->incoming_stream_id & 1) == 0)) { in init_header_frame_parser()
587 } else if (GPR_UNLIKELY( in init_header_frame_parser()
596 if (GPR_UNLIKELY(s == nullptr)) { in init_header_frame_parser()
606 if (GPR_UNLIKELY(s->read_closed)) { in init_header_frame_parser()
Dwriting.cc345 if (GPR_UNLIKELY(!grpc_stream_compress( in FlushCompressedBytes()
376 if (GPR_UNLIKELY(!grpc_stream_compress( in CompressMoreBytes()
Dchttp2_transport.cc737 if (GPR_UNLIKELY(s->included[i])) { in destroy_stream_locked()
1132 if (GPR_UNLIKELY(t->is_client && in grpc_chttp2_add_incoming_goaway()
2745 if (GPR_UNLIKELY(error != GRPC_ERROR_CANCELLED)) { in keepalive_watchdog_fired_locked()
/external/grpc-grpc/src/core/ext/filters/client_channel/lb_policy/grpclb/
Dload_balancer_api.cc32 if (GPR_UNLIKELY(!pb_decode(stream, grpc_lb_v1_Server_fields, &server))) { in count_serverlist()
55 if (GPR_UNLIKELY(!pb_decode(stream, grpc_lb_v1_Server_fields, server))) { in decode_serverlist()
170 if (GPR_UNLIKELY( in grpc_grpclb_initial_response_parse()
201 if (GPR_UNLIKELY(!status)) { in grpc_grpclb_response_parse_serverlist()
217 if (GPR_UNLIKELY(!status)) { in grpc_grpclb_response_parse_serverlist()
Dgrpclb.cc398 if (GPR_UNLIKELY(server->port >> 16 != 0)) { in IsServerValid()
406 if (GPR_UNLIKELY(ip->size != 4 && ip->size != 16)) { in IsServerValid()
711 if (GPR_UNLIKELY(call_error != GRPC_CALL_OK)) { in SendClientLoadReportLocked()
933 if (GPR_UNLIKELY(addresses->addresses[i].user_data != nullptr)) { in ExtractBalancerAddresses()
1286 if (GPR_UNLIKELY(arg == nullptr || arg->type != GRPC_ARG_POINTER)) { in ProcessChannelArgsLocked()
1637 if (GPR_UNLIKELY(rr_policy_ == nullptr)) { in CreateRoundRobinPolicyLocked()
/external/grpc-grpc/src/core/ext/filters/client_channel/
Dclient_channel.cc394 if (GPR_UNLIKELY(new_lb_policy == nullptr)) { in create_new_lb_policy_locked()
1176 if (GPR_UNLIKELY(calld->bytes_buffered_for_retry > in pending_batches_add()
1667 if (GPR_UNLIKELY((retry_state->trailing_metadata_available || in recv_initial_metadata_ready()
1757 if (GPR_UNLIKELY( in recv_message_ready()
1854 if (GPR_UNLIKELY(retry_state->recv_initial_metadata_ready_deferred_batch != in add_closures_for_deferred_recv_callbacks()
1866 if (GPR_UNLIKELY(retry_state->recv_message_ready_deferred_batch != in add_closures_for_deferred_recv_callbacks()
2207 if (GPR_UNLIKELY(retry_state->send_initial_metadata.idx.named in add_retriable_send_initial_metadata_op()
2213 if (GPR_UNLIKELY(calld->num_attempts_completed > 0)) { in add_retriable_send_initial_metadata_op()
2222 if (GPR_UNLIKELY(error != GRPC_ERROR_NONE)) { in add_retriable_send_initial_metadata_op()
2472 if (GPR_UNLIKELY((retry_state->recv_trailing_metadata_internal_batch != in add_subchannel_batches_for_pending_batches()
[all …]
Dsubchannel_index.cc77 if (GPR_UNLIKELY(g_force_creation)) return 1; in grpc_subchannel_key_compare()
Dsubchannel.cc875 if (GPR_UNLIKELY(error != GRPC_ERROR_NONE)) { in CreateCall()
/external/grpc-grpc/include/grpc/impl/codegen/
Dport_platform.h549 #define GPR_UNLIKELY(x) __builtin_expect((x), 0) macro
552 #define GPR_UNLIKELY(x) (x) macro
Dlog.h96 if (GPR_UNLIKELY(!(x))) { \
/external/grpc-grpc/src/core/ext/filters/http/message_compress/
Dmessage_compress_filter.cc119 if (GPR_UNLIKELY(!grpc_compression_algorithm_parse( in process_send_initial_metadata()
128 if (GPR_UNLIKELY(!GPR_BITGET(channeld->enabled_algorithms_bitset, in process_send_initial_metadata()
/external/grpc-grpc/src/core/ext/filters/client_channel/resolver/dns/native/
Ddns_resolver.cc312 if (GPR_UNLIKELY(0 != strcmp(args.uri->authority, ""))) { in CreateResolver()
/external/grpc-grpc/src/core/ext/transport/cronet/transport/
Dcronet_transport.cc363 } else if (GPR_UNLIKELY(curr->next == nullptr)) { in remove_from_storage()
1061 if (GPR_UNLIKELY(write_slice_buffer.count != 1)) { in execute_stream_op()
1475 if (GPR_UNLIKELY(args->args[i].type != GRPC_ARG_INTEGER)) { in grpc_create_cronet_transport()
/external/grpc-grpc/src/core/ext/filters/client_channel/lb_policy/round_robin/
Dround_robin.cc669 if (GPR_UNLIKELY(arg == nullptr || arg->type != GRPC_ARG_POINTER)) { in UpdateLocked()
/external/grpc-grpc/test/cpp/microbenchmarks/
Dbm_chttp2_hpack.cc797 if (GPR_UNLIKELY( in OnInitialHeader()