util: better logbase2/next_power_of_two implementations
authorBenjamin Bellec <b.bellec@gmail.com>
Wed, 8 Jun 2011 21:00:54 +0000 (23:00 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Wed, 8 Jun 2011 23:14:50 +0000 (01:14 +0200)
commit894db40f122175ed85e0d32d42296f2d56cf748e
treefd244d13c0543853bca8dcd8792c08310d69fc81
parent9f865646f1fb05cec72dcb1d7411670d38b0a9b4
util: better logbase2/next_power_of_two implementations

Use __builtin_clz when available for logbase/next_power_of_two,
and replace next_power_of_two with faster implementation otherwise.
src/gallium/auxiliary/util/u_math.h