Supporting infrastructure for brltty

This commit is contained in:
Vladimir Serbinenko committed 2013-10-28 16:49:58 +01:00
1 parent 16fba4d65d
commit e79b5f2678
63 files changed
+2196 -256

No files matched your search

@@ -0,0 +1,10 @@
static inline int
ffs (int i)
{
unsigned j;
for (j = 0; j < sizeof (i) * 8; j++)
if (i & (1 << j))
return j + 1;
return 0;
}