/external/fio/lib/ |
D | gauss.c | 9 static int gauss_dev(struct gauss_state *gs) in gauss_dev() argument 14 if (!gs->stddev) in gauss_dev() 17 r = __rand(&gs->r); in gauss_dev() 18 vr = gs->stddev * (r / (FRAND32_MAX + 1.0)); in gauss_dev() 20 return vr - gs->stddev / 2; in gauss_dev() 23 unsigned long long gauss_next(struct gauss_state *gs) in gauss_next() argument 29 sum += __rand(&gs->r) % (gs->nranges + 1); in gauss_next() 33 if (gs->stddev) { in gauss_next() 34 int dev = gauss_dev(gs); in gauss_next() 36 while (dev + sum >= gs->nranges) in gauss_next() [all …]
|
/external/mesa3d/src/gallium/drivers/svga/ |
D | svga_state_tgsi_transform.c | 45 struct svga_geometry_shader *gs) in bind_gs_state() argument 47 svga->curr.gs = gs; in bind_gs_state() 71 struct svga_geometry_shader *gs = NULL; in emulate_point_sprite() local 83 key.gs.writes_psize = 1; in emulate_point_sprite() 84 key.gs.sprite_coord_enable = svga->curr.rast->templ.sprite_coord_enable; in emulate_point_sprite() 86 key.gs.sprite_origin_upper_left = in emulate_point_sprite() 89 key.gs.aa_point = svga->curr.rast->templ.point_smooth; in emulate_point_sprite() 99 key.gs.point_pos_stream_out = pos_out_index != -1; in emulate_point_sprite() 105 gs = (struct svga_geometry_shader *) in emulate_point_sprite() 114 if (!gs) { in emulate_point_sprite() [all …]
|
D | svga_pipe_gs.c | 44 struct svga_geometry_shader *gs = CALLOC_STRUCT(svga_geometry_shader); in svga_create_gs_state() local 46 if (!gs) in svga_create_gs_state() 51 gs->base.tokens = tgsi_dup_tokens(templ->tokens); in svga_create_gs_state() 55 tgsi_scan_shader(gs->base.tokens, &gs->base.info); in svga_create_gs_state() 57 gs->draw_shader = draw_create_geometry_shader(svga->swtnl.draw, templ); in svga_create_gs_state() 59 gs->base.id = svga->debug.shader_id++; in svga_create_gs_state() 61 gs->generic_outputs = svga_get_generic_outputs_mask(&gs->base.info); in svga_create_gs_state() 65 gs->base.stream_output = svga_create_stream_output(svga, &gs->base, in svga_create_gs_state() 70 return gs; in svga_create_gs_state() 77 struct svga_geometry_shader *gs = (struct svga_geometry_shader *)shader; in svga_bind_gs_state() local [all …]
|
D | svga_state_gs.c | 53 const struct svga_geometry_shader *gs, in translate_geometry_program() argument 57 return svga_tgsi_vgpu10_translate(svga, &gs->base, key, in translate_geometry_program() 67 struct svga_geometry_shader *gs, in compile_gs() argument 74 variant = translate_geometry_program(svga, gs, key); in compile_gs() 82 FREE((void *) gs->base.tokens); in compile_gs() 83 gs->base.tokens = dummy; in compile_gs() 84 variant = translate_geometry_program(svga, gs, key); in compile_gs() 105 struct svga_geometry_shader *gs = svga->curr.gs; in make_gs_key() local 114 memcpy(key->generic_remap_table, gs->generic_remap_table, in make_gs_key() 115 sizeof(gs->generic_remap_table)); in make_gs_key() [all …]
|
/external/toybox/kconfig/ |
D | util.c | 59 struct gstr gs; in str_new() local 60 gs.s = malloc(sizeof(char) * 64); in str_new() 61 gs.len = 16; in str_new() 62 strcpy(gs.s, "\0"); in str_new() 63 return gs; in str_new() 69 struct gstr gs; in str_assign() local 70 gs.s = strdup(s); in str_assign() 71 gs.len = strlen(s) + 1; in str_assign() 72 return gs; in str_assign() 76 void str_free(struct gstr *gs) in str_free() argument [all …]
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_gs_state.c | 41 struct brw_gs_unit_state *gs; in brw_upload_gs_unit() local 43 gs = brw_state_batch(brw, AUB_TRACE_GS_STATE, in brw_upload_gs_unit() 44 sizeof(*gs), 32, &brw->ff_gs.state_offset); in brw_upload_gs_unit() 46 memset(gs, 0, sizeof(*gs)); in brw_upload_gs_unit() 50 gs->thread0.grf_reg_count = (ALIGN(brw->ff_gs.prog_data->total_grf, 16) / in brw_upload_gs_unit() 53 gs->thread0.kernel_start_pointer = in brw_upload_gs_unit() 58 (gs->thread0.grf_reg_count << 1)) >> 6; in brw_upload_gs_unit() 60 gs->thread1.floating_point_mode = BRW_FLOATING_POINT_NON_IEEE_754; in brw_upload_gs_unit() 61 gs->thread1.single_program_flow = 1; in brw_upload_gs_unit() 63 gs->thread3.dispatch_grf_start_reg = 1; in brw_upload_gs_unit() [all …]
|
D | brw_gs_surface_state.c | 41 struct brw_stage_state *stage_state = &brw->gs.base; in brw_upload_gs_pull_constants() 50 const struct brw_stage_prog_data *prog_data = brw->gs.base.prog_data; in brw_upload_gs_pull_constants() 82 struct brw_stage_prog_data *prog_data = brw->gs.base.prog_data; in brw_upload_gs_ubo_surfaces() 85 &brw->gs.base, prog_data); in brw_upload_gs_ubo_surfaces() 107 brw_upload_abo_surfaces(brw, gp, &brw->gs.base, brw->gs.base.prog_data); in brw_upload_gs_abo_surfaces() 130 brw_upload_image_surfaces(brw, gp, &brw->gs.base, in brw_upload_gs_image_surfaces() 131 brw->gs.base.prog_data); in brw_upload_gs_image_surfaces()
|
D | brw_gs.c | 84 struct brw_stage_state *stage_state = &brw->gs.base; in brw_codegen_gs_prog() 167 &stage_state->prog_offset, &brw->gs.base.prog_data); in brw_codegen_gs_prog() 200 struct brw_stage_state *stage_state = &brw->gs.base; in brw_upload_gs_prog() 219 brw->gs.base.prog_data = NULL; in brw_upload_gs_prog() 229 &brw->gs.base.prog_data)) { in brw_upload_gs_prog() 241 uint32_t old_prog_offset = brw->gs.base.prog_offset; in brw_gs_precompile() 242 struct brw_stage_prog_data *old_prog_data = brw->gs.base.prog_data; in brw_gs_precompile() 254 brw->gs.base.prog_offset = old_prog_offset; in brw_gs_precompile() 255 brw->gs.base.prog_data = old_prog_data; in brw_gs_precompile()
|
/external/mesa3d/src/gallium/auxiliary/draw/ |
D | draw_gs.c | 684 draw->gs.tgsi.sampler, in draw_geometry_shader_prepare() 685 draw->gs.tgsi.image, in draw_geometry_shader_prepare() 686 draw->gs.tgsi.buffer); in draw_geometry_shader_prepare() 695 draw->gs.tgsi.machine = tgsi_exec_machine_create(PIPE_SHADER_GEOMETRY); in draw_gs_init() 696 if (!draw->gs.tgsi.machine) in draw_gs_init() 699 draw->gs.tgsi.machine->Primitives = align_malloc( in draw_gs_init() 701 if (!draw->gs.tgsi.machine->Primitives) in draw_gs_init() 703 memset(draw->gs.tgsi.machine->Primitives, 0, in draw_gs_init() 712 if (draw->gs.tgsi.machine) { in draw_gs_destroy() 713 align_free(draw->gs.tgsi.machine->Primitives); in draw_gs_destroy() [all …]
|
D | draw_gs_tmp.h | 1 #define FUNC_VARS struct draw_geometry_shader *gs, \ 13 const boolean last_vertex_last = !gs->draw->rasterizer->flatshade_first; \ 27 #define POINT(i0) gs_point(gs,i0) 28 #define LINE(flags,i0,i1) gs_line(gs,i0,i1) 29 #define TRIANGLE(flags,i0,i1,i2) gs_tri(gs,i0,i1,i2) 30 #define LINE_ADJ(flags,i0,i1,i2,i3) gs_line_adj(gs,i0,i1,i2,i3) 31 #define TRIANGLE_ADJ(flags,i0,i1,i2,i3,i4,i5) gs_tri_adj(gs,i0,i1,i2,i3,i4,i5)
|
D | draw_context.c | 184 draw_geometry_shader_new_instance(draw->gs.geometry_shader); in draw_new_instance() 589 if (draw->gs.geometry_shader) { in draw_get_shader_info() 590 return &draw->gs.geometry_shader->info; in draw_get_shader_info() 707 if (!draw->gs.geometry_shader) in draw_total_gs_outputs() 710 info = &draw->gs.geometry_shader->info; in draw_total_gs_outputs() 730 draw->gs.tgsi.sampler = sampler; in draw_texture_sampler() 748 draw->gs.tgsi.image = image; in draw_image() 766 draw->gs.tgsi.buffer = buffer; in draw_buffer() 831 if (draw->gs.geometry_shader) in draw_current_shader_outputs() 832 return draw->gs.num_gs_outputs; in draw_current_shader_outputs() [all …]
|
/external/libxml2/ |
D | globals.c | 506 xmlInitializeGlobalState(xmlGlobalStatePtr gs) in xmlInitializeGlobalState() argument 510 (unsigned long) gs, xmlGetThreadId()); in xmlInitializeGlobalState() 522 initdocbDefaultSAXHandler(&gs->docbDefaultSAXHandler); in xmlInitializeGlobalState() 525 inithtmlDefaultSAXHandler(&gs->htmlDefaultSAXHandler); in xmlInitializeGlobalState() 528 gs->oldXMLWDcompatibility = 0; in xmlInitializeGlobalState() 529 gs->xmlBufferAllocScheme = xmlBufferAllocSchemeThrDef; in xmlInitializeGlobalState() 530 gs->xmlDefaultBufferSize = xmlDefaultBufferSizeThrDef; in xmlInitializeGlobalState() 532 initxmlDefaultSAXHandler(&gs->xmlDefaultSAXHandler, 1); in xmlInitializeGlobalState() 534 gs->xmlDefaultSAXLocator.getPublicId = xmlSAX2GetPublicId; in xmlInitializeGlobalState() 535 gs->xmlDefaultSAXLocator.getSystemId = xmlSAX2GetSystemId; in xmlInitializeGlobalState() [all …]
|
/external/harfbuzz_ng/util/ |
D | hb-shape.cc | 36 gs (NULL), in output_buffer_t() 43 gs = g_string_new (NULL); in init() 86 g_string_set_size (gs, 0); in consume_text() 87 format.serialize_buffer_of_text (buffer, line_no, text, text_len, font, gs); in consume_text() 88 fprintf (options.fp, "%s", gs->str); in consume_text() 95 g_string_set_size (gs, 0); in shape_failed() 96 format.serialize_message (line_no, "msg: all shapers failed", gs); in shape_failed() 97 fprintf (options.fp, "%s", gs->str); in shape_failed() 104 g_string_set_size (gs, 0); in consume_glyphs() 106 output_format, format_flags, gs); in consume_glyphs() [all …]
|
D | options.cc | 554 GString *gs = g_string_new (NULL); in get_font() local 564 g_string_append_len (gs, buf, ret); in get_font() 566 len = gs->len; in get_font() 567 font_data = g_string_free (gs, false); in get_font() 709 gs = g_string_new (NULL); in get_line() 712 g_string_set_size (gs, 0); in get_line() 718 g_string_append_len (gs, buf, bytes); in get_line() 721 g_string_append_len (gs, buf, bytes); in get_line() 726 *len = gs->len; in get_line() 727 return !*len && feof (fp) ? NULL : gs->str; in get_line() [all …]
|
/external/mesa3d/src/gallium/drivers/ilo/core/ |
D | ilo_state_shader.c | 513 gs_set_gen6_3DSTATE_GS(struct ilo_state_gs *gs, in gs_set_gen6_3DSTATE_GS() argument 567 STATIC_ASSERT(ARRAY_SIZE(gs->gs) >= 5); in gs_set_gen6_3DSTATE_GS() 568 gs->gs[0] = dw2; in gs_set_gen6_3DSTATE_GS() 569 gs->gs[1] = dw3; in gs_set_gen6_3DSTATE_GS() 570 gs->gs[2] = dw4; in gs_set_gen6_3DSTATE_GS() 571 gs->gs[3] = dw5; in gs_set_gen6_3DSTATE_GS() 572 gs->gs[4] = dw6; in gs_set_gen6_3DSTATE_GS() 574 gs->scratch_size = ff.per_thread_scratch_size * thread_count; in gs_set_gen6_3DSTATE_GS() 591 gs_set_gen7_3DSTATE_GS(struct ilo_state_gs *gs, in gs_set_gen7_3DSTATE_GS() argument 636 STATIC_ASSERT(ARRAY_SIZE(gs->gs) >= 5); in gs_set_gen7_3DSTATE_GS() [all …]
|
D | ilo_builder_3d_top.h | 675 const struct ilo_state_gs *gs, in gen6_3DSTATE_GS() argument 690 dw[2] = gs->gs[0]; in gen6_3DSTATE_GS() 691 dw[3] = gs->gs[1]; in gen6_3DSTATE_GS() 692 dw[4] = gs->gs[2]; in gen6_3DSTATE_GS() 693 dw[5] = gs->gs[3]; in gen6_3DSTATE_GS() 694 dw[6] = gs->gs[4]; in gen6_3DSTATE_GS() 696 if (ilo_state_gs_get_scratch_size(gs)) { in gen6_3DSTATE_GS() 698 gs->gs[1], 0); in gen6_3DSTATE_GS() 728 const struct ilo_state_gs *gs, in gen7_3DSTATE_GS() argument 743 dw[2] = gs->gs[0]; in gen7_3DSTATE_GS() [all …]
|
/external/llvm/test/CodeGen/X86/ |
D | win_coreclr_chkstk.ll | 19 ; WIN_X64: movq %gs:16, %rcx 37 ; LINUX-NOT: movq %gs:16, %rcx 49 ; WIN_X64: movq %gs:16, %rcx 51 ; LINUX-NOT: movq %gs:16, %rcx 62 ; WIN_X64: movq %gs:16, %rcx 63 ; LINUX-NOT: movq %gs:16, %rcx 75 ; WIN_X64: movq %gs:16, %rcx 76 ; LINUX-NOT: movq %gs:16, %rcx 86 ; WIN_X64: movq %gs:16, %rcx 87 ; LINUX-NOT: movq %gs:16, %rcx [all …]
|
D | gs-fold.ll | 15 ; Check that we are not assuming that gs contains the address of gs if we are not targeting Linux 16 ; CHECK-FBSD: movq %gs:0, %rax 18 ; Check that we are assuming that gs contains the address of gs if we are targeting Linux 19 ; CHECK-LINUX: movl %gs:8, %eax
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_state_gs.c | 80 llvmpipe_bind_gs_state(struct pipe_context *pipe, void *gs) in llvmpipe_bind_gs_state() argument 84 llvmpipe->gs = (struct lp_geometry_shader *)gs; in llvmpipe_bind_gs_state() 87 (llvmpipe->gs ? llvmpipe->gs->dgs : NULL)); in llvmpipe_bind_gs_state() 94 llvmpipe_delete_gs_state(struct pipe_context *pipe, void *gs) in llvmpipe_delete_gs_state() argument 99 (struct lp_geometry_shader *)gs; in llvmpipe_delete_gs_state()
|
/external/lisa/libs/utils/analysis/ |
D | eas_analysis.py | 106 gs = gridspec.GridSpec(4, 3, height_ratios=[2, 4, 2, 4]) 107 gs.update(wspace=0.1, hspace=0.1) 115 axes = plt.subplot(gs[0, :]) 126 axes = plt.subplot(gs[1, :]) 144 axes = plt.subplot(gs[2, :]) 159 axes = plt.subplot(gs[3, :]) 172 gs = gridspec.GridSpec(1, 3, height_ratios=[2]) 173 gs.update(wspace=0.1, hspace=0.1) 178 axes = plt.subplot(gs[0, 0]) 180 axes = plt.subplot(gs[0, 1]) [all …]
|
/external/clang/test/CodeGen/ |
D | no-opt-volatile-memcpy.c | 9 struct s gs; variable 14 gs = gs; in foo() 15 ls = gs; in foo() 35 s.y = gs; in fee()
|
/external/clang/test/CodeGenCXX/ |
D | no-opt-volatile-memcpy.cpp | 9 struct s gs; variable 14 gs = gs; in foo() 15 ls = gs; in foo() 35 s.y = gs; in fee()
|
/external/trappy/tests/ |
D | test_plot_utils.py | 46 gs = GetSet() 48 plot_utils.set_lim("default", gs.get, gs.set) 49 self.assertEquals(gs.min, 1) 50 self.assertEquals(gs.max, 2) 52 plot_utils.set_lim("range", gs.get, gs.set) 53 self.assertEquals(gs.min, 0.9) 54 self.assertEquals(gs.max, 2.1) 56 plot_utils.set_lim((0, 100), gs.get, gs.set) 57 self.assertEquals(gs.min, 0) 58 self.assertEquals(gs.max, 100)
|
/external/bzip2/ |
D | compress.c | 241 Int32 v, t, i, j, gs, ge, totc, bt, bc, iter; in sendMTFValues() local 285 gs = 0; in sendMTFValues() 288 ge = gs-1; in sendMTFValues() 295 if (ge > gs in sendMTFValues() 305 nPart, gs, ge, aFreq, in sendMTFValues() 309 if (v >= gs && v <= ge) in sendMTFValues() 314 gs = ge+1; in sendMTFValues() 344 gs = 0; in sendMTFValues() 348 if (gs >= s->nMTF) break; in sendMTFValues() 349 ge = gs + BZ_G_SIZE - 1; in sendMTFValues() [all …]
|
/external/libcxx/test/std/numerics/numarray/class.gslice/gslice.cons/ |
D | default.pass.cpp | 21 std::gslice gs; in main() local 22 assert(gs.start() == 0); in main() 23 assert(gs.size().size() == 0); in main() 24 assert(gs.stride().size() == 0); in main()
|