util: Fix 24 to 32 bit expansion binary arithmetic expression.
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 2 Jun 2009 18:46:06 +0000 (11:46 -0700)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 2 Jun 2009 18:46:06 +0000 (11:46 -0700)
commitc91df4c1534e2db2274b6d08e90470bf21a49e2a
tree811c3eefe8fb1e3461f6325b2a73ee13e47fe82f
parent12e94d892e3322be5c8a1594702d69e7a02d5274
util: Fix 24 to 32 bit expansion binary arithmetic expression.

When approaching y = x * 0xffffffff / 0xffffff with bit arithmetic, the
8 least significant bits of y should come from the
8 most significant bits of x.
src/gallium/auxiliary/util/u_tile.c