On 14 February 2014 15:53, Matteo Bruni mbruni@codeweavers.com wrote:
if (format->bits[c])
{
mask = format->bits[c] == 32 ? ~0U : (1 << format->bits[c]) - 1;
You could probably also do that as "mask = ~0u >> (32 - format->bits[c]);", since you already need to check "format->bits[c]" for 0 anyway.