Home
last modified time | relevance | path

Searched refs:unlikely (Results 1 – 4 of 4) sorted by relevance

/base/hiviewdfx/hilog/services/hilogd/include/
Dlog_data.h44 … if (unlikely(mtagLen > MAX_TAG_LEN || mtagLen == 0 || mfmtLen > MAX_LOG_LEN || mfmtLen <= 0)) { in init()
50 if (unlikely(tmp == nullptr)) { in init()
78 if (unlikely(memcpy_s(this, sizeof(HilogData), &copy, sizeof(HilogData)) != 0)) { in HilogData()
82 if (unlikely(tag == nullptr)) { in HilogData()
85 if (unlikely(memcpy_s(tag, len, copy.tag, len) != 0)) { in HilogData()
/base/hiviewdfx/hilog/frameworks/libhilog/include/
Dhilog_common.h81 #define unlikely(x) __builtin_expect(!!(x), 0) macro
/base/hiviewdfx/hilog/services/hilogd/
Dlog_compress.cpp103 if (unlikely(zdlen < dst_pos)) { // zdataBuf is not long enough, shoudn't happen in Compress()
Dlog_buffer.cpp85 if (unlikely(msg.tag_len > MAX_TAG_LEN || msg.tag_len == 0 || elemSize > MAX_LOG_LEN || in Insert()