awesome/build-tests/__builtin_clz.c
Alexandre "kAworu" Perrin cc08f45304 test for __builtin_clz() and fallback to an inline implementation.
__builtin_clz() is not defined by gcc prior to 3.4 and maybe not for some other
compiler vendors.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-11 20:42:03 +02:00

12 lines
136 B
C

/*
* build-tests/__builtin_clz.c
*
* test if the compiler has __builtin_clz().
*/
int
main(void)
{
return (__builtin_clz(42));
}