[arm-simd] Add a comment about aligning source and destination pointers.
authorJeff Muizelaar <jmuizelaar@mozilla.com>
Fri, 5 Dec 2008 17:01:03 +0000 (12:01 -0500)
committerJeff Muizelaar <jmuizelaar@mozilla.com>
Fri, 5 Dec 2008 17:01:03 +0000 (12:01 -0500)
pixman/pixman-arm-simd.c

index f595325..ceef1a8 100644 (file)
@@ -60,6 +60,8 @@ fbCompositeSrcAdd_8000x8000arm (pixman_op_t op,
        srcLine += srcStride;
        w = width;
 
+        /* ensure both src and dst are properly aligned before doing 32 bit reads
+         * we'll stay in this loop if src and dst have differing alignments */
        while (w && (((unsigned long)dst & 3) || ((unsigned long)src & 3)))
        {
            s = *src;