/third_party/benchmark/test/ |
H A D | diagnostics_test.cc | 28 void try_invalid_pause_resume(benchmark::State& state) { in try_invalid_pause_resume() argument 32 state.PauseTiming(); in try_invalid_pause_resume() 37 state.ResumeTiming(); in try_invalid_pause_resume() 42 (void)state; // avoid unused warning in try_invalid_pause_resume() 46 void BM_diagnostic_test(benchmark::State& state) { in BM_diagnostic_test() argument 49 if (called_once == false) try_invalid_pause_resume(state); in BM_diagnostic_test() 51 for (auto _ : state) { in BM_diagnostic_test() 52 auto iterations = state.iterations(); in BM_diagnostic_test() 56 if (called_once == false) try_invalid_pause_resume(state); in BM_diagnostic_test() 62 void BM_diagnostic_test_keep_running(benchmark::State& state) { in BM_diagnostic_test_keep_running() argument [all...] |
H A D | multiple_ranges_test.cc | 31 void SetUp(const ::benchmark::State& state) override { 32 std::vector<int64_t> ranges = {state.range(0), state.range(1), 33 state.range(2)}; 67 BENCHMARK_DEFINE_F(MultipleRangesFixture, Empty)(benchmark::State& state) { in BENCHMARK_DEFINE_F() 68 for (auto _ : state) { in BENCHMARK_DEFINE_F() 69 int64_t product = state.range(0) * state.range(1) * state.range(2); in BENCHMARK_DEFINE_F() 81 void BM_CheckDefaultArgument(benchmark::State& state) { in BM_CheckDefaultArgument() argument [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/base/internal/ |
H A D | periodic_sampler_benchmark.cc | 24 void BM_Sample(Sampler* sampler, benchmark::State& state) { in BM_Sample() argument 25 for (auto _ : state) { in BM_Sample() 32 void BM_SampleMinunumInlined(Sampler* sampler, benchmark::State& state) { in BM_SampleMinunumInlined() argument 33 for (auto _ : state) { in BM_SampleMinunumInlined() 41 void BM_PeriodicSampler_TinySample(benchmark::State& state) { in BM_PeriodicSampler_TinySample() argument 44 BM_Sample(&sampler, state); in BM_PeriodicSampler_TinySample() 48 void BM_PeriodicSampler_ShortSample(benchmark::State& state) { in BM_PeriodicSampler_ShortSample() argument 51 BM_Sample(&sampler, state); in BM_PeriodicSampler_ShortSample() 55 void BM_PeriodicSampler_LongSample(benchmark::State& state) { in BM_PeriodicSampler_LongSample() argument 58 BM_Sample(&sampler, state); in BM_PeriodicSampler_LongSample() 62 BM_PeriodicSampler_LongSampleMinunumInlined(benchmark::State& state) BM_PeriodicSampler_LongSampleMinunumInlined() argument 69 BM_PeriodicSampler_Disabled(benchmark::State& state) BM_PeriodicSampler_Disabled() argument [all...] |
/third_party/elfutils/libdwfl/ |
H A D | dwfl_frame_regs.c | 1 /* Get Dwarf Frame state from modules present in DWFL. 39 Dwfl_Frame *state = thread->unwound; in dwfl_thread_state_registers() local 40 assert (state && state->unwound == NULL); in dwfl_thread_state_registers() 41 assert (state->initial_frame); in dwfl_thread_state_registers() 43 if (! __libdwfl_frame_reg_set (state, regno, regs[regno - firstreg])) in dwfl_thread_state_registers() 55 Dwfl_Frame *state = thread->unwound; in INTDEF() local 56 assert (state && state->unwound == NULL); in INTDEF() 57 assert (state in INTDEF() [all...] |
H A D | frame_unwind.c | 1 /* Get previous frame state for an existing frame state. 48 __libdwfl_frame_reg_get (Dwfl_Frame *state, unsigned regno, Dwarf_Addr *val) in __libdwfl_frame_reg_get() argument 50 Ebl *ebl = state->thread->process->ebl; in __libdwfl_frame_reg_get() 55 if ((state->regs_set[regno / sizeof (*state->regs_set) / 8] in __libdwfl_frame_reg_get() 56 & ((uint64_t) 1U << (regno % (sizeof (*state->regs_set) * 8)))) == 0) in __libdwfl_frame_reg_get() 59 *val = state->regs[regno]; in __libdwfl_frame_reg_get() 65 __libdwfl_frame_reg_set (Dwfl_Frame *state, unsigned regno, Dwarf_Addr val) in __libdwfl_frame_reg_set() argument 67 Ebl *ebl = state in __libdwfl_frame_reg_set() 136 expr_eval(Dwfl_Frame *state, Dwarf_Frame *frame, const Dwarf_Op *ops, size_t nops, Dwarf_Addr *result, Dwarf_Addr bias) expr_eval() argument 500 new_unwound(Dwfl_Frame *state) new_unwound() argument 528 handle_cfi(Dwfl_Frame *state, Dwarf_Addr pc, Dwarf_CFI *cfi, Dwarf_Addr bias) handle_cfi() argument 668 Dwfl_Frame *state = arg; setfunc() local 688 Dwfl_Frame *state = arg; getfunc() local 699 Dwfl_Frame *state = arg; readfunc() local 708 __libdwfl_frame_unwind(Dwfl_Frame *state) __libdwfl_frame_unwind() argument [all...] |
H A D | dwfl_frame.c | 1 /* Get Dwarf Frame state for target PID or core file. 40 state_fetch_pc (Dwfl_Frame *state) in state_fetch_pc() argument 42 switch (state->pc_state) in state_fetch_pc() 50 Ebl *ebl = state->thread->process->ebl; in state_fetch_pc() 64 state->pc = state->regs[ra] + ebl_ra_offset (ebl); in state_fetch_pc() 65 state->pc_state = DWFL_FRAME_STATE_PC_SET; in state_fetch_pc() 75 free_states (Dwfl_Frame *state) in free_states() argument 77 while (state) in free_states() 79 Dwfl_Frame *next = state in free_states() 94 Dwfl_Frame *state = malloc (sizeof (*state) + sizeof (*state->regs) * nregs); state_alloc() local 417 Dwfl_Frame *state = thread->unwound; INTDEF() local [all...] |
/third_party/elfutils/libelf/ |
H A D | elf32_newphdr.c | 79 if (unlikely (elf->state.ELFW(elf,LIBELFBITS).ehdr == NULL)) in ElfW2() 90 if (elf->state.ELFW(elf,LIBELFBITS).phdr != NULL) in ElfW2() 92 if (elf->state.ELFW(elf,LIBELFBITS).phdr_flags & ELF_F_MALLOCED) in ElfW2() 93 free (elf->state.ELFW(elf,LIBELFBITS).phdr); in ElfW2() 96 elf->state.ELFW(elf,LIBELFBITS).phdr = NULL; in ElfW2() 98 elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phnum = 0; in ElfW2() 100 if (elf->state.ELFW(elf,LIBELFBITS).scns.cnt > 0) in ElfW2() 101 elf->state.ELFW(elf,LIBELFBITS).scns.data[0] in ElfW2() 104 elf->state.ELFW(elf,LIBELFBITS).ehdr->e_phentsize = in ElfW2() 107 elf->state in ElfW2() [all...] |
/third_party/node/deps/v8/third_party/zlib/contrib/optimizations/ |
H A D | inffast_chunk.c | 26 state->mode == LEN 30 state->bits < 8 31 (state->hold >> state->bits) == 0 34 strm->state->window is allocated with an additional 35 CHUNKCOPY_CHUNK_SIZE-1 bytes of padding beyond strm->state->wsize 37 On return, state->mode is one of: 65 (state->hold >> state->bits) == 0 78 struct inflate_state FAR *state; local [all...] |
/third_party/skia/third_party/externals/zlib/contrib/optimizations/ |
H A D | inffast_chunk.c | 26 state->mode == LEN 30 state->bits < 8 31 (state->hold >> state->bits) == 0 34 strm->state->window is allocated with an additional 35 CHUNKCOPY_CHUNK_SIZE-1 bytes of padding beyond strm->state->wsize 37 On return, state->mode is one of: 65 (state->hold >> state->bits) == 0 78 struct inflate_state FAR *state; local [all...] |
/third_party/pulseaudio/src/pulsecore/resampler/ |
H A D | speex.c | 60 SpeexResamplerState *state; in speex_resample_float() local 67 state = r->impl.data; in speex_resample_float() 82 pa_assert_se(speex_resampler_process_interleaved_float(state, in, &inf, out, &outf) == 0); in speex_resample_float() 96 SpeexResamplerState *state; in speex_resample_int() local 103 state = r->impl.data; in speex_resample_int() 108 pa_assert_se(speex_resampler_process_interleaved_int(state, in, &inf, out, &outf) == 0); in speex_resample_int() 120 SpeexResamplerState *state; in speex_update_rates() local 123 state = r->impl.data; in speex_update_rates() 125 pa_assert_se(speex_resampler_set_rate(state, r->i_ss.rate, r->o_ss.rate) == 0); in speex_update_rates() 129 SpeexResamplerState *state; in speex_reset() local 139 SpeexResamplerState *state; speex_free() local 151 SpeexResamplerState *state; pa_resampler_speex_init() local [all...] |
/third_party/icu/icu4c/source/i18n/ |
H A D | number_patternstring.cpp | 158 U_ASSERT(state.offset == 0); in consumePattern() 164 if (state.peek() == u';') { in consumePattern() 165 state.next(); // consume the ';' in consumePattern() 167 if (state.peek() != -1) { in consumePattern() 174 if (state.peek() != -1) { in consumePattern() 175 state.toParseException(u"Found unquoted special character"); in consumePattern() 201 if (state.peek() != u'*') { in consumePadding() 205 state.toParseException(u"Cannot have multiple pad specifiers"); in consumePadding() 211 state.next(); // consume the '*' in consumePadding() 212 currentSubpattern->paddingEndpoints.start = state in consumePadding() 969 int state = 0; convertLocalized() local [all...] |
/third_party/node/deps/icu-small/source/i18n/ |
H A D | number_patternstring.cpp | 158 U_ASSERT(state.offset == 0); in consumePattern() 164 if (state.peek() == u';') { in consumePattern() 165 state.next(); // consume the ';' in consumePattern() 167 if (state.peek() != -1) { in consumePattern() 174 if (state.peek() != -1) { in consumePattern() 175 state.toParseException(u"Found unquoted special character"); in consumePattern() 201 if (state.peek() != u'*') { in consumePadding() 205 state.toParseException(u"Cannot have multiple pad specifiers"); in consumePadding() 211 state.next(); // consume the '*' in consumePadding() 212 currentSubpattern->paddingEndpoints.start = state in consumePadding() 969 int state = 0; convertLocalized() local [all...] |
/third_party/mesa3d/src/gallium/drivers/d3d12/ |
H A D | d3d12_resource_state.cpp | 37 /* Stores the current desired state of either an entire resource, or each subresource. */ 46 desired_resource_state_init(desired_resource_state *state, uint32_t subresource_count) in desired_resource_state_init() argument 48 state->homogenous = true; in desired_resource_state_init() 49 state->num_subresources = subresource_count; in desired_resource_state_init() 50 state->subresource_states = (D3D12_RESOURCE_STATES *)calloc(subresource_count, sizeof(D3D12_RESOURCE_STATES)); in desired_resource_state_init() 51 return state->subresource_states != nullptr; in desired_resource_state_init() 55 desired_resource_state_cleanup(desired_resource_state *state) in desired_resource_state_cleanup() argument 57 free(state->subresource_states); in desired_resource_state_cleanup() 61 get_desired_subresource_state(const desired_resource_state *state, uint32_t subresource_index) in get_desired_subresource_state() argument 63 if (state in get_desired_subresource_state() 81 set_desired_resource_state(desired_resource_state *state_obj, D3D12_RESOURCE_STATES state) set_desired_resource_state() argument 88 set_desired_subresource_state(desired_resource_state *state_obj, uint32_t subresource, D3D12_RESOURCE_STATES state) set_desired_subresource_state() argument 109 d3d12_resource_state_init(d3d12_resource_state *state, uint32_t subresource_count, bool simultaneous_access) d3d12_resource_state_init() argument 119 d3d12_resource_state_cleanup(d3d12_resource_state *state) d3d12_resource_state_cleanup() argument 125 get_subresource_state(const d3d12_resource_state *state, uint32_t subresource) get_subresource_state() argument 133 set_resource_state(d3d12_resource_state *state_obj, const d3d12_subresource_state *state) set_resource_state() argument 140 set_subresource_state(d3d12_resource_state *state_obj, uint32_t subresource, const d3d12_subresource_state *state) set_subresource_state() argument 153 reset_resource_state(d3d12_resource_state *state) reset_resource_state() argument 456 d3d12_transition_resource_state(struct d3d12_context *ctx, struct d3d12_resource *res, D3D12_RESOURCE_STATES state, d3d12_transition_flags flags) d3d12_transition_resource_state() argument 478 d3d12_transition_subresources_state(struct d3d12_context *ctx, struct d3d12_resource *res, uint32_t start_level, uint32_t num_levels, uint32_t start_layer, uint32_t num_layers, uint32_t start_plane, uint32_t num_planes, D3D12_RESOURCE_STATES state, d3d12_transition_flags flags) d3d12_transition_subresources_state() argument [all...] |
/third_party/python/Lib/ |
H A D | shlex.py | 47 self.state = ' ' 99 self.state = ' ' 144 print("shlex: in state %r I see character: %r" % (self.state, 146 if self.state is None: 149 elif self.state == ' ': 151 self.state = None # end of file 155 print("shlex: I see whitespace in whitespace state") 165 self.state = nextchar 168 self.state [all...] |
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/ |
H A D | doctransformer.py | 86 Represents the state of the transform operation""" 187 def __init__(self, state): 188 self.isVU = state.vuStack[-1] if len(state.vuStack) > 0 else False 191 self.apiName = state.apiName 195 self.leadIndent = state.leadIndent 198 self.hangIndent = state.hangIndent 201 self.lineNumber = state.lineNumber 230 self.state = TransformState() 250 if self.state [all...] |
/third_party/skia/src/utils/ |
H A D | SkCanvasStateUtils.cpp | 141 static void setup_MC_state(SkMCState* state, const SkMatrix& matrix, const SkIRect& clip) { in setup_MC_state() argument 143 state->clipRectCount = 0; in setup_MC_state() 147 state->matrix[i] = matrix.get(i); in setup_MC_state() 157 state->clipRectCount = 1; in setup_MC_state() 158 state->clipRects = (ClipRect*)sk_malloc_throw(sizeof(ClipRect)); in setup_MC_state() 159 state->clipRects->left = clip.fLeft; in setup_MC_state() 160 state->clipRects->top = clip.fTop; in setup_MC_state() 161 state->clipRects->right = clip.fRight; in setup_MC_state() 162 state->clipRects->bottom = clip.fBottom; in setup_MC_state() 178 // Historically, the canvas state coul in CaptureCanvasState() 231 setup_canvas_from_MC_state(const SkMCState& state, SkCanvas* canvas) setup_canvas_from_MC_state() argument 287 MakeFromCanvasState(const SkCanvasState* state) MakeFromCanvasState() argument 320 ReleaseCanvasState(SkCanvasState* state) ReleaseCanvasState() argument [all...] |
/third_party/curl/lib/vssh/ |
H A D | libssh.c | 226 #define state(x,y) mystate(x,y) macro 228 #define state(x,y) mystate(x,y, __LINE__) macro 234 /* This is the ONLY way to change SSH state! */ 309 if(sshc->state != nowstate) { in mystate() 310 infof(data, "SSH %p state change from %s to %s (line %d)", in mystate() 311 (void *) sshc, names[sshc->state], names[nowstate], in mystate() 316 sshc->state = nowstate; in mystate() 555 state(data, SSH_SESSION_DISCONNECT); \ 561 state(data, SSH_SFTP_CLOSE); \ 570 state(dat [all...] |
/third_party/mesa3d/src/gallium/auxiliary/draw/ |
H A D | draw_vs_llvm.c | 78 if (dvs->state.ir.nir) in vs_llvm_delete() 79 ralloc_free(dvs->state.ir.nir); in vs_llvm_delete() 80 FREE((void*) dvs->state.tokens); in vs_llvm_delete() 87 const struct pipe_shader_state *state) in draw_create_vs_llvm() 94 if (state->type == PIPE_SHADER_IR_NIR) { in draw_create_vs_llvm() 95 vs->base.state.ir.nir = state->ir.nir; in draw_create_vs_llvm() 96 nir_shader *nir = (nir_shader *)state->ir.nir; in draw_create_vs_llvm() 98 NIR_PASS_V(state->ir.nir, nir_lower_uniforms_to_ubo, false, false); in draw_create_vs_llvm() 99 nir_tgsi_scan_shader(state in draw_create_vs_llvm() 86 draw_create_vs_llvm(struct draw_context *draw, const struct pipe_shader_state *state) draw_create_vs_llvm() argument [all...] |
/third_party/mesa3d/src/freedreno/vulkan/ |
H A D | tu_cmd_buffer.c | 55 if (cmd->state.tessfactor_addr_set) in tu6_lazy_emit_tessfactor_addr() 60 cmd->state.cache.flush_bits |= TU_CMD_FLAG_WAIT_FOR_IDLE; in tu6_lazy_emit_tessfactor_addr() 61 cmd->state.tessfactor_addr_set = true; in tu6_lazy_emit_tessfactor_addr() 112 tu6_emit_flushes(cmd_buffer, cs, cmd_buffer->state.cache.flush_bits); in tu_emit_cache_flush() 113 cmd_buffer->state.cache.flush_bits = 0; in tu_emit_cache_flush() 122 if (!cmd_buffer->state.renderpass_cache.flush_bits && in tu_emit_cache_flush_renderpass() 125 tu6_emit_flushes(cmd_buffer, cs, cmd_buffer->state.renderpass_cache.flush_bits); in tu_emit_cache_flush_renderpass() 126 cmd_buffer->state.renderpass_cache.flush_bits = 0; in tu_emit_cache_flush_renderpass() 130 * blits and draws). This deals with changing CCU state as well as the usual 139 enum tu_cmd_flush_bits flushes = cmd_buffer->state in tu_emit_cache_flush_ccu() 487 tu_cs_emit_draw_state(struct tu_cs *cs, uint32_t id, struct tu_draw_state state) tu_cs_emit_draw_state() argument [all...] |
/third_party/skia/third_party/externals/expat/expat/xmlwf/ |
H A D | xmlmime.c | 42 int state = init; in getTok() local 47 if (state == inAtom) in getTok() 54 if (state == inAtom) in getTok() 58 if (state == inAtom) in getTok() 60 if (state != inString) in getTok() 61 state++; in getTok() 64 if (state > init) in getTok() 65 --state; in getTok() 66 else if (state != inString) in getTok() 72 if (state in getTok() [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/ |
H A D | str_join_benchmark.cc | 26 void BM_Join2_Strings(benchmark::State& state) { in BM_Join2_Strings() argument 27 const int string_len = state.range(0); in BM_Join2_Strings() 28 const int num_strings = state.range(1); in BM_Join2_Strings() 31 for (auto _ : state) { in BM_Join2_Strings() 47 void BM_Join2_Ints(benchmark::State& state) { in BM_Join2_Ints() argument 48 const int num_ints = state.range(0); in BM_Join2_Ints() 50 for (auto _ : state) { in BM_Join2_Ints() 57 void BM_Join2_KeysAndValues(benchmark::State& state) { in BM_Join2_KeysAndValues() argument 58 const int string_len = state.range(0); in BM_Join2_KeysAndValues() 59 const int num_pairs = state in BM_Join2_KeysAndValues() 79 BM_JoinStreamable(benchmark::State& state) BM_JoinStreamable() argument [all...] |
H A D | escaping_benchmark.cc | 27 void BM_CUnescapeHexString(benchmark::State& state) { in BM_CUnescapeHexString() argument 33 for (auto _ : state) { in BM_CUnescapeHexString() 39 void BM_WebSafeBase64Escape_string(benchmark::State& state) { in BM_WebSafeBase64Escape_string() argument 49 for (auto _ : state) { in BM_WebSafeBase64Escape_string() 67 void CEscapeBenchmarkHelper(benchmark::State& state, const char* string_value, in CEscapeBenchmarkHelper() argument 74 for (auto _ : state) { in CEscapeBenchmarkHelper() 79 void BM_CEscape_NoEscape(benchmark::State& state) { in BM_CEscape_NoEscape() argument 80 CEscapeBenchmarkHelper(state, kStringValueNoEscape, state.range(0)); in BM_CEscape_NoEscape() 84 void BM_CEscape_SomeEscaped(benchmark::State& state) { in BM_CEscape_SomeEscaped() argument 89 BM_CEscape_MostEscaped(benchmark::State& state) BM_CEscape_MostEscaped() argument [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | remove_extradata_bsf.c | 69 uint32_t state = -1; in h264_split() local 75 ptr = avpriv_find_start_code(ptr, end, &state); in h264_split() 76 if ((state & 0xFFFFFF00) != 0x100) in h264_split() 78 nalu_type = state & 0x1F; in h264_split() 106 uint32_t state = -1; in hevc_split() local 113 ptr = avpriv_find_start_code(ptr, end, &state); in hevc_split() 114 if ((state >> 8) != START_CODE) in hevc_split() 116 nut = (state >> 1) & 0x3F; in hevc_split() 137 uint32_t state = -1; in mpegvideo_split() local 141 state in mpegvideo_split() 153 uint32_t state = -1; mpeg4video_split() local 167 uint32_t state = -1; vc1_split() local [all...] |
/third_party/mesa3d/src/compiler/nir/ |
H A D | nir_lower_phis_to_scalar.c | 50 should_lower_phi(nir_phi_instr *phi, struct lower_phis_to_scalar_state *state); 54 struct lower_phis_to_scalar_state *state) in is_phi_src_scalarizable() 76 return should_lower_phi(nir_instr_as_phi(src_instr), state); in is_phi_src_scalarizable() 146 should_lower_phi(nir_phi_instr *phi, struct lower_phis_to_scalar_state *state) in should_lower_phi() argument 152 if (state->lower_all) in should_lower_phi() 155 struct hash_entry *entry = _mesa_hash_table_search(state->phi_table, phi); in should_lower_phi() 163 entry = _mesa_hash_table_insert(state->phi_table, phi, (void *)(intptr_t)1); in should_lower_phi() 173 scalarizable = is_phi_src_scalarizable(src, state); in should_lower_phi() 180 entry = _mesa_hash_table_search(state->phi_table, phi); in should_lower_phi() 190 struct lower_phis_to_scalar_state *state) in lower_phis_to_scalar_block() 53 is_phi_src_scalarizable(nir_phi_src *src, struct lower_phis_to_scalar_state *state) is_phi_src_scalarizable() argument 189 lower_phis_to_scalar_block(nir_block *block, struct lower_phis_to_scalar_state *state) lower_phis_to_scalar_block() argument 284 struct lower_phis_to_scalar_state state; lower_phis_to_scalar_impl() local [all...] |
/third_party/mesa3d/src/intel/vulkan/ |
H A D | anv_nir_lower_multiview.c | 50 build_instance_id(struct lower_multiview_state *state) in build_instance_id() argument 52 assert(state->builder.shader->info.stage == MESA_SHADER_VERTEX); in build_instance_id() 54 if (state->instance_id == NULL) { in build_instance_id() 55 nir_builder *b = &state->builder; in build_instance_id() 63 state->instance_id = in build_instance_id() 65 nir_imm_int(b, util_bitcount(state->view_mask))); in build_instance_id() 68 return state->instance_id; in build_instance_id() 72 build_view_index(struct lower_multiview_state *state) in build_view_index() argument 74 if (state->view_index == NULL) { in build_view_index() 75 nir_builder *b = &state in build_view_index() 213 struct lower_multiview_state state = { anv_nir_lower_multiview() local [all...] |