Replace // comments with /* */ comments in various places
authorSøren Sandmann Pedersen <sandmann@redhat.com>
Sun, 19 Jul 2009 16:29:42 +0000 (12:29 -0400)
committerSøren Sandmann Pedersen <sandmann@redhat.com>
Mon, 20 Jul 2009 02:50:04 +0000 (22:50 -0400)
pixman/pixman-access.c
pixman/pixman-arm-simd.c
pixman/pixman-cpu.c
pixman/pixman-sse2.c

index 19f70d7..a5e1c0f 100644 (file)
@@ -2425,10 +2425,10 @@ store_scanline_a2r10g10b10 (bits_image_t *  image,
     for (i = 0; i < width; ++i)
     {
        WRITE (image, pixel++,
-              ((values[i] >> 32) & 0xc0000000) | // A
-              ((values[i] >> 18) & 0x3ff00000) | // R
-              ((values[i] >> 12) & 0xffc00) | // G
-              ((values[i] >> 6) & 0x3ff));    // B
+              ((values[i] >> 32) & 0xc0000000) |
+              ((values[i] >> 18) & 0x3ff00000) |
+              ((values[i] >> 12) & 0xffc00) | 
+              ((values[i] >> 6) & 0x3ff));    
     }
 }
 
@@ -2447,9 +2447,9 @@ store_scanline_x2r10g10b10 (bits_image_t *  image,
     for (i = 0; i < width; ++i)
     {
        WRITE (image, pixel++,
-              ((values[i] >> 18) & 0x3ff00000) | // R
-              ((values[i] >> 12) & 0xffc00) | // G
-              ((values[i] >> 6) & 0x3ff));    // B
+              ((values[i] >> 18) & 0x3ff00000) | 
+              ((values[i] >> 12) & 0xffc00) |
+              ((values[i] >> 6) & 0x3ff));
     }
 }
 
@@ -2468,10 +2468,10 @@ store_scanline_a2b10g10r10 (bits_image_t *  image,
     for (i = 0; i < width; ++i)
     {
        WRITE (image, pixel++,
-              ((values[i] >> 32) & 0xc0000000) | // A
-              ((values[i] >> 38) & 0x3ff) |   // R
-              ((values[i] >> 12) & 0xffc00) | // G
-              ((values[i] << 14) & 0x3ff00000)); // B
+              ((values[i] >> 32) & 0xc0000000) |
+              ((values[i] >> 38) & 0x3ff) |
+              ((values[i] >> 12) & 0xffc00) |
+              ((values[i] << 14) & 0x3ff00000));
     }
 }
 
@@ -2490,9 +2490,9 @@ store_scanline_x2b10g10r10 (bits_image_t *  image,
     for (i = 0; i < width; ++i)
     {
        WRITE (image, pixel++,
-              ((values[i] >> 38) & 0x3ff) |   // R
-              ((values[i] >> 12) & 0xffc00) | // G
-              ((values[i] << 14) & 0x3ff00000)); // B
+              ((values[i] >> 38) & 0x3ff) |
+              ((values[i] >> 12) & 0xffc00) |
+              ((values[i] << 14) & 0x3ff00000));
     }
 }
 
index b7912b6..fb7bf3d 100644 (file)
@@ -135,7 +135,7 @@ arm_composite_over_8888_8888 (pixman_implementation_t * impl,
        src_line += src_stride;
        w = width;
 
-//#define inner_branch
+/* #define inner_branch */
        asm volatile (
            "cmp %[w], #0\n\t"
            "beq 2f\n\t"
index 73e94c1..a2a7b8a 100644 (file)
@@ -255,11 +255,12 @@ pixman_arm_read_auxv ()
                uint32_t hwcap = aux.a_un.a_val;
                if (getenv ("ARM_FORCE_HWCAP"))
                    hwcap = strtoul (getenv ("ARM_FORCE_HWCAP"), NULL, 0);
-               // hardcode these values to avoid depending on specific versions
-               // of the hwcap header, e.g. HWCAP_NEON
+               /* hardcode these values to avoid depending on specific
+                * versions of the hwcap header, e.g. HWCAP_NEON
+                */
                arm_has_vfp = (hwcap & 64) != 0;
                arm_has_iwmmxt = (hwcap & 512) != 0;
-               // this flag is only present on kernel 2.6.29
+               /* this flag is only present on kernel 2.6.29 */
                arm_has_neon = (hwcap & 4096) != 0;
            }
            else if (aux.a_type == AT_PLATFORM)
@@ -280,8 +281,9 @@ pixman_arm_read_auxv ()
        }
        close (fd);
 
-       // if we don't have 2.6.29, we have to do this hack; set
-       // the env var to trust HWCAP.
+       /* if we don't have 2.6.29, we have to do this hack; set
+        * the env var to trust HWCAP.
+        */
        if (!getenv ("ARM_TRUST_HWCAP") && arm_has_v7)
            arm_has_neon = TRUE;
     }
index 6ee333f..7e938df 100644 (file)
@@ -361,7 +361,7 @@ cache_prefetch (__m128i* addr)
 static force_inline void
 cache_prefetch_next (__m128i* addr)
 {
-    _mm_prefetch (addr + 4, _MM_HINT_T0); // 64 bytes ahead
+    _mm_prefetch (addr + 4, _MM_HINT_T0); /* 64 bytes ahead */
 }
 
 /* load 4 pixels from a 16-byte boundary aligned address */