find_first_zero_bit problems...

From: Stephane Dalton (sdalton@vipswitch.com)
Date: Thu Jul 27 2000 - 09:37:05 EST


I encountered the following problem with kernel 2.4-test4 on an dual
Celeron machine

calling the find_first_zero_bit inline function works well inside a loop
eg:

        do {
                i = find_first_zero_bit(p, num_bits);
                if (i == num_bits)
                    break;
                set_bit(i%32, p+(i/32));
 
        }while(1);

but when manually unrolling the loop the function seems to be called only
once...

I'm compiling with gcc-2.95.2 for Intel arch

the following patch fixes the problem, I'm unsure if it is the right way
to go.

If there's any comment about this reply to me directly as I'm not on the
list

thanks



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jul 31 2000 - 21:00:23 EST