/external/llvm-project/clang/test/SemaCXX/ |
D | attr-likelihood.cpp | 9 [[unlikely]] {} // expected-warning {{use of the 'unlikely' attribute is a C++20 extension}} in g() 21 [[unlikely]]; // expected-warning {{conflicting attributes 'unlikely' are ignored}} in b() 23 [[unlikely]]; // expected-note {{conflicting attribute is here}} in b() 33 [[unlikely]]; in d() 40 [[unlikely]] {} in g() 52 [[unlikely]] {} in i() 73 [[unlikely]] if (false) [[likely]] {} in l() 80 [[unlikely]] {} in m() 82 [[unlikely]]; in m() 93 [[unlikely]]; in m() [all …]
|
/external/llvm-project/clang/test/CodeGenCXX/ |
D | attr-likelihood-if-branch-weights.cpp | 23 [[unlikely]] { in g() 34 [[unlikely]] return A(); in h() 43 [[unlikely]]; in NullStmt() 54 [[unlikely]] if (B()) {} in IfStmt() 60 [[unlikely]] { b = false; } in IfStmt() 68 [[unlikely]] while (B()) {} in WhileStmt() 74 [[unlikely]] { b = false; } in WhileStmt() 81 [[unlikely]] do {} in DoStmt() 88 [[unlikely]] {} in DoStmt() 96 [[unlikely]] for (; B();) {} in ForStmt() [all …]
|
D | attr-likelihood-switch-branch-weights.cpp | 19 [[unlikely]] case 1: ++i; break; in OneCaseU() 38 [[unlikely]] case 1: break; in TwoCasesUN() 49 [[unlikely]] case 2: break; in TwoCasesLU() 72 [[unlikely]] case 3: in CasesFallthroughNNUN() 96 [[unlikely]] case 103: in CasesFallthroughRangeSmallUN() 121 [[unlikely]] case 0 ... 64: in CasesFallthroughRangeLargeUUN() 122 [[unlikely]] case 1003: in CasesFallthroughRangeLargeUUN() 143 [[unlikely]] default: break; in OneCaseDefaultU() 176 [[unlikely]] default: break; in TwoCasesDefaultLNU()
|
/external/elfutils/tests/ |
D | run-annobingroup.sh | 33 [ 7] .gnu.build.attributes..text.unlikely 34 [ 8] .rela.gnu.build.attributes..text.unlikely 35 [ 9] .text.unlikely 43 [ 7] .gnu.build.attributes..text.unlikely 44 [ 8] .rela.gnu.build.attributes..text.unlikely 45 [ 9] .text.unlikely 51 [ 7] .gnu.build.attributes..text.unlikely 52 [ 8] .rela.gnu.build.attributes..text.unlikely 53 [ 9] .text.unlikely 61 [ 7] .gnu.build.attributes..text.unlikely [all …]
|
/external/llvm-project/clang/test/Sema/ |
D | attr-likelihood.c | 11 [[clang::unlikely]] {} in m() 13 [[clang::unlikely]]; in m() 24 [[clang::unlikely]]; in m() 27 [[clang::unlikely]] {} in m() 31 [[clang::unlikely]] while (x); // expected-error {{expected 'while' in do/while loop}} in m() 33 [[clang::unlikely]] {} in m() 35 [[clang::unlikely]]; in m() 38 [[clang::unlikely]] {} in m() 40 [[clang::unlikely]]; in m() 47 …[[clang::unlikely]] lbl : // expected-error {{'unlikely' attribute cannot be applied to a declarat… in m()
|
/external/mesa3d/src/gallium/drivers/etnaviv/ |
D | etnaviv_emit.c | 133 if (unlikely(dirty & (ETNA_DIRTY_SHADER))) { in emit_halti5_only_state() 142 if (unlikely(dirty & (ETNA_DIRTY_VERTEX_ELEMENTS | ETNA_DIRTY_SHADER))) { in emit_halti5_only_state() 147 if (unlikely(dirty & (ETNA_DIRTY_SHADER))) { in emit_halti5_only_state() 167 if (unlikely(dirty & (ETNA_DIRTY_SHADER))) { in emit_pre_halti5_state() 170 if (unlikely(dirty & (ETNA_DIRTY_SHADER))) { in emit_pre_halti5_state() 175 if (unlikely(dirty & (ETNA_DIRTY_VERTEX_ELEMENTS | ETNA_DIRTY_SHADER))) { in emit_pre_halti5_state() 180 if (unlikely(dirty & (ETNA_DIRTY_SHADER))) { in emit_pre_halti5_state() 183 if (unlikely(dirty & (ETNA_DIRTY_SHADER))) { in emit_pre_halti5_state() 188 if (unlikely(dirty & (ETNA_DIRTY_FRAMEBUFFER))) { in emit_pre_halti5_state() 197 if (unlikely(dirty & (ETNA_DIRTY_SHADER | ETNA_DIRTY_FRAMEBUFFER))) { in emit_pre_halti5_state() [all …]
|
/external/jemalloc_new/include/jemalloc/internal/ |
D | tcache_inlines.h | 36 if (unlikely(ticker_tick(&tcache->gc_ticker))) { in tcache_event() 53 if (unlikely(!tcache_success)) { in tcache_alloc_small() 56 if (unlikely(arena == NULL)) { in tcache_alloc_small() 72 if (config_prof || (slow_path && config_fill) || unlikely(zero)) { in tcache_alloc_small() 79 if (unlikely(opt_junk_alloc)) { in tcache_alloc_small() 82 } else if (unlikely(opt_zero)) { in tcache_alloc_small() 87 if (slow_path && config_fill && unlikely(opt_junk_alloc)) { in tcache_alloc_small() 116 if (unlikely(!tcache_success)) { in tcache_alloc_large() 122 if (unlikely(arena == NULL)) { in tcache_alloc_large() 135 unlikely(zero)) { in tcache_alloc_large() [all …]
|
/external/elfutils/libdw/ |
D | dwarf_getsrclines.c | 126 if (unlikely (new_line->line.field != state->field)) \ in add_new_line() 197 if (unlikely (linep + 4 > lineendp)) in read_srclines() 206 if (unlikely (unit_length == DWARF3_LENGTH_64_BIT)) in read_srclines() 208 if (unlikely (linep + 8 > lineendp)) in read_srclines() 215 if (unlikely (unit_length > (size_t) (lineendp - linep))) in read_srclines() 223 if (unlikely (version < 2) || unlikely (version > 5)) in read_srclines() 263 if (unlikely ((size_t) (lineendp - linep) < 1)) in read_srclines() 266 if (unlikely (max_ops_per_instr == 0)) in read_srclines() 290 if (unlikely (lineendp - linep < opcode_base - 1)) in read_srclines() 376 if (unlikely (dirarray == NULL)) in read_srclines() [all …]
|
D | dwarf_next_cfi.c | 55 || unlikely (off + 4 >= data->d_size)) in dwarf_next_cfi() 75 if (unlikely (limit - bytes < 8)) in dwarf_next_cfi() 90 if (unlikely ((uint64_t) (limit - bytes) < length) in dwarf_next_cfi() 91 || unlikely (length < offset_size + 1)) in dwarf_next_cfi() 122 if (unlikely (entry->cie.CIE_id > (Dwarf_Off) pos) in dwarf_next_cfi() 123 || unlikely (pos <= (ptrdiff_t) offset_size)) in dwarf_next_cfi() 134 if (version != 1 && (unlikely (version < 3) || unlikely (version > 4))) in dwarf_next_cfi() 140 if (unlikely (bytes == NULL)) in dwarf_next_cfi() 149 if (unlikely (limit - bytes < 5)) in dwarf_next_cfi() 154 if (unlikely (*bytes != address_size)) in dwarf_next_cfi() [all …]
|
D | encoded-value.h | 94 if (unlikely (*addrp + 4 > endp)) in __libdw_cfi_read_address_inc() 104 if (unlikely (*addrp + 8 > endp)) in __libdw_cfi_read_address_inc() 141 if (unlikely (size == 0)) in read_encoded_value() 161 if (unlikely (*p + 2 > endp)) in read_encoded_value() 171 if (unlikely (*p + 2 > endp)) in read_encoded_value() 177 if (unlikely (__libdw_cfi_read_address_inc (cache, p, 4, &value) != 0)) in read_encoded_value() 182 if (unlikely (__libdw_cfi_read_address_inc (cache, p, 4, &value) != 0)) in read_encoded_value() 189 if (unlikely (__libdw_cfi_read_address_inc (cache, p, 8, &value) != 0)) in read_encoded_value() 194 if (unlikely (__libdw_cfi_read_address_inc (cache, p, 0, &value) != 0)) in read_encoded_value() 215 if (unlikely (*result < cache->frame_vaddr)) in read_encoded_value() [all …]
|
D | dwarf_formblock.c | 50 if (unlikely (endp - datap < 1)) in dwarf_formblock() 57 if (unlikely (endp - datap < 2)) in dwarf_formblock() 64 if (unlikely (endp - datap < 4)) in dwarf_formblock() 72 if (unlikely (endp - datap < 1)) in dwarf_formblock() 82 if (unlikely (endp - datap < 16)) in dwarf_formblock() 93 if (unlikely (return_block->length > (size_t) (endp - return_block->data))) in dwarf_formblock()
|
/external/elfutils/libdwfl/ |
D | segment.c | 67 if (unlikely (naddr == NULL)) in insert() 70 if (unlikely (nsegndx == NULL)) in insert() 86 if (unlikely (dwfl->lookup_module == NULL)) in insert() 94 if (unlikely (i < dwfl->lookup_elts)) in insert() 171 if (unlikely (idx < 0)) in reify_segments() 174 if (unlikely (insert (dwfl, 0, start, end, -1))) in reify_segments() 182 if (unlikely (insert (dwfl, idx + 1, start, end, in reify_segments() 192 if (unlikely (insert (dwfl, idx + 1, start, end, -1))) in reify_segments() 202 if (unlikely (insert (dwfl, idx + 1, in reify_segments() 212 if (unlikely (dwfl->lookup_module == NULL)) in reify_segments() [all …]
|
D | core-file.c | 69 if (unlikely (offset < min) in elf_begin_rand() 70 || unlikely (offset >= (off_t) parent->maximum_size)) in elf_begin_rand() 79 if (unlikely (parent->maximum_size - offset < sizeof h)) in elf_begin_rand() 85 else if (unlikely (pread_retry (parent->fildes, in elf_begin_rand() 96 if (unlikely (endp == h.ar_size) in elf_begin_rand() 97 || unlikely ((off_t) parent->maximum_size - offset < size)) in elf_begin_rand() 101 if (unlikely ((off_t) parent->maximum_size - offset < size)) in elf_begin_rand() 108 if (unlikely (offset == 0) in elf_begin_rand() 109 && unlikely (size == (off_t) parent->maximum_size)) in elf_begin_rand() 127 if (unlikely (dwfl == NULL)) in dwfl_report_core_segments() [all …]
|
D | relocate.c | 63 && unlikely (elf_getshdrstrndx (elf, shstrndx) < 0)) in __libdwfl_relocate_value() 67 if (unlikely (name == NULL)) in __libdwfl_relocate_value() 84 && unlikely (! gelf_update_shdr (refscn, refshdr))) in __libdwfl_relocate_value() 147 if (unlikely (cache->symdata == NULL)) in relocate_getsym() 152 if (unlikely (cache->symxndxdata == NULL)) in relocate_getsym() 165 if (unlikely (mod->symfile == NULL) in relocate_getsym() 166 && unlikely (INTUSE(dwfl_module_getsymtab) (mod) < 0)) in relocate_getsym() 180 if (unlikely (gelf_getsymshndx (cache->symdata, cache->symxndxdata, in relocate_getsym() 248 if (unlikely (symtab->symstrdata == NULL in resolve_symbol() 252 if (unlikely (sym->st_name >= symtab->symstrdata->d_size)) in resolve_symbol() [all …]
|
/external/harfbuzz_ng/src/ |
D | hb-open-type.hh | 281 if (unlikely (this->is_null ())) return *_hb_has_null<Type, has_null>::get_null (); in operator ()() 286 if (unlikely (this->is_null ())) return *_hb_has_null<Type, has_null>::get_crap (); in operator ()() 357 if (unlikely (!c->check_struct (this))) return_trace (false); in sanitize_shallow() 358 if (unlikely (this->is_null ())) return_trace (true); in sanitize_shallow() 359 if (unlikely (!c->check_range (base, *this))) return_trace (false); in sanitize_shallow() 406 if (unlikely (p < arrayZ)) return Null (Type); /* Overflowed. */ in operator []() 413 if (unlikely (p < arrayZ)) return Crap (Type); /* Overflowed. */ in operator []() 442 if (unlikely (!c->extend (*this, items_len))) return_trace (false); in serialize() 451 if (unlikely (!serialize (c, count))) return_trace (false); in serialize() 463 if (unlikely (!as_array (count).copy (c))) return_trace (nullptr); in copy() [all …]
|
D | hb-blob.cc | 184 if (unlikely (blob == hb_blob_get_empty ())) in hb_blob_copy_writable_or_fail() 470 if (unlikely (!new_data)) in try_make_writable() 550 if (unlikely (!file)) return hb_blob_get_empty (); in hb_blob_create_from_file() 553 if (unlikely (fd == -1)) goto fail_without_close; in hb_blob_create_from_file() 556 if (unlikely (fstat (fd, &st) == -1)) goto fail; in hb_blob_create_from_file() 562 if (unlikely (file->contents == MAP_FAILED)) goto fail; in hb_blob_create_from_file() 577 if (unlikely (!file)) return hb_blob_get_empty (); in hb_blob_create_from_file() 582 if (unlikely (wchar_file_name == nullptr)) goto fail_without_close; in hb_blob_create_from_file() 603 if (unlikely (fd == INVALID_HANDLE_VALUE)) goto fail_without_close; in hb_blob_create_from_file() 616 if (unlikely (file->mapping == nullptr)) goto fail; in hb_blob_create_from_file() [all …]
|
D | hb-ot-cff-common.hh | 104 if (unlikely (dest == nullptr)) return_trace (false); in serialize() 117 if (unlikely (dest == nullptr)) return_trace (false); in serialize() 123 if (unlikely (!c->extend_min (*this))) return_trace (false); in serialize() 126 if (unlikely (!c->allocate_size<HBUINT8> (offSize_ * (byteArray.length + 1)))) in serialize() 144 if (unlikely (dest == nullptr)) in serialize() 191 if (unlikely ((offset_at (index + 1) < offset_at (index)) || in length_at() 204 if (unlikely (index >= count)) return Null (byte_str_t); in operator []() 267 if (unlikely (!c->extend_min (*this))) return_trace (false); in serialize() 270 if (unlikely (!c->allocate_size<HBUINT8> (offSize_ * (dataArrayLen + 1)))) in serialize() 287 if (unlikely (dest == nullptr || in serialize() [all …]
|
D | hb-ot-shape-complex-indic.hh | 336 if (unlikely (hb_in_range<hb_codepoint_t> (u, 0x0953u, 0x0954u))) in set_indic_properties() 339 else if (unlikely (hb_in_ranges<hb_codepoint_t> (u, 0x0A72u, 0x0A73u, in set_indic_properties() 344 else if (unlikely (hb_in_range<hb_codepoint_t> (u, 0x1CE2u, 0x1CE8u))) in set_indic_properties() 349 else if (unlikely (u == 0x1CEDu)) in set_indic_properties() 352 else if (unlikely (hb_in_ranges<hb_codepoint_t> (u, 0xA8F2u, 0xA8F7u, in set_indic_properties() 359 else if (unlikely (u == 0x0A51u)) in set_indic_properties() 368 else if (unlikely (u == 0x11301u || u == 0x11303u)) cat = OT_SM; in set_indic_properties() 369 else if (unlikely (u == 0x1133Bu || u == 0x1133Cu)) cat = OT_N; in set_indic_properties() 371 …else if (unlikely (u == 0x0AFBu)) cat = OT_N; /* https://github.com/harfbuzz/harfbuzz/issues/552 */ in set_indic_properties() 373 …else if (unlikely (u == 0x0980u)) cat = OT_PLACEHOLDER; /* https://github.com/harfbuzz/harfbuzz/is… in set_indic_properties() [all …]
|
D | hb-ot-cff1-table.hh | 172 if (unlikely (dest == nullptr)) return_trace (false); in serialize() 186 if (unlikely (dest == nullptr)) return_trace (false); in serialize() 192 if (unlikely (fmt0 == nullptr)) return_trace (false); in serialize() 200 if (unlikely (!((glyph <= 0x100) && (code <= 0x100)))) in serialize() 209 if (unlikely (fmt1 == nullptr)) return_trace (false); in serialize() 213 if (unlikely (!((code_ranges[i].code <= 0xFF) && (code_ranges[i].glyph <= 0xFF)))) in serialize() 226 if (unlikely (suppData == nullptr)) return_trace (false); in serialize() 291 if (unlikely (!c->check_struct (this))) in sanitize() 296 case 0: if (unlikely (!u.format0.sanitize (c))) { return_trace (false); } break; in sanitize() 297 case 1: if (unlikely (!u.format1.sanitize (c))) { return_trace (false); } break; in sanitize() [all …]
|
D | hb-ot-hmtx-table.hh | 83 if (unlikely (!dest_blob)) { in subset_update_header() 112 if (unlikely (!c->embed<LongMetric> (&lm))) return; in serialize() 117 if (unlikely (!sb)) return; in serialize() 130 if (unlikely (!table_prime)) return_trace (false); in subset() 151 if (unlikely (c->serializer->ran_out_of_room || c->serializer->in_error ())) in subset() 155 if (unlikely (!subset_update_header (c->plan, num_advances))) in subset() 176 if (unlikely (num_advances * 4 > len)) in init() 182 if (unlikely (!num_advances)) in init() 203 if (unlikely (glyph >= num_metrics)) in get_side_bearing() 215 if (unlikely (glyph >= num_metrics) || !font->num_coords) in get_side_bearing() [all …]
|
D | hb-ot-cff2-table.hh | 59 if (unlikely (dest == nullptr)) return_trace (false); in serialize() 95 if (unlikely (!c->check_struct (this))) in sanitize() 130 if (unlikely (dest == nullptr)) return_trace (false); in serialize() 206 if (unlikely (env.in_error ())) return; in process_op() 243 if (unlikely (env.in_error ())) return; in process_op() 353 if (unlikely (env.in_error ())) return; in process_op() 395 if (unlikely (env.in_error ())) return; in process_op() 446 if (unlikely (!topDictStr.sanitize (&sc))) { fini (); return; } in init() 450 if (unlikely (!top_interp.interpret (topDict))) { fini (); return; } in init() 459 if (((varStore != &Null(CFF2VariationStore)) && unlikely (!varStore->sanitize (&sc))) || in init() [all …]
|
D | hb-ot-layout-gsub-table.hh | 61 if (unlikely (!(this+coverage).add_coverage (c->input))) return; in collect_glyphs() 96 if (unlikely (!c->extend_min (*this))) return_trace (false); in serialize() 97 if (unlikely (!coverage.serialize (c, this).serialize (c, glyphs))) return_trace (false); in serialize() 159 if (unlikely (!(this+coverage).add_coverage (c->input))) return; in collect_glyphs() 177 if (unlikely (index >= substitute.len)) return_trace (false); in apply() 199 if (unlikely (!c->extend_min (*this))) return_trace (false); in serialize() 200 if (unlikely (!substitute.serialize (c, substitutes))) return_trace (false); in serialize() 201 if (unlikely (!coverage.serialize (c, this).serialize (c, glyphs))) return_trace (false); in serialize() 252 if (unlikely (!c->extend_min (u.format))) return_trace (false); in serialize() 279 … if (unlikely (!c->may_dispatch (this, &u.format))) return_trace (c->no_dispatch_return_value ()); in dispatch() [all …]
|
/external/elfutils/libelf/ |
D | elf_update.c | 50 if (unlikely (fstat (elf->fildes, &st) != 0)) in write_file() 64 && unlikely (ftruncate (elf->fildes, size) != 0)) in write_file() 75 if (unlikely (elf->map_address == MAP_FAILED)) in write_file() 98 if (unlikely (posix_fallocate (elf->fildes, 0, size) != 0)) in write_file() 142 && unlikely (ftruncate (elf->fildes, size) != 0)) in write_file() 152 && unlikely (st.st_mode & (S_ISUID | S_ISGID)) in write_file() 154 && unlikely (fchmod (elf->fildes, st.st_mode) != 0)) in write_file() 176 && unlikely (cmd != ELF_C_WRITE_MMAP)) in elf_update() 219 && unlikely (elf->cmd != ELF_C_WRITE_MMAP)) in elf_update() 224 else if (unlikely (elf->fildes == -1)) in elf_update()
|
D | gelf_update_auxv.c | 49 if (unlikely (ndx < 0)) in gelf_update_auxv() 55 if (unlikely (data_scn->d.d_type != ELF_T_AUXV)) in gelf_update_auxv() 71 if (unlikely (src->a_type > 0xffffffffll) in gelf_update_auxv() 72 || unlikely (src->a_un.a_val > 0xffffffffull)) in gelf_update_auxv() 79 if (unlikely ((ndx + 1) * sizeof (Elf32_auxv_t) > data_scn->d.d_size)) in gelf_update_auxv() 93 if (unlikely ((ndx + 1) * sizeof (Elf64_auxv_t) > data_scn->d.d_size)) in gelf_update_auxv()
|
D | gelf_update_phdr.c | 48 if (unlikely (elf->kind != ELF_K_ELF)) in gelf_update_phdr() 63 if (unlikely (src->p_offset > 0xffffffffull) in gelf_update_phdr() 64 || unlikely (src->p_vaddr > 0xffffffffull) in gelf_update_phdr() 65 || unlikely (src->p_paddr > 0xffffffffull) in gelf_update_phdr() 66 || unlikely (src->p_filesz > 0xffffffffull) in gelf_update_phdr() 67 || unlikely (src->p_memsz > 0xffffffffull) in gelf_update_phdr() 68 || unlikely (src->p_align > 0xffffffffull)) in gelf_update_phdr()
|