Home
last modified time | relevance | path

Searched refs:__builtin_expect (Results 1 – 25 of 64) sorted by relevance

123

/external/clang/test/CodeGen/
Dbuiltin-expect.c12 if (__builtin_expect (x, y())) in FUNC()
21 (void) __builtin_expect((isigprocmask(), 0), bar()); in main()
35 if (__builtin_expect (x, 1)) in test1()
43 switch(__builtin_expect(x, 5)) { in test2()
/external/e2fsprogs/intl/
Dbindtextdom.c156 if (__builtin_expect (result != NULL, 1)) in __libc_rwlock_define()
161 if (__builtin_expect (result != NULL, 1)) in __libc_rwlock_define()
194 if (__builtin_expect (result != NULL, 1)) in __libc_rwlock_define()
198 if (__builtin_expect (result != NULL, 1)) in __libc_rwlock_define()
227 if (__builtin_expect (new_binding == NULL, 0)) in __libc_rwlock_define()
248 if (__builtin_expect (result == NULL, 0)) in __libc_rwlock_define()
253 if (__builtin_expect (result == NULL, 0)) in __libc_rwlock_define()
279 if (__builtin_expect (result == NULL, 0)) in __libc_rwlock_define()
284 if (__builtin_expect (result == NULL, 0)) in __libc_rwlock_define()
Dloadmsgcat.c947 __builtin_expect (fstat64 (fd, &st) != 0, 0) in _nl_load_domain()
949 __builtin_expect (fstat (fd, &st) != 0, 0) in _nl_load_domain()
951 || __builtin_expect ((size = (size_t) st.st_size) != st.st_size, 0) in _nl_load_domain()
952 || __builtin_expect (size < sizeof (struct mo_file_header), 0)) in _nl_load_domain()
965 if (__builtin_expect (data != (struct mo_file_header *) -1, 1)) in _nl_load_domain()
1008 if (__builtin_expect (data->magic != _MAGIC && data->magic != _MAGIC_SWAPPED, in _nl_load_domain()
Dloadinfo.h42 # define __builtin_expect(expr, val) (expr) macro
/external/elfutils/lib/
Deu-config.h96 __builtin_expect (_e, E); \
111 __builtin_expect (_e, E); \
121 # define unlikely(expr) __builtin_expect (!!(expr), 0)
122 # define likely(expr) __builtin_expect (!!(expr), 1)
/external/llvm/docs/
DBranchWeightMetadata.rst18 `__builtin_expect`_ instruction.
72 .. _\__builtin_expect:
77 ``__builtin_expect(long exp, long c)`` instruction provides branch prediction
92 if (__builtin_expect(x > 0, 1)) {
105 switch (__builtin_expect(x, 5)) {
/external/e2fsprogs/lib/ext2fs/
Dcrc32c_defs.h46 #define likely(x) __builtin_expect(!!(x), 1)
47 #define unlikely(x) __builtin_expect(!!(x), 0)
/external/mesa3d/src/mapi/mapi/
Du_compiler.h43 # define likely(x) __builtin_expect(!!(x), 1)
44 # define unlikely(x) __builtin_expect(!!(x), 0)
/external/libunwind/include/
Dcompiler.h51 # define likely(x) __builtin_expect ((x), 1)
52 # define unlikely(x) __builtin_expect ((x), 0)
/external/e2fsprogs/e2fsck/
Dcrc32defs.h59 #define likely(x) __builtin_expect(!!(x), 1)
60 #define unlikely(x) __builtin_expect(!!(x), 0)
/external/clang/test/Analysis/
Dweak-functions.c96 …do { if (__builtin_expect(*(&pred), ~0l) != ~0l) dispatch_once((&pred), (^() {})); } while (0); //… in test_dispatch_once()
100 …do { if (__builtin_expect(*(&pred), ~0l) != ~0l) dispatch_once((&pred), (^() {})); } while (0); //… in test_dispatch_once_neg()
Dunix-fns.c62 …do { if (__builtin_expect(*(&pred), ~0l) != ~0l) dispatch_once((&pred), (^() {})); } while (0); //… in test_dispatch_once()
66 …do { if (__builtin_expect(*(&pred), ~0l) != ~0l) dispatch_once((&pred), (^() {})); } while (0); //… in test_dispatch_once_neg()
/external/valgrind/VEX/priv/
Dmain_util.h46 #define LIKELY(x) __builtin_expect(!!(x), 1)
47 #define UNLIKELY(x) __builtin_expect(!!(x), 0)
/external/mesa3d/src/mesa/main/
Dcompiler.h178 # define __builtin_expect(x, y) (x) macro
183 # define likely(x) __builtin_expect(!!(x), 1)
184 # define unlikely(x) __builtin_expect(!!(x), 0)
/external/v8/include/
Dv8config.h224 # define V8_HAS_BUILTIN_EXPECT (__has_builtin(__builtin_expect))
367 # define V8_UNLIKELY(condition) (__builtin_expect(!!(condition), 0))
368 # define V8_LIKELY(condition) (__builtin_expect(!!(condition), 1))
/external/llvm/include/llvm/Support/
DCompiler.h169 #if __has_builtin(__builtin_expect) || LLVM_GNUC_PREREQ(4, 0, 0)
170 #define LLVM_LIKELY(EXPR) __builtin_expect((bool)(EXPR), true)
171 #define LLVM_UNLIKELY(EXPR) __builtin_expect((bool)(EXPR), false)
/external/clang/lib/Headers/
Dhtmxlintrin.h58 if (__builtin_expect (__builtin_tbegin (0), 1)) in __TM_simple_begin()
68 if (__builtin_expect (__builtin_tbegin (0), 1)) in __TM_begin()
84 if (__builtin_expect (__builtin_tend (0), 1)) in __TM_end()
/external/mesa3d/src/gallium/include/pipe/
Dp_compiler.h306 # define likely(x) __builtin_expect(!!(x), 1)
307 # define unlikely(x) __builtin_expect(!!(x), 0)
/external/google-benchmark/include/benchmark/
Dmacros.h43 # define BENCHMARK_BUILTIN_EXPECT(x, y) __builtin_expect(x, y)
/external/iproute2/include/
Dbpf_api.h36 # define likely(X) __builtin_expect(!!(X), 1)
40 # define unlikely(X) __builtin_expect(!!(X), 0)
/external/mesa3d/src/glx/
Dindirect_vertex_program.c34 # define __builtin_expect(x, y) x macro
72 if (__builtin_expect(dpy != NULL, 1)) { in get_parameter()
Dpixelstore.c35 # define __builtin_expect(x, y) x macro
54 if (__builtin_expect(dpy != NULL, 1)) { in send_PixelStore()
/external/jemalloc/include/jemalloc/internal/
Dutil.h70 # define likely(x) __builtin_expect(!!(x), 1)
71 # define unlikely(x) __builtin_expect(!!(x), 0)
/external/fio/compiler/
Dcompiler.h23 #define fio_unlikely(x) __builtin_expect(!!(x), 0)
/external/elfutils/src/
Dldscript.y614 if (__builtin_expect (*str == '*', 0) in special_char_p()
615 || __builtin_expect (*str == '?', 0) in special_char_p()
616 || __builtin_expect (*str == '[', 0)) in special_char_p()
634 else if (__builtin_expect (special_char_p (str), false)) in new_id_listelem()

123