Home
last modified time | relevance | path

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

/external/mesa3d/src/mesa/swrast/
Ds_blend.c60 #define DIV255(X) (divtemp = (X), ((divtemp << 8) + divtemp + 256) >> 16) macro
144 const GLint r = DIV255((rgba[i][RCOMP] - dest[i][RCOMP]) * t) + dest[i][RCOMP]; in blend_transparency_ubyte()
145 const GLint g = DIV255((rgba[i][GCOMP] - dest[i][GCOMP]) * t) + dest[i][GCOMP]; in blend_transparency_ubyte()
146 const GLint b = DIV255((rgba[i][BCOMP] - dest[i][BCOMP]) * t) + dest[i][BCOMP]; in blend_transparency_ubyte()
147 const GLint a = DIV255((rgba[i][ACOMP] - dest[i][ACOMP]) * t) + dest[i][ACOMP]; in blend_transparency_ubyte()
428 rgba[i][RCOMP] = DIV255(rgba[i][RCOMP] * dest[i][RCOMP]); in blend_modulate()
429 rgba[i][GCOMP] = DIV255(rgba[i][GCOMP] * dest[i][GCOMP]); in blend_modulate()
430 rgba[i][BCOMP] = DIV255(rgba[i][BCOMP] * dest[i][BCOMP]); in blend_modulate()
431 rgba[i][ACOMP] = DIV255(rgba[i][ACOMP] * dest[i][ACOMP]); in blend_modulate()