Searched refs:ipart (Results 1 - 5 of 5) sorted by relevance

/xsrc/external/mit/MesaLib.old/dist/src/util/
H A Du_math.h106 * Let ipart = int(x)
107 * Let fpart = x - ipart;
108 * So, exp2(x) = exp2(ipart) * exp2(fpart)
109 * Compute exp2(ipart) with i << ipart
115 int32_t ipart; local in function:util_fast_exp2
125 ipart = (int32_t) x;
126 fpart = x - (float) ipart;
129 * epart.f = (float) (1 << ipart)
130 * but faster and without integer overflow for ipart > 3
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/gallium/auxiliary/gallivm/
H A Dlp_bld_arit.c2648 LLVMValueRef ipart; local in function:lp_build_ifloor_fract
2658 ipart = lp_build_floor(bld, a);
2659 *out_fpart = LLVMBuildFSub(builder, a, ipart, "fpart");
2660 *out_ipart = LLVMBuildFPToSI(builder, ipart, bld->int_vec_type, "ipart");
2668 ipart = LLVMBuildSIToFP(builder, *out_ipart, bld->vec_type, "ipart");
2669 *out_fpart = LLVMBuildFSub(builder, a, ipart, "fpart");
3334 LLVMValueRef ipart = NULL; local in function:lp_build_exp2
3358 /* ipart
3654 LLVMValueRef ipart; local in function:lp_build_fast_log2
3684 LLVMValueRef ipart; local in function:lp_build_ilog2
[all...]
H A Dlp_bld_sample.c634 /* ipart = ifloor(log2(rho)) */
637 /* fpart = rho / 2**ipart */
667 LLVMValueRef ipart; local in function:lp_build_ilog2_sqrt
675 /* ipart = log2(x) + 0.5 = 0.5*(log2(x^2) + 1.0) */
676 ipart = lp_build_extract_exponent(bld, x, 1);
677 ipart = LLVMBuildAShr(builder, ipart, one, "");
679 return ipart;
/xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/gallivm/
H A Dlp_bld_arit.c2537 LLVMValueRef ipart; local in function:lp_build_ifloor_fract
2547 ipart = lp_build_floor(bld, a);
2548 *out_fpart = LLVMBuildFSub(builder, a, ipart, "fpart");
2549 *out_ipart = LLVMBuildFPToSI(builder, ipart, bld->int_vec_type, "ipart");
2557 ipart = LLVMBuildSIToFP(builder, *out_ipart, bld->vec_type, "ipart");
2558 *out_fpart = LLVMBuildFSub(builder, a, ipart, "fpart");
3249 LLVMValueRef ipart = NULL; local in function:lp_build_exp2
3280 /* ipart
3585 LLVMValueRef ipart; local in function:lp_build_fast_log2
3615 LLVMValueRef ipart; local in function:lp_build_ilog2
[all...]
H A Dlp_bld_sample.c759 /* ipart = ifloor(log2(rho)) */
762 /* fpart = rho / 2**ipart */
792 LLVMValueRef ipart; local in function:lp_build_ilog2_sqrt
800 /* ipart = log2(x) + 0.5 = 0.5*(log2(x^2) + 1.0) */
801 ipart = lp_build_extract_exponent(bld, x, 1);
802 ipart = LLVMBuildAShr(builder, ipart, one, "");
804 return ipart;

Completed in 25 milliseconds