Home
last modified time | relevance | path

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

/system/core/libpixelflinger/include/private/pixelflinger/
Dggl_context.h93 #define TRI_HALF (1 << (TRI_FRACTION_BITS-1)) macro
98 #define TRI_ROUND(x) (((x) + TRI_HALF ) & ~(TRI_ONE-1))
103 #define TRI_SNAP_NEXT_HALF(x) (TRI_CEIL((x)+TRI_HALF) - TRI_HALF)
104 #define TRI_SNAP_PREV_HALF(x) (TRI_CEIL((x)-TRI_HALF) - TRI_HALF)
/system/core/libpixelflinger/
Dtrap.cpp159 halfSize = TRI_HALF; in pointx()
162 if (halfSize & TRI_HALF) { // size odd in pointx()
163 xc = TRI_FLOOR(xc) + TRI_HALF; in pointx()
164 yc = TRI_FLOOR(yc) + TRI_HALF; in pointx()
214 GGLcoord xstart = TRI_FROM_INT(l) - v[0] + TRI_HALF; in aa_nice_pointx()
215 GGLcoord ystart = TRI_FROM_INT(t) - v[1] + TRI_HALF; in aa_nice_pointx()
279 GGLcoord xstart = TRI_FROM_INT(l) - v[0] + TRI_HALF; in aa_pointx()
280 GGLcoord ystart = TRI_FROM_INT(t) - v[1] + TRI_HALF; in aa_pointx()
364 halfWidth = TRI_HALF; in linex()
552 const int32_t my = (miny << TRI_FRACTION_BITS) + TRI_HALF; in trianglex_small()
[all …]