Home
last modified time | relevance | path

Searched refs:FloatToFixed (Results 1 – 7 of 7) sorted by relevance

/external/mesa3d/src/mesa/swrast/
Ds_context.h437 #define FloatToFixed(X) (lroundf((X) * FIXED_SCALE)) macro
445 #define PosFloatToFixed(X) FloatToFixed(X)
446 #define SignedFloatToFixed(X) FloatToFixed(X)
Ds_triangle.c565 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); \
Ds_tritemp.h179 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()
Ds_linetemp.h248 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()
Ds_points.c95 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()
Ds_span.c75 span->z = FloatToFixed(ctx->Current.RasterPos[2] * depthMax + 0.5F); in _swrast_span_default_attribs()
/external/llvm-project/llvm/unittests/ADT/
DAPFixedPointTest.cpp673 TEST(FixedPoint, FloatToFixed) { in TEST() argument