Home
last modified time | relevance | path

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

123456

/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()
/external/bcc/examples/usdt_sample/usdt_sample_lib1/include/usdt_sample_lib1/
Dlib1_sdt.h17 #define USDT_SAMPLE_LIB1_OPERATION_START_ENABLED() __builtin_expect (operation_start_semaphore, 0)
20 #define USDT_SAMPLE_LIB1_OPERATION_START_ENABLED() __builtin_expect (usdt_sample_lib1_operation_sta…
28 #define USDT_SAMPLE_LIB1_OPERATION_END_ENABLED() __builtin_expect (operation_end_semaphore, 0)
31 #define USDT_SAMPLE_LIB1_OPERATION_END_ENABLED() __builtin_expect (usdt_sample_lib1_operation_end_s…
/external/tensorflow/tensorflow/core/platform/
Dmacros.h86 (TF_HAS_BUILTIN(__builtin_expect) || (defined(__GNUC__) && __GNUC__ >= 3))
87 #define TF_PREDICT_FALSE(x) (__builtin_expect(x, 0))
88 #define TF_PREDICT_TRUE(x) (__builtin_expect(!!(x), 1))
/external/arm-optimized-routines/math/single/
De_powf.c24 if (__builtin_expect((ix - 0x00800000) >= (0x7f800000 - 0x00800000) || in powf()
69 …if (__builtin_expect(((iy << 1) + 0x02000000) >= 0x40000000, 1)) { /* normalised and sensible y … in powf()
72 …if (__builtin_expect((ix - 0x80800000) < (0xff800000 - 0x80800000), 1)) { /* normal but negative… in powf()
122 … } else if (__builtin_expect((ix << 1) != 0 && (ix << 1) < 0x01000000, 0)) { /* denormal x */ in powf()
367 if (__builtin_expect((ix - 0x3f7ff000) <= (0x3f801000 - 0x3f7ff000), 0)) { in powf()
Drredf.h79 if (__builtin_expect((k & 0x7fffffff) < 0x46490e49, 1)) { in __mathlib_rredf()
126 if (__builtin_expect((k & 0x7fffffff) < 0x46490e49, 1)) in __mathlib_rredf()
De_expf.c26 if (__builtin_expect((ix << 1) - 0x67000000 > 0x85500000 - 0x67000000, 0)) { in expf()
99 if (__builtin_expect(edgecaseflag, 0)) { in expf()
/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/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/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/elfutils/lib/
Deu-config.h108 __builtin_expect (_e, E); \
123 __builtin_expect (_e, E); \
133 # define unlikely(expr) __builtin_expect (!!(expr), 0)
134 # define likely(expr) __builtin_expect (!!(expr), 1)
/external/e2fsprogs/lib/ext2fs/
Dcrc32c_defs.h54 #define likely(x) __builtin_expect(!!(x), 1)
55 #define unlikely(x) __builtin_expect(!!(x), 0)
/external/jemalloc_new/include/jemalloc/internal/
Dutil.h32 # define likely(x) __builtin_expect(!!(x), 1)
33 # define unlikely(x) __builtin_expect(!!(x), 0)
/external/libnetfilter_conntrack/include/internal/
Dinternal.h72 #define likely(x) __builtin_expect((x),1)
73 #define unlikely(x) __builtin_expect((x),0)
/external/swiftshader/third_party/llvm-7.0/llvm/docs/
DBranchWeightMetadata.rst18 `__builtin_expect`_ instruction.
86 .. _\__builtin_expect:
91 ``__builtin_expect(long exp, long c)`` instruction provides branch prediction
106 if (__builtin_expect(x > 0, 1)) {
119 switch (__builtin_expect(x, 5)) {
/external/libunwind/include/
Dcompiler.h51 # define likely(x) __builtin_expect ((x), 1)
52 # 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)
Dsimple_mtx.h82 if (__builtin_expect(c != 0, 0)) { in simple_mtx_lock()
98 if (__builtin_expect(c != 1, 0)) { in simple_mtx_unlock()
/external/libxkbcommon/xkbcommon/m4/
Dax_gcc_builtin.m419 # __builtin_expect()).
42 # __builtin_expect
117 [__builtin_expect], [$1(0, 0)],
/external/mesa3d/m4/
Dax_gcc_builtin.m419 # __builtin_expect()).
42 # __builtin_expect
117 [__builtin_expect], [$1(0, 0)],
/external/libaom/libaom/aom_dsp/
Daom_dsp_common.h45 #define LIKELY(v) __builtin_expect(v, 1)
46 #define UNLIKELY(v) __builtin_expect(v, 0)
/external/linux-kselftest/tools/testing/selftests/rseq/
Drseq.h49 #define rseq_likely(x) __builtin_expect(!!(x), 1)
50 #define rseq_unlikely(x) __builtin_expect(!!(x), 0)
/external/u-boot/include/linux/
Dcompiler.h110 #define likely_notrace(x) __builtin_expect(!!(x), 1)
111 #define unlikely_notrace(x) __builtin_expect(!!(x), 0)
165 # define likely(x) __builtin_expect(!!(x), 1)
166 # define unlikely(x) __builtin_expect(!!(x), 0)
/external/perfetto/include/perfetto/base/
Dutils.h38 #define PERFETTO_LIKELY(_x) __builtin_expect(!!(_x), 1)
39 #define PERFETTO_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()

123456