Searched refs:FloatToFixed (Results 1 – 8 of 8) sorted by relevance
15 #undef FloatToFixed38 static ConvolutionFixed FloatToFixed(float f) { in FloatToFixed() function
183 int curFixed = SkConvolutionFilter1D::FloatToFixed(filterValues[fixedI] * invFilterSum); in computeFilters()194 int leftovers = SkConvolutionFilter1D::FloatToFixed(1) - fixedSum; in computeFilters()
417 #define FloatToFixed(X) (IROUND((X) * FIXED_SCALE)) macro425 #define PosFloatToFixed(X) FloatToFixed(X)426 #define SignedFloatToFixed(X) FloatToFixed(X)
564 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); \
173 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()
248 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()
96 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()
71 span->z = FloatToFixed(ctx->Current.RasterPos[2] * depthMax + 0.5F); in _swrast_span_default_attribs()