Searched refs:unlikely (Results 1 - 8 of 8) sorted by relevance
/bionic/libc/kernel/common/linux/ |
H A D | err.h | 25 #define IS_ERR_VALUE(x) unlikely((x) >= (unsigned long)-MAX_ERRNO)
|
H A D | debug_locks.h | 25 #define DEBUG_LOCKS_WARN_ON(c) ({ int __ret = 0; if (unlikely(c)) { if (debug_locks_off()) WARN_ON(1); __ret = 1; } __ret; })
|
H A D | blkdev.h | 435 #define end_io_error(uptodate) (unlikely((uptodate) <= 0))
|
/bionic/libc/kernel/common/asm-generic/ |
H A D | bug.h | 34 #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 D | 4level-fixup.h | 29 #define pmd_alloc(mm, pud, address) ((unlikely(pgd_none(*(pud))) && __pmd_alloc(mm, pud, address))? NULL: pmd_offset(pud, address))
|
/bionic/linker/ |
H A D | dlfcn.c | 43 #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 D | local_32.h | 39 #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 D | uaccess_32.h | 56 #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