Ticket #51012: Patch_pixman-vmx_for_old_GCC.diff

File Patch_pixman-vmx_for_old_GCC.diff, 443 bytes (added by ballapete (Peter "Pete" Dyballa), 9 years ago)

Patch to allow compilation of pixman/pixman-vmx.c with AltiVec support for GCC 4.2

  • pixman/pixman-vmx.c

    diff --git a/pixman/pixman-vmx.c b/pixman/pixman-vmx.c
    index 41efdcf..3e5a5c5 100644
    scaled_nearest_scanline_vmx_8888_8888_OVER (uint32_t* pd, 
    29332933        while (vx >= 0)
    29342934            vx -= src_width_fixed;
    29352935
    2936         tmp[0] = tmp1;
    2937         tmp[1] = tmp2;
    2938         tmp[2] = tmp3;
    2939         tmp[3] = tmp4;
     2936        tmp = (vector unsigned int){tmp1, tmp2, tmp3, tmp4};
    29402937
    29412938        vsrc = combine4 ((const uint32_t *) &tmp, pm);