#define FUNCSTEM stdc_trailing_zeros
#define MKREFFUNC(name, type) \
static unsigned \
name(type value) \
{ \
type bit = 1; \
unsigned count = 0; \
\
while (bit != 0 && (bit & value) == 0) { \
bit <<= 1; \
count++; \
} \
\
return (count); \
}
#include "stdbit-test-framework.c"