Home | History | Annotate | Download | only in gallivm

Lines Matching refs:dst_type

43  *     src_type.width * src_type.length == dst_type.width * dst_type.length
47 * src_type.length * num_srcs == dst_type.length * num_dsts
277 struct lp_type dst_type,
281 LLVMTypeRef vec_type = lp_build_vec_type(gallivm, dst_type);
282 LLVMTypeRef int_vec_type = lp_build_int_vec_type(gallivm, dst_type);
292 assert(dst_type.floating);
294 mantissa = lp_mantissa(dst_type);
306 lp_build_const_vec(gallivm, dst_type, scale), "");
327 lp_build_const_int_vec(gallivm, dst_type, shift), "");
330 bias_ = lp_build_const_vec(gallivm, dst_type, bias);
339 res = LLVMBuildFMul(builder, res, lp_build_const_vec(gallivm, dst_type, scale), "");
355 struct lp_type dst_type,
366 assert(src_type.length * num_srcs == dst_type.length * num_dsts);
369 assert(dst_type.length <= LP_MAX_VECTOR_LENGTH);
390 dst_type.floating == 0 &&
391 dst_type.fixed == 0 &&
392 dst_type.sign == 0 &&
393 dst_type.norm == 1 &&
394 dst_type.width == 8 &&
395 dst_type.length == 16 &&
402 struct lp_type int16_type = dst_type;
403 struct lp_type int32_type = dst_type;
430 dst[i] = lp_build_pack2(gallivm, int16_type, dst_type, lo, hi);
445 dst_type.floating == 0 &&
446 dst_type.fixed == 0 &&
447 dst_type.sign == 0 &&
448 dst_type.norm == 1 &&
449 dst_type.width == 8 &&
450 dst_type.length == 16 &&
457 struct lp_type int16_type = dst_type;
458 struct lp_type int32_type = dst_type;
491 dst[i] = lp_build_pack2(gallivm, int16_type, dst_type, lo, hi);
510 if(memcmp(&src_type, &dst_type, sizeof src_type) != 0) {
513 double dst_min = lp_const_min(dst_type);
515 double dst_max = lp_const_max(dst_type);
543 if(dst_type.floating) {
547 if(!dst_type.fixed && !dst_type.sign && dst_type.norm) {
551 dst_type.width,
557 double dst_scale = lp_const_scale(dst_type);
571 if(dst_type.sign)
584 unsigned dst_shift = lp_const_shift(dst_type);
586 unsigned dst_offset = lp_const_offset(dst_type);
589 if (dst_offset > src_offset && src_type.width > dst_type.width) {
624 new_type.sign = dst_type.sign;
625 new_type.width = dst_type.width;
626 new_type.length = dst_type.length;
641 else if(!src_type.floating && dst_type.floating) {
646 dst_type,
661 if(dst_type.sign)
680 unsigned dst_shift = lp_const_shift(dst_type);
682 unsigned dst_offset = lp_const_offset(dst_type);
704 assert(lp_check_value(dst_type, dst[i]));
722 struct lp_type dst_type,
728 assert(src_type.length * num_srcs == dst_type.length * num_dsts);
741 dst_type.floating = FALSE;
742 dst_type.fixed = FALSE;
743 dst_type.sign = TRUE;
744 dst_type.norm = FALSE;
750 lp_build_resize(gallivm, src_type, dst_type, src, num_srcs, dst, num_dsts);