Home
last modified time | relevance | path

Searched refs:_unlikely_ (Results 1 – 25 of 29) sorted by relevance

12

/systemd-251/src/libsystemd/sd-journal/
Djournal-send.c212 if (_unlikely_(i < 0)) { in sd_journal_send()
256 if (_unlikely_(!iov[i].iov_base || iov[i].iov_len <= 1)) in sd_journal_sendv()
260 if (_unlikely_(!c || c == iov[i].iov_base)) in sd_journal_sendv()
269 if (_unlikely_(nl < c)) in sd_journal_sendv()
307 if (_unlikely_(fd < 0)) in sd_journal_sendv()
533 if (_unlikely_(i < 0)) { in sd_journal_send_with_location()
/systemd-251/src/basic/
Dalloc-util.c30 if (_unlikely_(l == SIZE_MAX)) /* prevent overflow */ in memdup_suffix0()
59 if (_unlikely_(need > SIZE_MAX/2)) /* Overflow check */ in greedy_realloc()
Dmempool.c36 if (_unlikely_(!mp->first_pool) || in mempool_alloc_tile()
37 _unlikely_(mp->first_pool->n_used >= mp->first_pool->n_tiles)) { in mempool_alloc_tile()
Dio-util.c116 if (_unlikely_(nbytes > (size_t) SSIZE_MAX)) in loop_write()
139 if (_unlikely_(nbytes > 0 && k == 0)) /* Can't really happen */ in loop_write()
Dstring-util.c818 if (_unlikely_(l_separator > SIZE_MAX - 64)) /* overflow check #1 */ in strextendf_with_separator()
820 if (_unlikely_(m > SIZE_MAX - 64 - l_separator)) /* overflow check #2 */ in strextendf_with_separator()
853 if (_unlikely_((size_t) l > SIZE_MAX - (l_separator + 1))) /* overflow check #1 */ in strextendf_with_separator()
855 … if (_unlikely_(m > SIZE_MAX - ((size_t) l + l_separator + 1))) /* overflow check #2 */ in strextendf_with_separator()
Dutf8.c160 if (_unlikely_(*p == '\0') && len_bytes != SIZE_MAX) in utf8_is_valid_n()
165 if (_unlikely_(len < 0)) in utf8_is_valid_n()
Dsigbus.c63 if (_unlikely_(c >= SIGBUS_QUEUE_MAX)) in sigbus_pop()
Dalloc-util.h97 return _unlikely_(need != 0 && size > (SIZE_MAX / need)); in size_multiply_overflow()
Dlog.h367 #define DEBUG_LOGGING _unlikely_(log_get_max_level() >= LOG_DEBUG)
Dmacro.h237 if (_unlikely_(!(expr))) \
Dhashmap.c1081 if (_unlikely_(new_n_entries < entries_add)) in resize_buckets()
1094 if (_unlikely_(new_n_buckets < new_n_entries)) in resize_buckets()
1097 if (_unlikely_(new_n_buckets > UINT_MAX / (hi->entry_size + sizeof(dib_raw_t)))) in resize_buckets()
Dunit-name.c47 if (_unlikely_(flags == 0)) in unit_name_is_valid()
/systemd-251/coccinelle/
Ddebug-logging.cocci7 - _unlikely_(log_get_max_level() >= LOG_DEBUG)
Dmacros.h26 #define _unlikely_(x) (__builtin_expect(!!(x), 0)) macro
/systemd-251/src/journal/
Djournald-kmsg.c46 if (_unlikely_(LOG_PRI(priority) > s->max_level_kmsg)) in server_forward_kmsg()
49 if (_unlikely_(s->dev_kmsg_fd < 0)) in server_forward_kmsg()
Djournald-console.c23 if (_unlikely_(cached_printk_time < 0)) { in prefix_timestamp()
Dtest-journal-interleaving.c32 if (_unlikely_(_r_ < 0)) \
/systemd-251/src/network/tc/
Dtclass.h50 if (_unlikely_(!t || t->kind != TCLASS_KIND_##UPPERCASE)) \
Dqdisc.h68 if (_unlikely_(!q || q->kind != QDISC_KIND_##UPPERCASE)) \
/systemd-251/src/libsystemd/sd-device/
Ddevice-util.h54 if (_d && _unlikely_(log_get_max_level() >= LOG_PRI(_level))) \
/systemd-251/src/network/netdev/
Dnetdev.h184 if (_unlikely_(!n || \
/systemd-251/src/resolve/
Dresolved-dns-packet.h94 if (_unlikely_(!p)) in DNS_PACKET_DATA()
/systemd-251/src/shared/
Dselinux-util.c61 if (_unlikely_(cached_use < 0)) { in mac_selinux_use()
/systemd-251/src/fundamental/
Dmacro-fundamental.h21 #define _unlikely_(x) (__builtin_expect(!!(x), 0)) macro
/systemd-251/src/libsystemd/sd-event/
Dsd-event.c3019 if (_unlikely_(c < USEC_PER_MINUTE)) in sleep_between()
3030 if (_unlikely_(c < USEC_PER_SEC*10)) in sleep_between()
3041 if (_unlikely_(c < USEC_PER_SEC)) in sleep_between()
3052 if (_unlikely_(c < USEC_PER_MSEC*250)) in sleep_between()
3158 if (_unlikely_(ss != sizeof(x))) in flush_timer()
3355 if (_unlikely_(n != sizeof(si))) in process_signal()

12