[Pixman] [RFC PATCH] solid-test: Allow for big-endian targets

Ben Avison bavison at riscosopen.org
Wed May 27 05:40:24 PDT 2015


On Tue, 26 May 2015 19:16:32 +0100, I wrote:

> +        color.alpha = prng_rand_n (UINT16_MAX);
> +        color.red   = prng_rand_n (UINT16_MAX);
> +        color.green = prng_rand_n (UINT16_MAX);
> +        color.blue  = prng_rand_n (UINT16_MAX);

Oops, those should have been UINT16_MAX + 1; the argument is used as a
modulo not as a bitmask. The corresponding checksum is then 0xC30FD380
for me on ARM and x86 (both little-endian of course).

Ben


More information about the Pixman mailing list