Lines Matching defs:bits
752 /* Both operands must fit in 31 bits and the divisor must not be 1. */
1132 * the instruction performs "addr + offset" in 64 bits.
1694 unsigned bits = LLVMGetIntTypeWidth(LLVMTypeOf(loads[chan]));
1695 scale = LLVMConstReal(ctx->f32, 1.0 / (((uint64_t)1 << bits) - 1));
1697 unsigned bits = LLVMGetIntTypeWidth(LLVMTypeOf(loads[chan]));
1698 scale = LLVMConstReal(ctx->f32, 1.0 / (((uint64_t)1 << (bits - 1)) - 1));
2391 LLVMValueRef ac_build_cvt_pk_i16(struct ac_llvm_context *ctx, LLVMValueRef args[2], unsigned bits,
2394 assert(bits == 8 || bits == 10 || bits == 16);
2396 LLVMValueRef max_rgb = LLVMConstInt(ctx->i32, bits == 8 ? 127 : bits == 10 ? 511 : 32767, 0);
2397 LLVMValueRef min_rgb = LLVMConstInt(ctx->i32, bits == 8 ? -128 : bits == 10 ? -512 : -32768, 0);
2398 LLVMValueRef max_alpha = bits != 10 ? max_rgb : ctx->i32_1;
2399 LLVMValueRef min_alpha = bits != 10 ? min_rgb : LLVMConstInt(ctx->i32, -2, 0);
2402 if (bits != 16) {
2416 LLVMValueRef ac_build_cvt_pk_u16(struct ac_llvm_context *ctx, LLVMValueRef args[2], unsigned bits,
2419 assert(bits == 8 || bits == 10 || bits == 16);
2421 LLVMValueRef max_rgb = LLVMConstInt(ctx->i32, bits == 8 ? 255 : bits == 10 ? 1023 : 65535, 0);
2422 LLVMValueRef max_alpha = bits != 10 ? max_rgb : LLVMConstInt(ctx->i32, 3, 0);
2425 if (bits != 16) {
3164 unsigned bits = LLVMGetIntTypeWidth(LLVMTypeOf(src));
3167 if (bits > 32) {
3168 assert(bits % 32 == 0);
3169 LLVMTypeRef vec_type = LLVMVectorType(ctx->i32, bits / 32);
3172 for (unsigned i = 0; i < bits / 32; i++) {
3309 unsigned bits = LLVMGetIntTypeWidth(LLVMTypeOf(src));
3311 if (bits > 32) {
3312 assert(bits % 32 == 0);
3313 LLVMTypeRef vec_type = LLVMVectorType(ctx->i32, bits / 32);
3317 for (unsigned i = 0; i < bits / 32; i++) {
3360 unsigned bits = LLVMGetIntTypeWidth(LLVMTypeOf(src));
3362 if (bits > 32) {
3363 assert(bits % 32 == 0);
3364 LLVMTypeRef vec_type = LLVMVectorType(ctx->i32, bits / 32);
3367 for (unsigned i = 0; i < bits / 32; i++) {
3404 unsigned bits = LLVMGetIntTypeWidth(LLVMTypeOf(src));
3406 if (bits > 32) {
3407 assert(bits % 32 == 0);
3408 LLVMTypeRef vec_type = LLVMVectorType(ctx->i32, bits / 32);
3411 for (unsigned i = 0; i < bits / 32; i++) {
4380 * - bits 0..10: vertices in group
4381 * - bits 12..22: primitives in group
4436 * extracted = v_and_b32 gs_invocation_id, 0x700 ; get edge flags at bits 8, 9, 10
4437 * shifted = v_mul_u32_u24 extracted, 0x80402u ; shift the bits: 8->9, 9->19, 10->29
4450 * - bits 0..8: index 0
4452 * - bits 10..18: index 1
4454 * - bits 20..28: index 2