Lines Matching defs:bits
465 * 11 exponent bits;
466 * 52 mantissa bits.
495 ir_variable *bits =
496 new(ir) ir_variable(glsl_type::uint_type, "bits", ir_var_temporary);
502 i.insert_before(bits);
509 i.insert_before(assign(bits, swizzle_y(unpacked)));
510 i.insert_before(assign(bits, bit_and(bits, sign_mantissa_mask)));
511 i.insert_before(assign(bits, bit_or(bits,
515 i.insert_before(assign(unpacked, bits, WRITEMASK_Y));
539 * 11 exponent bits;
540 * 52 mantissa bits.
871 ir_variable *bits =
872 new(ir) ir_variable(ir->operands[0]->type, "bits", ir_var_temporary);
874 base_ir->insert_before(bits);
875 base_ir->insert_before(assign(bits, ir->operands[2]));
886 * we'd get a mask of 0 when bits is 32. Special case it.
888 * mask = bits == 32 ? 0xffffffff : (1u << bits) - 1u;
890 ir_expression *mask = csel(equal(bits, c32),
892 sub(lshift(c1, bits), c1->clone(ir, NULL)));
896 * If bits is zero, the result will be zero.
916 /* temp = 32 - bits; */
918 base_ir->insert_before(assign(temp, sub(c32, bits)));
926 * If bits is zero, the result will be zero.
932 * (bits == 0) ? 0 : e;
936 ir->operands[0] = equal(c0, bits);
952 ir_variable *bits =
953 new(ir) ir_variable(ir->operands[0]->type, "bits", ir_var_temporary);
972 base_ir->insert_before(bits);
973 base_ir->insert_before(assign(bits, ir->operands[3]));
976 * we'd get a mask of 0 when bits is 32. Special case it.
978 * mask = (bits == 32 ? 0xffffffff : (1u << bits) - 1u) << offset;
982 * The result will be undefined if offset or bits is negative, or if the
983 * sum of offset and bits is greater than the number of bits used to
990 * final_result = bits == 32 ? insert : ... ;
994 base_ir->insert_before(assign(mask, csel(equal(bits, c32),
996 lshift(sub(lshift(c1, bits),
1050 /* Swap odd and even bits.
1237 /* The int-to-float conversion is lossless because bits are conditionally
1238 * masked off the bottom of temp to ensure the value has at most 24 bits of
1416 * negation. This is *not* the same as just negating the high 32-bits.
1417 * Consider -3 * 2. The high 32-bits is 0, but the desired result is