Home | History | Annotate | Download | only in gallivm

Lines Matching refs:isOdd

205    LLVMValueRef fract, flr, isOdd;
209 /* isOdd = flr & 1 */
210 isOdd = LLVMBuildAnd(bld->gallivm->builder, flr, int_coord_bld->one, "");
212 /* make coord positive or negative depending on isOdd */
213 coord = lp_build_set_sign(coord_bld, fract, isOdd);
215 /* convert isOdd to float */
216 isOdd = lp_build_int_to_float(coord_bld, isOdd);
218 /* add isOdd to coord */
219 coord = lp_build_add(coord_bld, coord, isOdd);