Home
last modified time | relevance | path

Searched refs:floatsEqual (Results 1 – 9 of 9) sorted by relevance

/external/mesa3d/src/gallium/state_trackers/vega/
Dstroker.c405 if (floatsEqual(theta_normalized, 360.f)) in line_angle()
442 if (floatsEqual(delta, 360.f)) in line_angle_to()
490 dx_zero = floatsEqual(line_dx(l1) + 1, 1); in line_intersect()
491 ldx_zero = floatsEqual(line_dx(l2) + 1, 1); in line_intersect()
642 if (floatsEqual(stroker->back1_x, next_line[0]) && in create_joins()
643 floatsEqual(stroker->back1_y, next_line[1])) in create_joins()
682 (angle > 90 && !floatsEqual(angle, 90.f))) { in create_joins()
729 (angle > 90 && !floatsEqual(angle, 90.f))) { in create_joins()
763 if (floatsEqual(coords[0], data[0]) && in stroker_add_segment()
764 floatsEqual(coords[1], data[1])) in stroker_add_segment()
[all …]
Dmatrix.h38 #define floatsEqual(x, y) (fabs(x - y) <= 0.00001f * MIN2(fabs(x), fabs(y))) macro
39 #define floatIsZero(x) (floatsEqual((x) + 1, 1))
109 return floatsEqual(matrix->m[0], 1) && floatIsZero(matrix->m[1]) && in matrix_is_identity()
111 floatIsZero(matrix->m[3]) && floatsEqual(matrix->m[4], 1) && in matrix_is_identity()
120 && floatsEqual(matrix->m[8], 1); in matrix_is_affine()
217 if (floatsEqual(angle, 90) || floatsEqual(angle, -270)) in matrix_rotate()
219 else if (floatsEqual(angle, 270) || floatsEqual(angle, -90)) in matrix_rotate()
221 else if (floatsEqual(angle, 180)) in matrix_rotate()
397 return floatsEqual(l[0], l[2]) && floatsEqual(l[1], l[3]); in null_line()
Dpath.c261 if (!floatsEqual(p->scale, 1.f) || !floatsEqual(p->bias, 0.f)) { in path_append_data()
294 if (!floatsEqual(sx, ox) || in close_polygon()
295 !floatsEqual(sy, oy)) { in close_polygon()
1250 floatsEqual(p->stroked.stroke_width, vg_state->stroke.line_width.f) && in path_create_stroke()
1251 floatsEqual(p->stroked.miter_limit, vg_state->stroke.miter_limit.f) && in path_create_stroke()
1347 if (floatsEqual(x1, ox) && floatsEqual(y1, oy) && in path_create_stroke()
1348 floatsEqual(x1, x2) && floatsEqual(y1, y2) && in path_create_stroke()
1349 floatsEqual(x2, x3) && floatsEqual(y2, y3)) { in path_create_stroke()
1352 } else if (floatsEqual(x3, ox) && floatsEqual(y3, oy)) { in path_create_stroke()
1390 if (floatsEqual(x1, ox) && floatsEqual(y1, oy) && in path_create_stroke()
[all …]
Dbezier.c304 return floatsEqual(dx12 * dy13, dx13 * dy12); in is_bezier_line()
309 return (floatsEqual(dx12 * dy13, dx13 * dy12) && in is_bezier_line()
310 floatsEqual(dx12 * dy14, dx14 * dy12)); in is_bezier_line()
377 if (floatsEqual(points[0][0], points[np-1][0]) && in shift()
378 floatsEqual(points[0][1], points[np-1][1])) in shift()
420 if (floatsEqual(r + 1, 1)) { in shift()
455 if (floatsEqual(dist + 1, 1.f)) in make_circle()
463 if (floatsEqual(dist + 1, 1.f)) in make_circle()
651 if (at_length > len || floatsEqual(at_length, len)) in bezier_t_at_length()
Dpolygon.c241 return floatsEqual(start[0], end[0]) && floatsEqual(start[1], end[1]); in polygon_is_closed()
Dpaint.c410 if (!floatsEqual(last_coord, coord) && coord < last_coord) { in paint_set_ramp_stops()
689 degen = (floatsEqual(vals[0], vals[2]) && in paint_is_degenerate()
690 floatsEqual(vals[1], vals[3])); in paint_is_degenerate()
756 floatsEqual(paint->solid.color[3], 1.0f)); in paint_is_opaque()
Drenderer.c1490 assert(floatsEqual(z, 0.0f)); in renderer_copy_surface()
/external/mesa3d/src/gallium/state_trackers/xorg/
Dxorg_renderer.c17 #define floatsEqual(x, y) (fabs(x - y) <= 0.00001f * MIN2(fabs(x), fabs(y))) macro
18 #define floatIsZero(x) (floatsEqual((x) + 1, 1))
25 && floatsEqual(matrix[8], 1); in is_affine()
/external/mesa3d/src/gallium/state_trackers/xa/
Dxa_renderer.c37 #define floatsEqual(x, y) (fabs(x - y) <= 0.00001f * MIN2(fabs(x), fabs(y))) macro
38 #define floatIsZero(x) (floatsEqual((x) + 1, 1))
52 && floatsEqual(matrix[8], 1); in is_affine()