Searched refs:FloatToFixed (Results 1 – 7 of 7) sorted by relevance
437 #define FloatToFixed(X) (lroundf((X) * FIXED_SCALE)) macro445 #define PosFloatToFixed(X) FloatToFixed(X)446 #define SignedFloatToFixed(X) FloatToFixed(X)
565 info.er = FloatToFixed(unit->EnvColor[RCOMP] * CHAN_MAXF); \566 info.eg = FloatToFixed(unit->EnvColor[GCOMP] * CHAN_MAXF); \567 info.eb = FloatToFixed(unit->EnvColor[BCOMP] * CHAN_MAXF); \568 info.ea = FloatToFixed(unit->EnvColor[ACOMP] * CHAN_MAXF); \645 const GLfixed s_fix = FloatToFixed(s_tmp) - FIXED_HALF; \ in fast_persp_span()646 const GLfixed t_fix = FloatToFixed(t_tmp) - FIXED_HALF; \ in fast_persp_span()831 info.er = FloatToFixed(unit->EnvColor[RCOMP] * CHAN_MAXF); \832 info.eg = FloatToFixed(unit->EnvColor[GCOMP] * CHAN_MAXF); \833 info.eb = FloatToFixed(unit->EnvColor[BCOMP] * CHAN_MAXF); \834 info.ea = FloatToFixed(unit->EnvColor[ACOMP] * CHAN_MAXF); \
179 const GLfixed fy0 = FloatToFixed(v0->attrib[VARYING_SLOT_POS][1] - 0.5F) & snapMask; in NAME()180 const GLfixed fy1 = FloatToFixed(v1->attrib[VARYING_SLOT_POS][1] - 0.5F) & snapMask; in NAME()181 const GLfixed fy2 = FloatToFixed(v2->attrib[VARYING_SLOT_POS][1] - 0.5F) & snapMask; in NAME()221 vMin_fx = FloatToFixed(vMin->attrib[VARYING_SLOT_POS][0] + 0.5F) & snapMask; in NAME()222 vMid_fx = FloatToFixed(vMid->attrib[VARYING_SLOT_POS][0] + 0.5F) & snapMask; in NAME()223 vMax_fx = FloatToFixed(vMax->attrib[VARYING_SLOT_POS][0] + 0.5F) & snapMask; in NAME()
248 span.z = FloatToFixed(vert0->attrib[VARYING_SLOT_POS][2]) + FIXED_HALF; in NAME()249 span.zStep = FloatToFixed( vert1->attrib[VARYING_SLOT_POS][2] in NAME()
95 span.z = FloatToFixed(vert->attrib[VARYING_SLOT_POS][2] + 0.5F); in sprite_point()252 span.z = FloatToFixed(vert->attrib[VARYING_SLOT_POS][2] + 0.5F); in smooth_point()372 span.z = FloatToFixed(vert->attrib[VARYING_SLOT_POS][2] + 0.5F); in large_point()
75 span->z = FloatToFixed(ctx->Current.RasterPos[2] * depthMax + 0.5F); in _swrast_span_default_attribs()
673 TEST(FixedPoint, FloatToFixed) { in TEST() argument