Home
last modified time | relevance | path

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

1234

/external/clang/test/CodeGen/
Dbuiltin-expect.c12 if (__builtin_expect (x, 1)) in expect_taken()
23 if (__builtin_expect (x, 0)) in expect_not_taken()
40 if (__builtin_expect (x, y())) in expect_value_side_effects()
58 (void) __builtin_expect((isigprocmask(), 0), bar()); in main()
67 switch(__builtin_expect(x, 5)) { in switch_cond()
/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()
/external/brotli/include/brotli/
Dport.h63 #if BROTLI_MODERN_COMPILER || __has_builtin(__builtin_expect)
64 #define BROTLI_PREDICT_TRUE(x) (__builtin_expect(!!(x), 1))
65 #define BROTLI_PREDICT_FALSE(x) (__builtin_expect(x, 0))
/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/python/cpython2/Modules/_ctypes/libffi/include/
Dffi_common.h123 #define __builtin_expect(x, expected_value) (x) macro
125 #define LIKELY(x) __builtin_expect(!!(x),1)
126 #define UNLIKELY(x) __builtin_expect((x)!=0,0)
/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.h54 #define likely(x) __builtin_expect(!!(x), 1)
55 #define unlikely(x) __builtin_expect(!!(x), 0)
/external/skia/src/jumper/
DSkJumper_vectors.h112 if (__builtin_expect(tail,0)) { in load3()
125 if (__builtin_expect(tail,0)) { in load4()
138 if (__builtin_expect(tail,0)) { in store4()
148 if (__builtin_expect(tail,0)) { in load4()
161 if (__builtin_expect(tail,0)) { in store4()
217 if (__builtin_expect(tail, 0)) { in load3()
231 if (__builtin_expect(tail, 0)) { in load4()
252 if (__builtin_expect(tail == 0, true)) { in store4()
259 if (__builtin_expect(tail, 0)) { in load4()
270 if (__builtin_expect(tail, 0)) { in store4()
[all …]
/external/libnetfilter_conntrack/include/internal/
Dinternal.h72 #define likely(x) __builtin_expect((x),1)
73 #define unlikely(x) __builtin_expect((x),0)
/external/mesa3d/src/util/
Dmacros.h45 # define __builtin_expect(x, y) (x) macro
50 # define likely(x) __builtin_expect(!!(x), 1)
51 # 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/syslinux/com32/include/klibc/
Dcompiler.h97 # define __likely(x) __builtin_expect(!!(x), 1)
98 # define __unlikely(x) __builtin_expect(!!(x), 0)
/external/mesa3d/m4/
Dax_gcc_builtin.m419 # __builtin_expect()).
42 # __builtin_expect
117 [__builtin_expect], [$1(0, 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.h51 # define LIKELY(x) __builtin_expect(!!(x), 1)
52 # define UNLIKELY(x) __builtin_expect(!!(x), 0)
/external/v8/include/
Dv8config.h220 # define V8_HAS_BUILTIN_EXPECT (__has_builtin(__builtin_expect))
357 # define V8_UNLIKELY(condition) (__builtin_expect(!!(condition), 0))
358 # define V8_LIKELY(condition) (__builtin_expect(!!(condition), 1))
/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/llvm/include/llvm/Support/
DCompiler.h175 #if __has_builtin(__builtin_expect) || LLVM_GNUC_PREREQ(4, 0, 0)
176 #define LLVM_LIKELY(EXPR) __builtin_expect((bool)(EXPR), true)
177 #define LLVM_UNLIKELY(EXPR) __builtin_expect((bool)(EXPR), false)
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DCompiler.h177 #if __has_builtin(__builtin_expect) || LLVM_GNUC_PREREQ(4, 0, 0)
178 #define LLVM_LIKELY(EXPR) __builtin_expect((bool)(EXPR), true)
179 #define LLVM_UNLIKELY(EXPR) __builtin_expect((bool)(EXPR), false)
/external/libopus/silk/
Dmacros.h40 #define opus_likely(x) (__builtin_expect(!!(x), 1))
41 #define opus_unlikely(x) (__builtin_expect(!!(x), 0))
/external/Microsoft-GSL/gsl/
Dgsl_assert42 #define GSL_LIKELY(x) __builtin_expect (!!(x), 1)
43 #define GSL_UNLIKELY(x) __builtin_expect (!!(x), 0)
/external/iproute2/include/
Dbpf_api.h36 # define likely(X) __builtin_expect(!!(X), 1)
40 # define unlikely(X) __builtin_expect(!!(X), 0)
/external/jemalloc/include/jemalloc/internal/
Dutil.h69 # define likely(x) __builtin_expect(!!(x), 1)
70 # define unlikely(x) __builtin_expect(!!(x), 0)

1234