Home
last modified time | relevance | path

Searched refs:likely (Results 1 – 14 of 14) sorted by relevance

/DragonOS-0.1.8/kernel/src/ktest/
Dktest_utils.h12 likely(__condition); \
Dtest-idr.c293 if (likely(i < N)) in ktest_idr_case3()
325 if (likely(i < N)) in ktest_idr_case3()
/DragonOS-0.1.8/kernel/src/libs/
Dlockref.c13 … while (likely(!spin_is_locked(&old.lock))) \
17 … if (likely(arch_try_cmpxchg(&__lock_ref->lock_count, &old.lock_count, new.lock_count))) \
Dmutex.c39 if (likely(mutex_is_locked(lock))) in mutex_lock()
Dprintk.rs10 intrinsics::{likely, unlikely},
139 if likely(unsafe { ALLOW_ALLOC_BOOL }) { in allow_alloc()
Delf.rs3 intrinsics::{likely, unlikely},
694 if likely(elf_bss != elf_brk) && unlikely(self.pad_zero(elf_bss).is_err()) { in load()
Dlz4.c177 #ifndef likely
178 #define likely(expr) expect((expr) != 0, 1) macro
792 if (likely(pIn < pInLimit - (STEPSIZE - 1))) in LZ4_count()
806 while (likely(pIn < pInLimit - (STEPSIZE - 1))) in LZ4_count()
2514 && likely((endOnInput ? ip < shortiend : 1) & (op <= shortoend))) in LZ4_decompress_generic()
Didr.c477 if (likely(idp->top)) in __idr_destroy_with_free()
/DragonOS-0.1.8/kernel/src/syscall/
Dsyscall.c111 if (likely(status != NULL)) in c_sys_wait4()
/DragonOS-0.1.8/kernel/src/arch/x86_64/include/asm/
Dcmpxchg.h77 likely(is_success); \
/DragonOS-0.1.8/kernel/src/common/
Dcompiler.h5 #define likely(x) __builtin_expect(!!(x), 1) macro
/DragonOS-0.1.8/kernel/src/driver/video/
Dvideo.c59 if (likely(video_refresh_target != NULL)) in video_refresh_daemon()
/DragonOS-0.1.8/kernel/src/mm/allocator/
Dbuddy.rs13 use core::intrinsics::{likely, unlikely};
135 if likely(i != MAX_ORDER - 1) { in new()
198 if likely(entries > 0) { in new()
463 if likely(order != MAX_ORDER - 1) { in buddy_free()
/DragonOS-0.1.8/kernel/src/libs/libUI/
Dtextui.c153 if (likely(window->vlines_used == window->vlines_num)) // 需要滚动屏幕 in __textui_new_line()
273 if (likely(window->vlines_used > __private_info.actual_line)) in textui_putchar_window()