Move FbGen macro into pixman-combine.c
authorSøren Sandmann Pedersen <sandmann@redhat.com>
Sun, 21 Jun 2009 19:09:02 +0000 (15:09 -0400)
committerSøren Sandmann Pedersen <sandmann@redhat.com>
Sun, 21 Jun 2009 19:09:02 +0000 (15:09 -0400)
pixman/pixman-combine.c.template
pixman/pixman-combine.h.template

index 2f4d6a7..7d05ce8 100644 (file)
@@ -16,7 +16,6 @@
  * this difference will have two versions using the same convention.
  */
 
-
 /*
  * All of the composing functions
  */
@@ -343,6 +342,11 @@ fbCombineConjointInPart (comp1_t a, comp1_t b)
     return IntDiv(b,a);     /* b/a */
 }
 
+#define FbGen(x,y,i,ax,ay,t,u,v) ((t) = (IntMult(GetComp(y,i),ay,(u)) + \
+                                        IntMult(GetComp(x,i),ax,(v))), \
+                                        (comp4_t) ((comp1_t) ((t) |            \
+                                        (0 - ((t) >> G_SHIFT)))) << (i))
+
 static void
 fbCombineDisjointGeneralU (comp4_t *dest, const comp4_t *src, const comp4_t *mask, int width, comp1_t combine)
 {
index 6ecd301..f2e58a1 100644 (file)
 #define Add(x,y,i,t)   ((t) = GetComp(x,i) + GetComp(y,i),              \
                         (comp4_t) ((comp1_t) ((t) | (0 - ((t) >> G_SHIFT)))) << (i))
 
-#define FbGen(x,y,i,ax,ay,t,u,v) ((t) = (IntMult(GetComp(y,i),ay,(u)) + \
-                                        IntMult(GetComp(x,i),ax,(v))), \
-                                 (comp4_t) ((comp1_t) ((t) |           \
-                                                        (0 - ((t) >> G_SHIFT)))) << (i))
-
 /*
   The methods below use some tricks to be able to do two color
   components at the same time.