Home
last modified time | relevance | path

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

/system/core/include/private/pixelflinger/
Dggl_fixed.h28 const GGLfixed FIXED_BITS = 16; variable
30 const GGLfixed FIXED_ONE = 1L<<FIXED_BITS;
31 const GGLfixed FIXED_HALF = 1L<<(FIXED_BITS-1);
46 return i<<FIXED_BITS; in gglIntToFixed()
49 return (f + FIXED_HALF)>>FIXED_BITS; in gglFixedToIntRound()
52 return f>>FIXED_BITS; in gglFixedToIntFloor()
55 return (f + ((1<<FIXED_BITS) - 1))>>FIXED_BITS; in gglFixedToIntCeil()
59 return v & ((1<<FIXED_BITS)-1); in gglFracx()
62 return gglFixedToIntFloor(v)<<FIXED_BITS; in gglFloorx()
65 return gglFixedToIntCeil(v)<<FIXED_BITS; in gglCeilx()
[all …]
/system/core/libpixelflinger/
Dtrap.cpp882 const int shift = FIXED_BITS - TRI_FRACTION_BITS; in aa_edge_setup()
899 >> (TRI_FRACTION_BITS + TRI_ITERATORS_BITS - FIXED_BITS); in aa_edge_setup()
1002 const int32_t shift = TRI_FRACTION_BITS + TRI_ITERATORS_BITS - FIXED_BITS; in aapolyx()
1072 FIXED_BITS + TRI_FRACTION_BITS - 15); in aapolyx()
1112 SET_COVERAGE(coverage, 0x7FFF, ((r_max - l_max_i)>>FIXED_BITS)+1); in aapolyx()
1125 FIXED_BITS + TRI_FRACTION_BITS - 15); in aapolyx()