Home
last modified time | relevance | path

Searched refs:PA_UNLIKELY (Results 1 - 25 of 41) sorted by relevance

12

/third_party/pulseaudio/src/pulsecore/
H A 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( in pa_volume_s24ne_c()
[all...]
H A 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( in pa_mix_u8_c()
[all...]
H A Dmacro.h134 if (PA_UNLIKELY(!(expr))) { \
142 if (PA_UNLIKELY(!(expr))) { \
155 if (PA_UNLIKELY(!(expr))) { \
H A Dmemblockq.c102 if (PA_UNLIKELY(!bq->blocks)) { in fix_current_read()
107 if (PA_UNLIKELY(!bq->current_read)) in fix_current_read()
111 while (PA_UNLIKELY(bq->current_read->index > bq->read_index)) in fix_current_read()
119 while (PA_LIKELY(bq->current_read != NULL) && PA_UNLIKELY(bq->current_read->index + (int64_t) bq->current_read->chunk.length <= bq->read_index)) in fix_current_read()
130 if (PA_UNLIKELY(!bq->blocks)) { in fix_current_write()
135 if (PA_UNLIKELY(!bq->current_write)) in fix_current_write()
139 while (PA_UNLIKELY(bq->current_write->index + (int64_t) bq->current_write->chunk.length <= bq->write_index)) in fix_current_write()
147 while (PA_LIKELY(bq->current_write != NULL) && PA_UNLIKELY(bq->current_write->index > bq->write_index)) in fix_current_write()
H A Dcore-rtclock.c209 if (PA_UNLIKELY(!ts)) in pa_timespec_load()
220 if (PA_UNLIKELY(v == PA_USEC_INVALID)) { in pa_timespec_store()
H A 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()
H A Dtime-smoother_2.c146 if PA_UNLIKELY((s->init)) { in pa_smoother_2_put()
H A 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()
1553 if (PA_UNLIKELY(!pa_format_info_is_pcm(i->format))) in pa_sink_input_is_passthrough()
1556 if (PA_UNLIKELY(i->flags & PA_SINK_INPUT_PASSTHROUGH)) in pa_sink_input_is_passthrough()
1944 if (PA_UNLIKELY(!root_sink)) in update_volume_due_to_moving()
H A Dmodule.c86 if (PA_UNLIKELY(pa_run_from_build_tree())) { in pa_module_exists()
H A Dsource.c1064 if (PA_UNLIKELY(default_rate == alternate_rate && !passthrough && !avoid_resampling)) { in pa_source_reconfigure()
1082 if (PA_UNLIKELY(!pa_sample_spec_valid(spec))) in pa_source_reconfigure()
1238 if (PA_UNLIKELY(!s->output_from_master)) in pa_source_get_master()
1675 if (PA_UNLIKELY(!root_source)) in pa_source_set_volume()
/third_party/pulseaudio/src/pulse/
H A 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()
H A 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) < (low)) ? (low) : (x)))
H A 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()
H A 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/
H A 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()
H A Dbt-codec-msbc.c181 if (PA_UNLIKELY(encoded <= 0)) { in encode_buffer()
297 if (PA_UNLIKELY(decoded <= 0)) { in decode_buffer()
H A 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()
H A 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/
H A 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_size, &u->sink->sample_spec)) < 0)) { 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->sample_spec, false)) < 0)) { in update_smoother()
1014 if (PA_UNLIKELY(position < 0)) in update_smoother()
1117 if (PA_UNLIKELY( in update_sw_params()
[all...]
H A Dalsa-source.c604 if (PA_UNLIKELY((n = pa_alsa_safe_avail(u->pcm_handle, u->hwbuf_size, &u->source->sample_spec)) < 0)) { 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_size, &u->source->sample_spec)) < 0)) { 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)) < 0)) { 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->sample_spec, true)) < 0)) { in update_smoother()
1023 if (PA_UNLIKELY(b < u->frame_size)) in update_sw_params()
H A 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/
H A 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()
H A 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()
H A Dmodule-null-sink.c285 if (PA_UNLIKELY(u->sink->thread_info.rewind_requested)) in thread_func()
/third_party/pulseaudio/src/modules/jack/
H A Dmodule-jack-sink.c239 if (PA_UNLIKELY(u->sink->thread_info.rewind_requested)) in thread_func()

Completed in 37 milliseconds

12