Home
last modified time | relevance | path

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

12

/third_party/pulseaudio/src/pulsecore/
Dsvolume_c.c40 if (PA_UNLIKELY(++channel >= channels)) in pa_volume_u8_c()
54 if (PA_UNLIKELY(++channel >= channels)) in pa_volume_alaw_c()
68 if (PA_UNLIKELY(++channel >= channels)) in pa_volume_ulaw_c()
84 if (PA_UNLIKELY(++channel >= channels)) in pa_volume_s16ne_c()
100 if (PA_UNLIKELY(++channel >= channels)) in pa_volume_s16re_c()
113 if (PA_UNLIKELY(++channel >= channels)) in pa_volume_float32ne_c()
130 if (PA_UNLIKELY(++channel >= channels)) in pa_volume_float32re_c()
148 if (PA_UNLIKELY(++channel >= channels)) in pa_volume_s32ne_c()
166 if (PA_UNLIKELY(++channel >= channels)) in pa_volume_s32re_c()
185 if (PA_UNLIKELY(++channel >= channels)) in pa_volume_s24ne_c()
[all …]
Dmix.c186 if (PA_UNLIKELY(++channel >= channels)) in pa_mix2_s16ne()
238 if (PA_UNLIKELY(++channel >= channels)) in pa_mix_generic_s16ne()
277 if (PA_UNLIKELY(++channel >= channels)) in pa_mix_s16re_c()
307 if (PA_UNLIKELY(++channel >= channels)) in pa_mix_s32ne_c()
337 if (PA_UNLIKELY(++channel >= channels)) in pa_mix_s32re_c()
365 if (PA_UNLIKELY(++channel >= channels)) in pa_mix_s24ne_c()
393 if (PA_UNLIKELY(++channel >= channels)) in pa_mix_s24re_c()
423 if (PA_UNLIKELY(++channel >= channels)) in pa_mix_s24_32ne_c()
453 if (PA_UNLIKELY(++channel >= channels)) in pa_mix_s24_32re_c()
482 if (PA_UNLIKELY(++channel >= channels)) in pa_mix_u8_c()
[all …]
Dmacro.h133 if (PA_UNLIKELY(!(expr))) { \
141 if (PA_UNLIKELY(!(expr))) { \
154 if (PA_UNLIKELY(!(expr))) { \
Dmemblockq.c126 if (PA_UNLIKELY(!bq->blocks)) { in fix_current_read()
131 if (PA_UNLIKELY(!bq->current_read)) in fix_current_read()
135 while (PA_UNLIKELY(bq->current_read->index > bq->read_index)) in fix_current_read()
143 …while (PA_LIKELY(bq->current_read != NULL) && PA_UNLIKELY(bq->current_read->index + (int64_t) bq->… in fix_current_read()
154 if (PA_UNLIKELY(!bq->blocks)) { in fix_current_write()
159 if (PA_UNLIKELY(!bq->current_write)) in fix_current_write()
163 …while (PA_UNLIKELY(bq->current_write->index + (int64_t) bq->current_write->chunk.length <= bq->wri… in fix_current_write()
171 …while (PA_LIKELY(bq->current_write != NULL) && PA_UNLIKELY(bq->current_write->index > bq->write_in… in fix_current_write()
Dcore-rtclock.c209 if (PA_UNLIKELY(!ts)) in pa_timespec_load()
220 if (PA_UNLIKELY(v == PA_USEC_INVALID)) { in pa_timespec_store()
Dsource-output.c79 if (PA_LIKELY(data->format) && PA_UNLIKELY(!pa_format_info_is_pcm(data->format))) in pa_source_output_new_data_is_passthrough()
82 if (PA_UNLIKELY(data->flags & PA_SOURCE_OUTPUT_PASSTHROUGH)) in pa_source_output_new_data_is_passthrough()
1079 if (PA_UNLIKELY(!pa_format_info_is_pcm(o->format))) in pa_source_output_is_passthrough()
1082 if (PA_UNLIKELY(o->flags & PA_SOURCE_OUTPUT_PASSTHROUGH)) in pa_source_output_is_passthrough()
1442 if (PA_UNLIKELY(!root_source)) in update_volume_due_to_moving()
Dtime-smoother_2.c146 if PA_UNLIKELY((s->init)) { in pa_smoother_2_put()
Dsink-input.c198 if (PA_LIKELY(data->format) && PA_UNLIKELY(!pa_format_info_is_pcm(data->format))) in pa_sink_input_new_data_is_passthrough()
201 if (PA_UNLIKELY(data->flags & PA_SINK_INPUT_PASSTHROUGH)) in pa_sink_input_new_data_is_passthrough()
1550 if (PA_UNLIKELY(!pa_format_info_is_pcm(i->format))) in pa_sink_input_is_passthrough()
1553 if (PA_UNLIKELY(i->flags & PA_SINK_INPUT_PASSTHROUGH)) in pa_sink_input_is_passthrough()
1941 if (PA_UNLIKELY(!root_sink)) in update_volume_due_to_moving()
Dmodule.c86 if (PA_UNLIKELY(pa_run_from_build_tree())) { in pa_module_exists()
/third_party/pulseaudio/src/pulse/
Dgccmacro.h133 #define PA_UNLIKELY(x) (__builtin_expect(!!(x),0)) macro
136 #define PA_UNLIKELY(x) (x) macro
158 (PA_UNLIKELY(_x > _high) ? _high : (PA_UNLIKELY(_x < _low) ? _low : _x)); \
161 #define PA_CLAMP_UNLIKELY(x, low, high) (PA_UNLIKELY((x) > (high)) ? (high) : (PA_UNLIKELY((x) < (l…
Dtimeval.c80 if (PA_UNLIKELY(pa_timeval_cmp(a, b) < 0)) { in pa_timeval_diff()
131 if (PA_UNLIKELY(tv->tv_sec > PA_INT_TYPE_MAX(time_t) - secs)) in pa_timeval_add()
141 if (PA_UNLIKELY(tv->tv_sec >= PA_INT_TYPE_MAX(time_t))) in pa_timeval_add()
162 if (PA_UNLIKELY(tv->tv_sec < secs)) in pa_timeval_sub()
172 if (PA_UNLIKELY(tv->tv_sec <= 0)) in pa_timeval_sub()
190 if (PA_UNLIKELY(v == PA_USEC_INVALID)) { in pa_timeval_store()
205 if (PA_UNLIKELY(!tv)) in pa_timeval_load()
Dsample.c121 if (PA_UNLIKELY(!pa_sample_rate_valid(spec->rate) || in pa_sample_spec_valid()
135 if (PA_UNLIKELY(a == b)) in pa_sample_spec_equal()
Dchannelmap.c451 if (PA_UNLIKELY(a == b)) in pa_channel_map_equal()
649 if (PA_UNLIKELY(a == b)) in pa_channel_map_superset()
/third_party/pulseaudio/src/modules/bluetooth/
Da2dp-codec-aptx-gst.c494 if (PA_UNLIKELY(*processed == 0 || *processed != input_size)) in encode_buffer()
505 if (PA_UNLIKELY(output_size < sizeof(*header))) { in encode_buffer_hd()
536 if (PA_UNLIKELY(*processed != input_size)) in decode_buffer()
546 if (PA_UNLIKELY(input_size < sizeof(*header))) { in decode_buffer_hd()
Dbt-codec-msbc.c181 if (PA_UNLIKELY(encoded <= 0)) { in encode_buffer()
297 if (PA_UNLIKELY(decoded <= 0)) { in decode_buffer()
Da2dp-codec-sbc.c811 if (PA_UNLIKELY(encoded <= 0)) { in encode_buffer()
816 if (PA_UNLIKELY(written < 0)) { in encode_buffer()
840 if (PA_UNLIKELY(frame_count == 0)) { in encode_buffer()
900 if (PA_UNLIKELY(decoded <= 0)) { in decode_buffer()
Da2dp-codec-ldac-gst.c409 if (PA_UNLIKELY(output_size < sizeof(*header) + sizeof(*payload))) { in encode_buffer()
415 if (PA_UNLIKELY(*processed != input_size)) in encode_buffer()
/third_party/pulseaudio/src/modules/alsa/
Dalsa-sink.c634 …if (PA_UNLIKELY((n = pa_alsa_safe_avail(u->pcm_handle, u->hwbuf_size, &u->sink->sample_spec)) < 0)… in mmap_write()
667 if (PA_UNLIKELY(n_bytes <= u->hwbuf_unused)) { in mmap_write()
719 …if (PA_UNLIKELY((err = pa_alsa_safe_mmap_begin(u->pcm_handle, &areas, &offset, &frames, u->hwbuf_s… in mmap_write()
760 if (PA_UNLIKELY((sframes = snd_pcm_mmap_commit(u->pcm_handle, offset, frames)) < 0)) { in mmap_write()
828 …if (PA_UNLIKELY((n = pa_alsa_safe_avail(u->pcm_handle, u->hwbuf_size, &u->sink->sample_spec)) < 0)… in unix_write()
857 if (PA_UNLIKELY(n_bytes <= u->hwbuf_unused)) { in unix_write()
911 if (PA_UNLIKELY(frames < 0)) { in unix_write()
992 …if (PA_UNLIKELY((err = pa_alsa_safe_delay(u->pcm_handle, status, &delay, u->hwbuf_size, &u->sink->… in update_smoother()
1014 if (PA_UNLIKELY(position < 0)) in update_smoother()
1117 if (PA_UNLIKELY(b < u->frame_size)) in update_sw_params()
[all …]
Dalsa-source.c604 …if (PA_UNLIKELY((n = pa_alsa_safe_avail(u->pcm_handle, u->hwbuf_size, &u->source->sample_spec)) < … in mmap_read()
631 if (PA_UNLIKELY(n_bytes <= 0)) { in mmap_read()
674 …if (PA_UNLIKELY((err = pa_alsa_safe_mmap_begin(u->pcm_handle, &areas, &offset, &frames, u->hwbuf_s… in mmap_read()
715 if (PA_UNLIKELY((sframes = snd_pcm_mmap_commit(u->pcm_handle, offset, frames)) < 0)) { in mmap_read()
779 …if (PA_UNLIKELY((n = pa_alsa_safe_avail(u->pcm_handle, u->hwbuf_size, &u->source->sample_spec)) < … in unix_read()
797 if (PA_UNLIKELY(n_bytes <= 0)) { in unix_read()
840 if (PA_UNLIKELY(frames < 0)) { in unix_read()
919 …if (PA_UNLIKELY((err = pa_alsa_safe_delay(u->pcm_handle, status, &delay, u->hwbuf_size, &u->source… in update_smoother()
1023 if (PA_UNLIKELY(b < u->frame_size)) in update_sw_params()
Dalsa-util.c1178 if (PA_UNLIKELY(k >= hwbuf_size * 5 || in pa_alsa_safe_avail()
1244 if (PA_UNLIKELY(abs_k >= hwbuf_size * 5 || in pa_alsa_safe_delay()
1272 if (PA_UNLIKELY(abs_k >= hwbuf_size * 5 || in pa_alsa_safe_delay()
1293 if (PA_UNLIKELY(*delay < avail)) { in pa_alsa_safe_delay()
1334 if (PA_UNLIKELY(*frames > before || in pa_alsa_safe_mmap_begin()
/third_party/pulseaudio/src/modules/
Dmodule-pipe-sink.c330 if (PA_UNLIKELY(u->sink->thread_info.rewind_requested)) in thread_func_use_timing()
375 if (PA_UNLIKELY(u->sink->thread_info.rewind_requested)) in thread_func()
Dmodule-tunnel-source-new.c184 if (PA_UNLIKELY(!u->connected || pa_stream_get_state(u->stream) != PA_STREAM_READY)) in read_new_samples()
190 if (PA_UNLIKELY(pa_stream_peek(u->stream, &p, &nbytes) != 0)) { in read_new_samples()
Dmodule-null-sink.c285 if (PA_UNLIKELY(u->sink->thread_info.rewind_requested)) in thread_func()
/third_party/pulseaudio/src/modules/jack/
Dmodule-jack-sink.c239 if (PA_UNLIKELY(u->sink->thread_info.rewind_requested)) in thread_func()
/third_party/pulseaudio/src/modules/echo-cancel/
Dwebrtc.cc548 if (PA_UNLIKELY(ec->params.webrtc.first)) { in pa_webrtc_ec_record()

12