#include "c.h"
Go to the source code of this file.
Functions | |
| int | fls (int mask) |
| int fls | ( | int | mask | ) |
Definition at line 55 of file fls.c.
Referenced by interval_transform().
{
int bit;
if (mask == 0)
return (0);
for (bit = 1; mask != 1; bit++)
mask = (unsigned int) mask >> 1;
return (bit);
}
1.7.1