No subject


Mon Jun 6 14:12:16 PDT 2011


+       return (1 << (32 - __builtin_clz(x - 1)));

I don't know if the use of gcc guarantees that int will always be 32
bit, otherwise maybe use sizeof(int)*8 instead of 32? Or even
sizeof(int)*CHAR_BIT for good measures. Although probably the robots
have taken over before this becomes necessary :)

Tormod


More information about the mesa-dev mailing list