Move SCREEN_SHIFT_LEFT/RIGHT to pixman-private.h
authorAlexander Larsson <alexl@redhat.com>
Mon, 15 Feb 2010 08:39:59 +0000 (09:39 +0100)
committerAlexander Larsson <alexl@redhat.com>
Fri, 19 Feb 2010 10:25:41 +0000 (11:25 +0100)
This is needed for later use in other code.

pixman/pixman-edge-imp.h
pixman/pixman-private.h

index a30f821..74720d1 100644 (file)
@@ -79,14 +79,6 @@ RASTERIZE_EDGES (pixman_image_t  *image,
 #if N_BITS == 1
            {
 
-#ifdef WORDS_BIGENDIAN
-#   define SCREEN_SHIFT_LEFT(x,n)      ((x) << (n))
-#   define SCREEN_SHIFT_RIGHT(x,n)     ((x) >> (n))
-#else
-#   define SCREEN_SHIFT_LEFT(x,n)      ((x) >> (n))
-#   define SCREEN_SHIFT_RIGHT(x,n)     ((x) << (n))
-#endif
-
 #define LEFT_MASK(x)                                                   \
                (((x) & 0x1f) ?                                         \
                 SCREEN_SHIFT_RIGHT (0xffffffff, (x) & 0x1f) : 0)
index c99b101..efc690d 100644 (file)
@@ -749,6 +749,14 @@ pixman_region16_copy_from_region32 (pixman_region16_t *dst,
      PIXMAN_FORMAT_G (f) > 8 ||                                                \
      PIXMAN_FORMAT_B (f) > 8)
 
+#ifdef WORDS_BIGENDIAN
+#   define SCREEN_SHIFT_LEFT(x,n)      ((x) << (n))
+#   define SCREEN_SHIFT_RIGHT(x,n)     ((x) >> (n))
+#else
+#   define SCREEN_SHIFT_LEFT(x,n)      ((x) >> (n))
+#   define SCREEN_SHIFT_RIGHT(x,n)     ((x) << (n))
+#endif
+
 /*
  * Various debugging code
  */