gallium/util: Don't use __builtin_clrsb in util_last_bit().
authorMatt Turner <mattst88@gmail.com>
Tue, 3 Feb 2015 01:26:49 +0000 (17:26 -0800)
committerMatt Turner <mattst88@gmail.com>
Tue, 3 Feb 2015 20:25:14 +0000 (12:25 -0800)
commit32e98e8ef06f0bb6ad55f9fb5858be77c03367b0
tree46dcd0a28bea3a83c743e1042890049e0bcb9402
parentd8be1b9abadf1f65eeaef86edee6654632473839
gallium/util: Don't use __builtin_clrsb in util_last_bit().

Unclear circumstances lead to undefined symbols on x86.

Bugzilla: https://bugs.gentoo.org/show_bug.cgi?id=536916
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/auxiliary/util/u_math.h