Home
last modified time | relevance | path

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

/system/core/include/private/pixelflinger/
Dggl_fixed.h28 const GGLfixed FIXED_BITS = 16;
29 const GGLfixed FIXED_EPSILON = 1;
30 const GGLfixed FIXED_ONE = 1L<<FIXED_BITS;
31 const GGLfixed FIXED_HALF = 1L<<(FIXED_BITS-1);
32 const GGLfixed FIXED_MIN = 0x80000000L;
33 const GGLfixed FIXED_MAX = 0x7FFFFFFFL;
35 inline GGLfixed gglIntToFixed(GGLfixed i) ALWAYS_INLINE ;
36 inline GGLfixed gglFixedToIntRound(GGLfixed f) ALWAYS_INLINE ;
37 inline GGLfixed gglFixedToIntFloor(GGLfixed f) ALWAYS_INLINE ;
38 inline GGLfixed gglFixedToIntCeil(GGLfixed f) ALWAYS_INLINE ;
[all …]
Dggl_context.h94 inline GGLcolor gglFixedToIteratedColor(GGLfixed c) { in gglFixedToIteratedColor()
369 GGLfixed ydsdy;
370 GGLfixed dsdx;
371 GGLfixed dsdy;
373 GGLfixed ydtdy;
374 GGLfixed dtdx;
375 GGLfixed dtdy;
379 GGLfixed ydvdy;
380 GGLfixed dvdx;
381 GGLfixed dvdy;
[all …]
/system/core/libpixelflinger/
Dfixed.cpp60 int32_t gglRecipQ(GGLfixed x, int q) in gglRecipQ()
72 GGLfixed gglFastDivx(GGLfixed n, GGLfixed d) in gglFastDivx()
83 static const GGLfixed ggl_sqrt_reciproc_approx_tab[8] = {
88 GGLfixed gglSqrtRecipx(GGLfixed x) in gglSqrtRecipx()
92 const GGLfixed a = x; in gglSqrtRecipx()
107 GGLfixed gglSqrtx(GGLfixed a) in gglSqrtx()
110 GGLfixed r = 0; in gglSqrtx()
111 GGLfixed bit = 0x800000; in gglSqrtx()
114 GGLfixed temp = bit + (r<<1); in gglSqrtx()
128 static const GGLfixed ggl_log_approx_tab[] = {
[all …]
Dtrap.cpp391 const GGLfixed norm = gglMulx(width, gglSqrtRecipx(nx*nx+ny*ny), 4); in aa_linex()
670 const GGLfixed* top = p1; in edge_setup()
671 const GGLfixed* bot = p2; in edge_setup()
825 GGLfixed x; // edge position in 12.16 coordinates
826 GGLfixed x_incr; // on each y step, increment x by that amount
827 GGLfixed y_incr; // on each x step, increment y by that amount
860 const GGLfixed* top = p1; in aa_edge_setup()
861 const GGLfixed* bot = p2; in aa_edge_setup()
990 GGLfixed l = left->x; in aapolyx()
991 GGLfixed r = right->x; in aapolyx()
[all …]
Draster.cpp27 static void ggl_rasterPos2x(void* con, GGLfixed x, GGLfixed y);
40 void ggl_rasterPos2x(void* con, GGLfixed x, GGLfixed y) in ggl_rasterPos2x()
Dclear.cpp88 static inline GGLfixed fixedToZ(GGLfixed z) { in fixedToZ()
89 return GGLfixed(((int64_t(z) << 16) - z) >> 16); in fixedToZ()
Dscanline.cpp574 static GGLfixed wrapping(int32_t coord, uint32_t size, int tx_wrap) in wrapping()
576 GGLfixed d; in wrapping()
580 const GGLfixed clamp_min = FIXED_HALF; in wrapping()
581 const GGLfixed clamp_max = (size << 16) - FIXED_HALF; in wrapping()
586 const GGLfixed clamp_min = 0; in wrapping()
587 const GGLfixed clamp_max = (size << 16); in wrapping()
635 GGLfixed z = (xs * c->shade.dzdx) + ci.ydzdy; in scanline()
636 GGLfixed f = (xs * c->shade.dfdx) + ci.ydfdy; in scanline()
639 GGLfixed s, t; in scanline()
868 GGLfixed fc = (c->state.fog.color[i] * 0x10000) / 0xFF; in scanline()
[all …]
Dpixelflinger.cpp260 static void ggl_wGrad3xv(void* con, const GGLfixed* grad) in ggl_wGrad3xv()
270 static void ggl_fogGrad3xv(void* con, const GGLfixed* grad) in ggl_fogGrad3xv()
358 GGLenum pname, const GGLfixed* params) in ggl_texEnvxv()
463 static void ggl_texCoord2x(void* con, GGLfixed s, GGLfixed t) in ggl_texCoord2x()
/system/core/include/pixelflinger/
Dpixelflinger.h31 typedef int32_t GGLfixed; // x typedef
239 void (*wGrad3xv)(void* c, const GGLfixed* grad);
242 void (*fogGrad3xv)(void* c, const GGLfixed* grad);
256 GGLenum pname, const GGLfixed* params);
265 void (*texCoord2x)(void* c, GGLfixed s, GGLfixed t);
304 void (*rasterPos2x)(void* c, GGLfixed x, GGLfixed y);