Searched refs:unlikely (Results 1 - 8 of 8) sorted by relevance

/bionic/libc/kernel/common/linux/
H A Derr.h25 #define IS_ERR_VALUE(x) unlikely((x) >= (unsigned long)-MAX_ERRNO)
H A Ddebug_locks.h25 #define DEBUG_LOCKS_WARN_ON(c) ({ int __ret = 0; if (unlikely(c)) { if (debug_locks_off()) WARN_ON(1); __ret = 1; } __ret; })
H A Dblkdev.h435 #define end_io_error(uptodate) (unlikely((uptodate) <= 0))
/bionic/libc/kernel/common/asm-generic/
H A Dbug.h34 #define WARN_ON_ONCE(condition) ({ static int __warn_once = 1; int __ret = 0; if (unlikely((condition) && __warn_once)) { __warn_once = 0; WARN_ON(1); __ret = 1; } __ret; })
H A D4level-fixup.h29 #define pmd_alloc(mm, pud, address) ((unlikely(pgd_none(*(pud))) && __pmd_alloc(mm, pud, address))? NULL: pmd_offset(pud, address))
/bionic/linker/
H A Ddlfcn.c43 #define unlikely(expr) __builtin_expect (expr, 0) macro
60 if (unlikely(ret == NULL)) {
85 if(unlikely(handle == 0)) {
89 if(unlikely(symbol == 0)) {
/bionic/libc/kernel/arch-x86/asm/
H A Dlocal_32.h39 #define local_add_unless(l, a, u) ({ long c, old; c = local_read(l); for (;;) { if (unlikely(c == (u))) break; old = local_cmpxchg((l), c, c + (a)); if (likely(old == c)) break; c = old; } c != (u); })
H A Duaccess_32.h56 #define put_user(x,ptr) ({ int __ret_pu; __typeof__(*(ptr)) __pus_tmp = x; __ret_pu=0; if(unlikely(__copy_to_user_ll(ptr, &__pus_tmp, sizeof(*(ptr))) != 0)) __ret_pu=-EFAULT; __ret_pu; })
62 #define __put_user_size(x,ptr,size,retval,errret) do { __typeof__(*(ptr)) __pus_tmp = x; retval = 0; if(unlikely(__copy_to_user_ll(ptr, &__pus_tmp, size) != 0)) retval = errret; } while (0)

Completed in 241 milliseconds