Lines Matching defs:temp

624    ir_variable *temp = new(ir) ir_variable(ir->operands[0]->type->get_base_type(), "dot_res",
626 this->base_ir->insert_before(temp);
632 assig = assign(temp, mul(swizzle(ir->operands[0]->clone(ir, NULL), i, 1),
635 assig = assign(temp, fma(swizzle(ir->operands[0]->clone(ir, NULL), i, 1),
637 temp));
646 ir->operands[2] = new(ir) ir_dereference_variable(temp);
682 * temp = sub(x, frtemp);
683 * result = temp + ((frtemp != 0.0) ? 1.0 : 0.0);
720 * temp = x + 0.5;
721 * frtemp = frac(temp);
722 * t2 = sub(temp, frtemp);
732 ir_variable *temp = new(ir) ir_variable(ir->operands[0]->type, "temp",
740 i.insert_before(temp);
741 i.insert_before(assign(temp, add(ir->operands[0], p5)));
744 i.insert_before(assign(frtemp, fract(temp)));
747 i.insert_before(assign(t2, sub(temp, frtemp)));
767 * temp = sub(x, frtemp);
768 * result = x >= 0 ? temp : temp + (frtemp == 0.0) ? 0 : 1;
777 ir_variable *temp = new(ir) ir_variable(ir->operands[0]->type, "temp",
782 i.insert_before(temp);
783 i.insert_before(assign(temp, sub(arg->clone(ir, NULL), frtemp)));
788 ir->operands[1] = new (ir) ir_dereference_variable(temp);
789 ir->operands[2] = add(temp,
801 * temp = x > 0.0 ? 1.0 : 0.0;
802 * result = x < 0.0 ? -1.0 : temp;
829 ir_variable *temp = new(ir) ir_variable(glsl_type::uvec(elements), "temp",
840 base_ir->insert_before(temp);
843 base_ir->insert_before(assign(temp, ir->operands[0]));
846 base_ir->insert_before(assign(temp, i2u(ir->operands[0])));
849 /* temp = temp - ((temp >> 1) & 0x55555555u); */
850 base_ir->insert_before(assign(temp, sub(temp, bit_and(rshift(temp, c1),
853 /* temp = (temp & 0x33333333u) + ((temp >> 2) & 0x33333333u); */
854 base_ir->insert_before(assign(temp, add(bit_and(temp, c33333333),
855 bit_and(rshift(temp, c2),
858 /* int(((temp + (temp >> 4) & 0xF0F0F0Fu) * 0x1010101u) >> 24); */
861 ir->operands[0] = rshift(mul(bit_and(add(temp, rshift(temp, c4)), c0F0F0F0F),
913 ir_variable *temp =
914 new(ir) ir_variable(ir->operands[0]->type, "temp", ir_var_temporary);
916 /* temp = 32 - bits; */
917 base_ir->insert_before(temp);
918 base_ir->insert_before(assign(temp, sub(c32, bits)));
920 /* expr = value << (temp - offset)) >> temp; */
922 rshift(lshift(ir->operands[0], sub(temp, ir->operands[1])), temp);
1036 ir_variable *temp =
1038 "temp", ir_var_temporary);
1041 i.insert_before(temp);
1044 i.insert_before(assign(temp, ir->operands[0]));
1047 i.insert_before(assign(temp, i2u(ir->operands[0])));
1052 * temp = ((temp >> 1) & 0x55555555u) | ((temp & 0x55555555u) << 1);
1054 i.insert_before(assign(temp, bit_or(bit_and(rshift(temp, c1), c55555555),
1055 lshift(bit_and(temp, c55555555->clone(ir, NULL)),
1059 * temp = ((temp >> 2) & 0x33333333u) | ((temp & 0x33333333u) << 2);
1061 i.insert_before(assign(temp, bit_or(bit_and(rshift(temp, c2), c33333333),
1062 lshift(bit_and(temp, c33333333->clone(ir, NULL)),
1067 * temp = ((temp >> 4) & 0x0F0F0F0Fu) | ((temp & 0x0F0F0F0Fu) << 4);
1069 i.insert_before(assign(temp, bit_or(bit_and(rshift(temp, c4), c0F0F0F0F),
1070 lshift(bit_and(temp, c0F0F0F0F->clone(ir, NULL)),
1077 * temp = ((temp >> 8) & 0x00FF00FFu) | ((temp & 0x00FF00FFu) << 8);
1078 * temp = ( temp >> 16 ) | ( temp << 16);
1080 i.insert_before(assign(temp, bit_or(bit_and(rshift(temp, c8), c00FF00FF),
1081 lshift(bit_and(temp, c00FF00FF->clone(ir, NULL)),
1087 ir->operands[0] = rshift(temp, c16);
1088 ir->operands[1] = lshift(temp, c16->clone(ir, NULL));
1092 ir->operands[0] = bit_or(rshift(temp, c16),
1093 lshift(temp, c16->clone(ir, NULL)));
1111 ir_variable *temp =
1112 new(ir) ir_variable(glsl_type::ivec(elements), "temp", ir_var_temporary);
1122 i.insert_before(temp);
1125 i.insert_before(assign(temp, ir->operands[0]));
1128 i.insert_before(assign(temp, u2i(ir->operands[0])));
1140 i.insert_before(assign(lsb_only, i2u(bit_and(temp, neg(temp)))));
1160 /* Use lsb_only in the comparison instead of temp so that the & (far above)
1194 ir_variable *temp =
1195 new(ir) ir_variable(glsl_type::uvec(elements), "temp", ir_var_temporary);
1203 i.insert_before(temp);
1206 i.insert_before(assign(temp, ir->operands[0]));
1232 i.insert_before(assign(temp, i2u(expr(ir_binop_bit_xor,
1238 * masked off the bottom of temp to ensure the value has at most 24 bits of
1242 * float as_float = float(temp > 255 ? temp & ~255 : temp);
1245 i.insert_before(assign(as_float, u2f(csel(greater(temp, c000000FF),
1246 bit_and(temp, cFFFFFF00),
1247 temp))));
1264 /* Use msb in the comparison instead of temp so that the subtract can
1270 * be negative. It will only be negative (-0x7f, in fact) if temp is 0.