Searched refs:abs (Results 1 - 25 of 546) sorted by relevance

1234567891011>>

/xsrc/external/mit/MesaLib/dist/src/compiler/glsl/
H A Dgl_nir_link_atomics.c198 struct active_atomic_buffer *abs = local in function:gl_nir_link_assign_atomic_counter_resources
212 if (abs[binding].size == 0)
215 struct active_atomic_buffer *ab = abs + binding;
300 ralloc_free(abs);
308 struct active_atomic_buffer *abs = local in function:gl_nir_link_check_atomic_counter_resources
321 if (abs[i].size == 0)
324 qsort(abs[i].uniforms, abs[i].num_uniforms,
328 for (unsigned j = 1; j < abs[i].num_uniforms; j++) {
332 if (check_atomic_counters_overlap(abs[
[all...]
H A Dlink_atomics.cpp209 active_atomic_buffer *abs = local in function:link_assign_atomic_counter_resources
223 if (abs[binding].size == 0)
226 active_atomic_buffer &ab = abs[binding];
298 delete [] abs;
307 active_atomic_buffer *const abs = local in function:link_check_atomic_counter_resources
320 if (abs[i].size == 0)
324 const unsigned n = abs[i].stage_counter_references[j];
352 delete [] abs;
/xsrc/external/mit/MesaLib/dist/src/compiler/nir/
H A Dnir_normalize_cubemap_coords.c59 nir_ssa_def *abs = nir_fabs(b, orig_coord); local in function:normalize_cubemap_coords_block
60 nir_ssa_def *norm = nir_fmax(b, nir_channel(b, abs, 0),
61 nir_fmax(b, nir_channel(b, abs, 1),
62 nir_channel(b, abs, 2)));
H A Dnir_lower_fp16_conv.c99 nir_ssa_def *abs = nir_iand(b, src, nir_imm_int(b, 0x7FFFFFFF)); local in function:float_to_half_impl
101 nir_push_if(b, nir_ige(b, abs, mode == nir_rounding_mode_rtne ? f16max : f32infinity));
103 nir_ilt(b, f32infinity, abs),
111 nir_push_if(b, nir_ige(b, abs, f16max));
129 nir_push_if(b, nir_ige(b, abs, nir_imm_int(b, 113 << 23)));
136 nir_ushr(b, abs, nir_imm_int(b, 23)),
139 nir_iand(b, nir_ushr(b, abs, nir_imm_int(b, 13)), nir_imm_int(b, 0x3FFF)));
140 nir_ssa_def *guard = nir_iand(b, nir_ushr(b, abs, nir_imm_int(b, 12)), one);
141 nir_ssa_def *sticky = nir_bcsel(b, nir_ine(b, nir_iand(b, abs, nir_imm_int(b, 0xFFF)), zero), one, zero);
145 nir_push_if(b, nir_ige(b, abs, nir_imm_in
[all...]
H A Dnir_lower_to_source_mods.c31 * This pass lowers the neg, abs, and sat operations to source modifiers on
39 src->abs = true;
45 /* If abs is set on the source, the negate goes away */
46 if (!src->abs)
121 if (parent->src[0].abs)
169 if (child_alu->src[0].negate || child_alu->src[0].abs) {
/xsrc/external/mit/MesaLib.old/dist/src/compiler/nir/
H A Dnir_normalize_cubemap_coords.c59 nir_ssa_def *abs = nir_fabs(b, orig_coord); local in function:normalize_cubemap_coords_block
60 nir_ssa_def *norm = nir_fmax(b, nir_channel(b, abs, 0),
61 nir_fmax(b, nir_channel(b, abs, 1),
62 nir_channel(b, abs, 2)));
H A Dnir_lower_to_source_mods.c31 * This pass lowers the neg, abs, and sat operations to source modifiers on
87 if (!lower_abs && parent->src[0].abs)
91 if (alu->src[i].abs) {
92 /* abs trumps both neg and abs, do nothing */
95 alu->src[i].abs |= parent->src[0].abs;
123 alu->src[0].abs = true;
139 alu->src[0].abs = true;
174 if (child_alu->src[0].negate || child_alu->src[0].abs) {
[all...]
H A Dnir_builtin_builder.c58 nir_ssa_def *abs = nir_fabs(b, vec); local in function:nir_length
60 return abs;
62 nir_ssa_def *maxc = nir_fmax_abs_vec_comp(b, abs);
63 abs = nir_fdiv(b, abs, maxc);
64 nir_ssa_def *res = nir_fmul(b, nir_fsqrt(b, nir_fdot(b, abs, abs)), maxc);
/xsrc/external/mit/MesaLib.old/dist/src/intel/compiler/
H A Dbrw_nir_opt_peephole_ffma.c72 uint8_t swizzle[4], bool *negate, bool *abs)
75 assert(src->src.is_ssa && !src->abs && !src->negate);
97 swizzle, negate, abs);
102 swizzle, negate, abs);
108 swizzle, negate, abs);
110 *abs = true;
196 bool negate, abs; local in function:brw_nir_opt_peephole_ffma_block
202 abs = false;
206 swizzle, &negate, &abs);
232 if (abs) {
71 get_mul_for_src(nir_alu_src * src,unsigned num_components,uint8_t swizzle[4],bool * negate,bool * abs) argument
[all...]
H A Dbrw_fs_saturate_propagation.cpp59 inst->src[0].abs)
131 scan_inst->src[0].abs ||
133 scan_inst->src[0].abs != inst->src[0].abs ||
/xsrc/external/mit/MesaLib/dist/src/intel/compiler/
H A Dbrw_nir_opt_peephole_ffma.c71 uint8_t swizzle[4], bool *negate, bool *abs)
74 assert(src->src.is_ssa && !src->abs && !src->negate);
95 swizzle, negate, abs);
100 swizzle, negate, abs);
106 swizzle, negate, abs);
108 *abs = true;
193 bool negate, abs; local in function:brw_nir_opt_peephole_ffma_instr
199 abs = false;
203 swizzle, &negate, &abs);
229 if (abs) {
70 get_mul_for_src(nir_alu_src * src,unsigned num_components,uint8_t swizzle[4],bool * negate,bool * abs) argument
[all...]
H A Dbrw_fs_saturate_propagation.cpp61 inst->src[0].abs)
133 scan_inst->src[0].abs ||
135 scan_inst->src[0].abs != inst->src[0].abs ||
/xsrc/external/mit/freetype/dist/src/tools/
H A Dtest_trig.c32 if ( abs( f2-f1 ) > THRESHOLD )
58 if ( abs( f2-f1 ) > THRESHOLD )
84 if ( abs( f2-f1 ) > THRESHOLD )
120 if ( abs( i - j ) > 1 )
149 if ( abs( v.x-c2 ) > THRESHOLD ||
150 abs( v.y-s2 ) > THRESHOLD )
179 if ( abs( l2-l ) > THRESHOLD )
229 if ( abs( c4 - v.x ) > THRESHOLD ||
230 abs( s4 - v.y ) > THRESHOLD )
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/freedreno/a2xx/
H A Dir2_cp.c40 if (!src->abs) /* if we have abs we don't care about previous negate */
42 src->abs |= b.abs;
71 /* cant apply abs to const src, const src only for alu */
73 (src->abs || instr->type != IR2_ALU))
110 if (src->negate || src->abs) /* TODO handle these cases */
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a2xx/
H A Dir2_cp.c42 if (!src->abs) /* if we have abs we don't care about previous negate */
44 src->abs |= b.abs;
77 /* cant apply abs to const src, const src only for alu */
79 (src->abs || instr->type != IR2_ALU))
117 if (src->negate || src->abs) /* TODO handle these cases */
/xsrc/external/mit/libX11/dist/src/xcms/
H A DcmsTrig.c317 register double abs;
325 abs = XCMS_FABS(val);
326 if (abs >= XCMS_DMAXPOWTWO) {
329 ip = abs + XCMS_DMAXPOWTWO; /* dump fraction */
331 if (ip > abs) /* if it rounds up */
314 register double abs; local in function:_XcmsModuloF
/xsrc/external/mit/MesaLib/dist/src/panfrost/bifrost/
H A Dbi_opt_mod_props.c29 * Due to a Bifrost encoding restriction, some instructions cannot have an abs
36 return (arch <= 8) && I->src[1 - s].abs &&
50 * For FADD.v2f16, the FMA pipe has the abs encoding hazard,
63 return bi_opcode_props[I->op].abs & BITFIELD_BIT(s);
113 /* abs(-x) = abs(+x) so ignore repl.neg if old.abs is set, otherwise
115 repl.neg = old.neg ^ (repl.neg && !old.abs);
117 /* +/- abs(+/- abs(
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/r600/
H A Dr700_asm.c52 assert(!alu->src[0].abs && !alu->src[1].abs && !alu->src[2].abs);
68 S_SQ_ALU_WORD1_OP2_SRC0_ABS(alu->src[0].abs) |
69 S_SQ_ALU_WORD1_OP2_SRC1_ABS(alu->src[1].abs) |
116 alu->src[0].abs = G_SQ_ALU_WORD1_OP2_SRC0_ABS(word1);
117 alu->src[1].abs = G_SQ_ALU_WORD1_OP2_SRC1_ABS(word1);
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r600/
H A Dr700_asm.c52 assert(!alu->src[0].abs && !alu->src[1].abs && !alu->src[2].abs);
68 S_SQ_ALU_WORD1_OP2_SRC0_ABS(alu->src[0].abs) |
69 S_SQ_ALU_WORD1_OP2_SRC1_ABS(alu->src[1].abs) |
116 alu->src[0].abs = G_SQ_ALU_WORD1_OP2_SRC0_ABS(word1);
117 alu->src[1].abs = G_SQ_ALU_WORD1_OP2_SRC1_ABS(word1);
/xsrc/external/mit/xorg-server.old/dist/hw/xfree86/xaa/
H A DxaaDashLine.c242 len = abs(new_y2 - new_y1);
244 len = abs(new_x2 - new_x1);
255 clipdx = abs(new_x1 - x1);
256 clipdy = abs(new_y1 - y1);
266 abserr = abs(err);
277 offset = abs(new_y1 - y1);
279 offset = abs(new_x1 - x1);
292 len = abs(y2 - y1);
293 tmp = abs(x2 - x1);
/xsrc/external/mit/MesaLib.old/dist/src/mesa/state_tracker/
H A Dst_glsl_to_tgsi_private.cpp72 this->abs = 0;
92 this->abs = 0;
110 this->abs = 0;
127 this->abs = 0;
154 this->abs = reg.abs;
170 this->abs = 0;
184 reg.abs = 1;
200 lhs.abs != rhs.abs ||
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/etnaviv/
H A Detnaviv_asm.c88 COND(inst->src[0].abs, VIV_ISA_WORD_1_SRC0_ABS);
96 COND(inst->src[1].abs, VIV_ISA_WORD_2_SRC1_ABS) |
104 COND(inst->src[2].abs, VIV_ISA_WORD_3_SRC2_ABS) |
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/etnaviv/
H A Detnaviv_asm.c88 COND(inst->src[0].abs, VIV_ISA_WORD_1_SRC0_ABS);
96 COND(inst->src[1].abs, VIV_ISA_WORD_2_SRC1_ABS) |
104 COND(inst->src[2].abs, VIV_ISA_WORD_3_SRC2_ABS) |
/xsrc/external/mit/MesaLib/dist/src/mesa/state_tracker/
H A Dst_glsl_to_tgsi_private.cpp72 this->abs = 0;
92 this->abs = 0;
110 this->abs = 0;
127 this->abs = 0;
154 this->abs = reg.abs;
170 this->abs = 0;
184 reg.abs = 1;
200 lhs.abs != rhs.abs ||
[all...]
/xsrc/external/mit/MesaLib/dist/src/asahi/compiler/
H A Dagx_optimizer.c84 if (to.abs)
87 from.abs |= to.abs;
146 if (use->src[0].neg || use->src[0].abs) return false;

Completed in 12 milliseconds

1234567891011>>