mesa: use __builtin_clz for logbase2 when available
authorRoland Scheidegger <sroland@vmware.com>
Wed, 8 Jun 2011 22:44:32 +0000 (00:44 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Wed, 8 Jun 2011 23:14:50 +0000 (01:14 +0200)
commitb537f54b3a2bd47ec861f5c432c49529684eef21
tree60ee6fa35ab28b60f9f6f19222e815666b71d536
parentb3d5822e932767a572f392ae2b3ca1dfee5f6b03
mesa: use __builtin_clz for logbase2 when available

Also rename to _mesa_logbase2 and move to imports.h to keep the ugly
ifdef GNUC stuff outside other files (also to allow reuse).
src/mesa/main/imports.h
src/mesa/main/teximage.c