mesa: remove _mesa_ffs(), implement ffs() for non-GNU platforms
authorBrian Paul <brianp@vmware.com>
Thu, 12 Jan 2012 14:30:48 +0000 (07:30 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 12 Jan 2012 14:30:58 +0000 (07:30 -0700)
commit9a548c27aa704236cc1d8a5d4ebf68cea9c5c99c
treecdb18d78dd7dc3724d183361618212f274acb675
parent87118d84ff11c040f677c7506afb813def1b9ff9
mesa: remove _mesa_ffs(), implement ffs() for non-GNU platforms

Call ffs() and ffsll() everywhere.  Define our own ffs(), ffsll()
functions when the platform doesn't have them.

v2: remove #ifdef _WIN32, __IBMC__, __IBMCPP_ tests inside ffs()
implementation.  The #else clause was recursive.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Tested-by: Alexander von Gluck <kallisti5@unixzen.com>
14 files changed:
src/mesa/drivers/dri/i965/brw_wm_emit.c
src/mesa/drivers/dri/i965/brw_wm_fp.c
src/mesa/drivers/dri/intel/intel_blit.c
src/mesa/drivers/dri/intel/intel_clear.c
src/mesa/main/arrayobj.c
src/mesa/main/bitset.h
src/mesa/main/buffers.c
src/mesa/main/ff_fragment_shader.cpp
src/mesa/main/ffvertex_prog.c
src/mesa/main/imports.c
src/mesa/main/imports.h
src/mesa/main/shaderapi.c
src/mesa/program/prog_print.c
src/mesa/swrast/s_texture.c