alac.c
static int count_leading_zeros(int32_t input)
{
    int i = 0;
    while (!(0x80000000 & input) && i < 32)
    {
        i++;
        input = input << 1;
    }
    return i;
}
/* hideously inefficient. could use a bitmask search,
 * alternatively bsr on x86,
 */
hideously inefficient. could use a bitmask search,
alternatively bsr on x86.
hideously inefficient . could use a bitmask search alternatively bsr on x86 .
static int count_leading_zeros(int32_t input)
{
    int i = 0;
    while (!(0x80000000 & input) && i < 32)
    {
        i++;
        input = input << 1;
    }
    return i;
}
static int count_leading_zeros ( int32_t input ) { int i = 0 ; while ( ! ( 0x80000000 & input ) && i < 32 ) { i ++ ; input = input << 1 ; } return i ; }
hideously inefficient.
hideously inefficient .