/external/chromium_org/third_party/mesa/src/src/gallium/include/pipe/ |
p_compiler.h | 273 * is either likely to be true, or unlikely to be true. 283 * If these macros are used, the CPU is more likely to correctly predict 287 * In light of this, it is also a good idea to mark as "likely" a path 288 * which is not necessarily always more likely, but that will benefit much 304 #ifndef likely 306 # define likely(x) __builtin_expect(!!(x), 1) macro 309 # define likely(x) (x) macro
|
/external/elfutils/lib/ |
eu-config.h | 151 # define likely(e) debugpred__ (e,1) macro 154 #ifndef likely 156 # define likely(expr) __builtin_expect (!!(expr), 1) macro
|
/external/mesa3d/src/gallium/include/pipe/ |
p_compiler.h | 273 * is either likely to be true, or unlikely to be true. 283 * If these macros are used, the CPU is more likely to correctly predict 287 * In light of this, it is also a good idea to mark as "likely" a path 288 * which is not necessarily always more likely, but that will benefit much 304 #ifndef likely 306 # define likely(x) __builtin_expect(!!(x), 1) macro 309 # define likely(x) (x) macro
|
/external/elfutils/libelf/ |
elf32_checksum.c | 108 /* If we don't have native byte order, we will likely need to 111 if (!likely (same_byte_order)) 167 if (likely (same_byte_order) || data->d_type == ELF_T_BYTE)
|
elf32_getphdr.c | 79 if (likely (result != NULL)) 91 if (likely (result == NULL)) 168 else if (likely (elf->fildes != -1)) 248 if (likely (result != NULL))
|
/external/elfutils/backends/ |
alpha_symbol.c | 100 if (likely (gelf_getshdr (scn, &scn_shdr) != NULL)
|
sparc_symbol.c | 88 if (likely (gelf_getshdr (scn, &scn_shdr) != NULL)
|
/external/elfutils/libasm/ |
asm_addsleb128.c | 85 if (likely (asmscn->type != SHT_NOBITS))
|
asm_addint8.c | 108 if (likely (asmscn->type == SHT_NOBITS))
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/nvc0/ |
nvc0_push.c | 46 if (likely(nvc0->vertex->num_elements < 32)) 133 if (unlikely(ctx->edgeflag.buffer >= 0) && likely(nr)) 144 if (unlikely(ctx->need_vertex_id) && likely(size)) 174 if (unlikely(ctx->edgeflag.buffer >= 0) && likely(nr)) 215 if (unlikely(ctx->edgeflag.buffer >= 0) && likely(nr)) 316 if (apply_bias && likely(!(nvc0->vertex->instance_bufs & (1 << i))))
|
/external/mesa3d/src/gallium/drivers/nvc0/ |
nvc0_push.c | 46 if (likely(nvc0->vertex->num_elements < 32)) 133 if (unlikely(ctx->edgeflag.buffer >= 0) && likely(nr)) 144 if (unlikely(ctx->need_vertex_id) && likely(size)) 174 if (unlikely(ctx->edgeflag.buffer >= 0) && likely(nr)) 215 if (unlikely(ctx->edgeflag.buffer >= 0) && likely(nr)) 316 if (apply_bias && likely(!(nvc0->vertex->instance_bufs & (1 << i))))
|
/external/chromium_org/third_party/harfbuzz-ng/src/ |
hb-utf-private.hh | 128 if (text < end && ((l = *text), likely (hb_in_range<hb_codepoint_t> (l, 0xdc00, 0xdfff)))) 152 if (start < text && ((h = *(text - 1)), likely (hb_in_range<hb_codepoint_t> (h, 0xd800, 0xdbff))))
|
hb-ot-shape-normalize.cc | 144 if (likely (b)) { 162 if (likely (b)) { 227 if (likely (buffer->idx < end)) { 251 if (likely (c->buffer->idx + 1 == end))
|
/external/elfutils/libdwfl/ |
dwfl_module_build_id.c | 118 if (likely (phdr != NULL) && phdr->p_type == PT_NOTE) 132 if (likely (shdr != NULL) && shdr->sh_type == SHT_NOTE)
|
/external/harfbuzz_ng/src/ |
hb-utf-private.hh | 128 if (text < end && ((l = *text), likely (hb_in_range<hb_codepoint_t> (l, 0xdc00, 0xdfff)))) 152 if (start < text && ((h = *(text - 1)), likely (hb_in_range<hb_codepoint_t> (h, 0xd800, 0xdbff))))
|
hb-ot-shape-normalize.cc | 144 if (likely (b)) { 162 if (likely (b)) { 228 if (likely (buffer->idx < end)) { 253 if (likely (c->buffer->idx + 1 == end))
|
/external/qemu/ |
osdep.h | 20 #ifndef likely 25 #define likely(x) __builtin_expect(!!(x), 1) macro
|
/bionic/libc/kernel/arch-mips/asm/ |
uaccess.h | 47 #define access_ok(type, addr, size) likely(__access_ok((unsigned long)(addr), (size), __access_mask)) 60 #define __get_user_check(x, ptr, size) ({ long __gu_err = -EFAULT; const __typeof__(*(ptr)) __user * __gu_ptr = (ptr); if (likely(access_ok(VERIFY_READ, __gu_ptr, size))) __get_user_common((x), size, __gu_ptr); __gu_err; }) 66 #define __put_user_check(x, ptr, size) ({ __typeof__(*(ptr)) __user *__pu_addr = (ptr); __typeof__(*(ptr)) __pu_val = (x); long __pu_err = -EFAULT; if (likely(access_ok(VERIFY_WRITE, __pu_addr, size))) { switch (size) { case 1: __put_user_asm("sb", __pu_addr); break; case 2: __put_user_asm("sh", __pu_addr); break; case 4: __put_user_asm("sw", __pu_addr); break; case 8: __PUT_USER_DW(__pu_addr); break; default: __put_user_unknown(); break; } } __pu_err; }) 90 #define copy_in_user(to, from, n) ({ void __user *__cu_to; const void __user *__cu_from; long __cu_len; might_sleep(); __cu_to = (to); __cu_from = (from); __cu_len = (n); if (likely(access_ok(VERIFY_READ, __cu_from, __cu_len) && access_ok(VERIFY_WRITE, __cu_to, __cu_len))) __cu_len = __invoke_copy_from_user(__cu_to, __cu_from, __cu_len); __cu_len; })
|
/development/ndk/platforms/android-9/arch-mips/include/asm/ |
uaccess.h | 47 #define access_ok(type, addr, size) likely(__access_ok((unsigned long)(addr), (size), __access_mask)) 60 #define __get_user_check(x, ptr, size) ({ long __gu_err = -EFAULT; const __typeof__(*(ptr)) __user * __gu_ptr = (ptr); if (likely(access_ok(VERIFY_READ, __gu_ptr, size))) __get_user_common((x), size, __gu_ptr); __gu_err; }) 66 #define __put_user_check(x, ptr, size) ({ __typeof__(*(ptr)) __user *__pu_addr = (ptr); __typeof__(*(ptr)) __pu_val = (x); long __pu_err = -EFAULT; if (likely(access_ok(VERIFY_WRITE, __pu_addr, size))) { switch (size) { case 1: __put_user_asm("sb", __pu_addr); break; case 2: __put_user_asm("sh", __pu_addr); break; case 4: __put_user_asm("sw", __pu_addr); break; case 8: __PUT_USER_DW(__pu_addr); break; default: __put_user_unknown(); break; } } __pu_err; }) 90 #define copy_in_user(to, from, n) ({ void __user *__cu_to; const void __user *__cu_from; long __cu_len; might_sleep(); __cu_to = (to); __cu_from = (from); __cu_len = (n); if (likely(access_ok(VERIFY_READ, __cu_from, __cu_len) && access_ok(VERIFY_WRITE, __cu_to, __cu_len))) __cu_len = __invoke_copy_from_user(__cu_to, __cu_from, __cu_len); __cu_len; })
|
/external/kernel-headers/original/linux/ |
compiler.h | 62 #define likely(x) __builtin_expect(!!(x), 1) macro
|
/prebuilts/ndk/8/platforms/android-14/arch-mips/usr/include/asm/ |
uaccess.h | 47 #define access_ok(type, addr, size) likely(__access_ok((unsigned long)(addr), (size), __access_mask)) 60 #define __get_user_check(x, ptr, size) ({ long __gu_err = -EFAULT; const __typeof__(*(ptr)) __user * __gu_ptr = (ptr); if (likely(access_ok(VERIFY_READ, __gu_ptr, size))) __get_user_common((x), size, __gu_ptr); __gu_err; }) 66 #define __put_user_check(x, ptr, size) ({ __typeof__(*(ptr)) __user *__pu_addr = (ptr); __typeof__(*(ptr)) __pu_val = (x); long __pu_err = -EFAULT; if (likely(access_ok(VERIFY_WRITE, __pu_addr, size))) { switch (size) { case 1: __put_user_asm("sb", __pu_addr); break; case 2: __put_user_asm("sh", __pu_addr); break; case 4: __put_user_asm("sw", __pu_addr); break; case 8: __PUT_USER_DW(__pu_addr); break; default: __put_user_unknown(); break; } } __pu_err; }) 90 #define copy_in_user(to, from, n) ({ void __user *__cu_to; const void __user *__cu_from; long __cu_len; might_sleep(); __cu_to = (to); __cu_from = (from); __cu_len = (n); if (likely(access_ok(VERIFY_READ, __cu_from, __cu_len) && access_ok(VERIFY_WRITE, __cu_to, __cu_len))) __cu_len = __invoke_copy_from_user(__cu_to, __cu_from, __cu_len); __cu_len; })
|
/prebuilts/ndk/8/platforms/android-9/arch-mips/usr/include/asm/ |
uaccess.h | 47 #define access_ok(type, addr, size) likely(__access_ok((unsigned long)(addr), (size), __access_mask)) 60 #define __get_user_check(x, ptr, size) ({ long __gu_err = -EFAULT; const __typeof__(*(ptr)) __user * __gu_ptr = (ptr); if (likely(access_ok(VERIFY_READ, __gu_ptr, size))) __get_user_common((x), size, __gu_ptr); __gu_err; }) 66 #define __put_user_check(x, ptr, size) ({ __typeof__(*(ptr)) __user *__pu_addr = (ptr); __typeof__(*(ptr)) __pu_val = (x); long __pu_err = -EFAULT; if (likely(access_ok(VERIFY_WRITE, __pu_addr, size))) { switch (size) { case 1: __put_user_asm("sb", __pu_addr); break; case 2: __put_user_asm("sh", __pu_addr); break; case 4: __put_user_asm("sw", __pu_addr); break; case 8: __PUT_USER_DW(__pu_addr); break; default: __put_user_unknown(); break; } } __pu_err; }) 90 #define copy_in_user(to, from, n) ({ void __user *__cu_to; const void __user *__cu_from; long __cu_len; might_sleep(); __cu_to = (to); __cu_from = (from); __cu_len = (n); if (likely(access_ok(VERIFY_READ, __cu_from, __cu_len) && access_ok(VERIFY_WRITE, __cu_to, __cu_len))) __cu_len = __invoke_copy_from_user(__cu_to, __cu_from, __cu_len); __cu_len; })
|
/prebuilts/ndk/9/platforms/android-14/arch-mips/usr/include/asm/ |
uaccess.h | 47 #define access_ok(type, addr, size) likely(__access_ok((unsigned long)(addr), (size), __access_mask)) 60 #define __get_user_check(x, ptr, size) ({ long __gu_err = -EFAULT; const __typeof__(*(ptr)) __user * __gu_ptr = (ptr); if (likely(access_ok(VERIFY_READ, __gu_ptr, size))) __get_user_common((x), size, __gu_ptr); __gu_err; }) 66 #define __put_user_check(x, ptr, size) ({ __typeof__(*(ptr)) __user *__pu_addr = (ptr); __typeof__(*(ptr)) __pu_val = (x); long __pu_err = -EFAULT; if (likely(access_ok(VERIFY_WRITE, __pu_addr, size))) { switch (size) { case 1: __put_user_asm("sb", __pu_addr); break; case 2: __put_user_asm("sh", __pu_addr); break; case 4: __put_user_asm("sw", __pu_addr); break; case 8: __PUT_USER_DW(__pu_addr); break; default: __put_user_unknown(); break; } } __pu_err; }) 90 #define copy_in_user(to, from, n) ({ void __user *__cu_to; const void __user *__cu_from; long __cu_len; might_sleep(); __cu_to = (to); __cu_from = (from); __cu_len = (n); if (likely(access_ok(VERIFY_READ, __cu_from, __cu_len) && access_ok(VERIFY_WRITE, __cu_to, __cu_len))) __cu_len = __invoke_copy_from_user(__cu_to, __cu_from, __cu_len); __cu_len; })
|
/prebuilts/ndk/9/platforms/android-18/arch-mips/usr/include/asm/ |
uaccess.h | 47 #define access_ok(type, addr, size) likely(__access_ok((unsigned long)(addr), (size), __access_mask)) 60 #define __get_user_check(x, ptr, size) ({ long __gu_err = -EFAULT; const __typeof__(*(ptr)) __user * __gu_ptr = (ptr); if (likely(access_ok(VERIFY_READ, __gu_ptr, size))) __get_user_common((x), size, __gu_ptr); __gu_err; }) 66 #define __put_user_check(x, ptr, size) ({ __typeof__(*(ptr)) __user *__pu_addr = (ptr); __typeof__(*(ptr)) __pu_val = (x); long __pu_err = -EFAULT; if (likely(access_ok(VERIFY_WRITE, __pu_addr, size))) { switch (size) { case 1: __put_user_asm("sb", __pu_addr); break; case 2: __put_user_asm("sh", __pu_addr); break; case 4: __put_user_asm("sw", __pu_addr); break; case 8: __PUT_USER_DW(__pu_addr); break; default: __put_user_unknown(); break; } } __pu_err; }) 90 #define copy_in_user(to, from, n) ({ void __user *__cu_to; const void __user *__cu_from; long __cu_len; might_sleep(); __cu_to = (to); __cu_from = (from); __cu_len = (n); if (likely(access_ok(VERIFY_READ, __cu_from, __cu_len) && access_ok(VERIFY_WRITE, __cu_to, __cu_len))) __cu_len = __invoke_copy_from_user(__cu_to, __cu_from, __cu_len); __cu_len; })
|
/prebuilts/ndk/9/platforms/android-9/arch-mips/usr/include/asm/ |
uaccess.h | 47 #define access_ok(type, addr, size) likely(__access_ok((unsigned long)(addr), (size), __access_mask)) 60 #define __get_user_check(x, ptr, size) ({ long __gu_err = -EFAULT; const __typeof__(*(ptr)) __user * __gu_ptr = (ptr); if (likely(access_ok(VERIFY_READ, __gu_ptr, size))) __get_user_common((x), size, __gu_ptr); __gu_err; }) 66 #define __put_user_check(x, ptr, size) ({ __typeof__(*(ptr)) __user *__pu_addr = (ptr); __typeof__(*(ptr)) __pu_val = (x); long __pu_err = -EFAULT; if (likely(access_ok(VERIFY_WRITE, __pu_addr, size))) { switch (size) { case 1: __put_user_asm("sb", __pu_addr); break; case 2: __put_user_asm("sh", __pu_addr); break; case 4: __put_user_asm("sw", __pu_addr); break; case 8: __PUT_USER_DW(__pu_addr); break; default: __put_user_unknown(); break; } } __pu_err; }) 90 #define copy_in_user(to, from, n) ({ void __user *__cu_to; const void __user *__cu_from; long __cu_len; might_sleep(); __cu_to = (to); __cu_from = (from); __cu_len = (n); if (likely(access_ok(VERIFY_READ, __cu_from, __cu_len) && access_ok(VERIFY_WRITE, __cu_to, __cu_len))) __cu_len = __invoke_copy_from_user(__cu_to, __cu_from, __cu_len); __cu_len; })
|