Home
last modified time | relevance | path

Searched refs:float2fixed_rounded (Results 1 – 4 of 4) sorted by relevance

/plan9/sys/src/cmd/gs/src/
H A Dgxfixed.h108 #define float2fixed_rounded(f) ((fixed)floor((f)*(float)fixed_scale + 0.5)) macro
H A Dgspath.c140 ppt->x = float2fixed_rounded(x); in clamp_point_aux()
141 ppt->y = float2fixed_rounded(y); in clamp_point_aux()
H A Dgsmatrix.c462 ppt->x = float2fixed_rounded(fpt.x); in gs_point_transform2fixed_rounding()
463 ppt->y = float2fixed_rounded(fpt.y); in gs_point_transform2fixed_rounding()
H A Dgsptype1.c272 gx_translate_to_fixed(saved, float2fixed_rounded(mat.tx - bbox.p.x), in gs_pattern1_make_pattern()
273 float2fixed_rounded(mat.ty - bbox.p.y)); in gs_pattern1_make_pattern()