Home
last modified time | relevance | path

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

/external/skia/src/core/
DSkConvolver.h15 #undef FloatToFixed
38 static ConvolutionFixed FloatToFixed(float f) { in FloatToFixed() function
DSkBitmapScaler.cpp183 int curFixed = SkConvolutionFilter1D::FloatToFixed(filterValues[fixedI] * invFilterSum); in computeFilters()
194 int leftovers = SkConvolutionFilter1D::FloatToFixed(1) - fixedSum; in computeFilters()
/external/mesa3d/src/mesa/swrast/
Ds_context.h417 #define FloatToFixed(X) (IROUND((X) * FIXED_SCALE)) macro
425 #define PosFloatToFixed(X) FloatToFixed(X)
426 #define SignedFloatToFixed(X) FloatToFixed(X)
Ds_triangle.c564 info.er = FloatToFixed(unit->EnvColor[RCOMP] * CHAN_MAXF); \
565 info.eg = FloatToFixed(unit->EnvColor[GCOMP] * CHAN_MAXF); \
566 info.eb = FloatToFixed(unit->EnvColor[BCOMP] * CHAN_MAXF); \
567 info.ea = FloatToFixed(unit->EnvColor[ACOMP] * CHAN_MAXF); \
644 const GLfixed s_fix = FloatToFixed(s_tmp) - FIXED_HALF; \ in fast_persp_span()
645 const GLfixed t_fix = FloatToFixed(t_tmp) - FIXED_HALF; \ in fast_persp_span()
830 info.er = FloatToFixed(unit->EnvColor[RCOMP] * CHAN_MAXF); \
831 info.eg = FloatToFixed(unit->EnvColor[GCOMP] * CHAN_MAXF); \
832 info.eb = FloatToFixed(unit->EnvColor[BCOMP] * CHAN_MAXF); \
833 info.ea = FloatToFixed(unit->EnvColor[ACOMP] * CHAN_MAXF); \
Ds_tritemp.h173 const GLfixed fy0 = FloatToFixed(v0->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) & snapMask; in NAME()
174 const GLfixed fy1 = FloatToFixed(v1->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) & snapMask; in NAME()
175 const GLfixed fy2 = FloatToFixed(v2->attrib[FRAG_ATTRIB_WPOS][1] - 0.5F) & snapMask; in NAME()
215 vMin_fx = FloatToFixed(vMin->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) & snapMask; in NAME()
216 vMid_fx = FloatToFixed(vMid->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) & snapMask; in NAME()
217 vMax_fx = FloatToFixed(vMax->attrib[FRAG_ATTRIB_WPOS][0] + 0.5F) & snapMask; in NAME()
Ds_linetemp.h248 span.z = FloatToFixed(vert0->attrib[FRAG_ATTRIB_WPOS][2]) + FIXED_HALF; in NAME()
249 span.zStep = FloatToFixed( vert1->attrib[FRAG_ATTRIB_WPOS][2] in NAME()
Ds_points.c96 span.z = FloatToFixed(vert->attrib[FRAG_ATTRIB_WPOS][2] + 0.5F); in sprite_point()
253 span.z = FloatToFixed(vert->attrib[FRAG_ATTRIB_WPOS][2] + 0.5F); in smooth_point()
373 span.z = FloatToFixed(vert->attrib[FRAG_ATTRIB_WPOS][2] + 0.5F); in large_point()
Ds_span.c71 span->z = FloatToFixed(ctx->Current.RasterPos[2] * depthMax + 0.5F); in _swrast_span_default_attribs()