Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 198560
b: refs/heads/master
c: a75f5f0
h: refs/heads/master
v: v3
  • Loading branch information
Matt Turner authored and Matt Turner committed May 25, 2010
1 parent 5924ea2 commit a652b6a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1cb3d8e2c8d30d2cbfe42b696d501d0a016edec1
refs/heads/master: a75f5f0f0a3676216e0015b3040c785dbfe1e0da
20 changes: 9 additions & 11 deletions trunk/arch/alpha/include/asm/bitops.h
Original file line number Diff line number Diff line change
Expand Up @@ -438,22 +438,20 @@ static inline unsigned int __arch_hweight8(unsigned int w)

/*
* Every architecture must define this function. It's the fastest
* way of searching a 140-bit bitmap where the first 100 bits are
* unlikely to be set. It's guaranteed that at least one of the 140
* bits is set.
* way of searching a 100-bit bitmap. It's guaranteed that at least
* one of the 100 bits is cleared.
*/
static inline unsigned long
sched_find_first_bit(unsigned long b[3])
sched_find_first_bit(const unsigned long b[2])
{
unsigned long b0 = b[0], b1 = b[1], b2 = b[2];
unsigned long ofs;
unsigned long b0, b1, ofs, tmp;

ofs = (b1 ? 64 : 128);
b1 = (b1 ? b1 : b2);
ofs = (b0 ? 0 : ofs);
b0 = (b0 ? b0 : b1);
b0 = b[0];
b1 = b[1];
ofs = (b0 ? 0 : 64);
tmp = (b0 ? b0 : b1);

return __ffs(b0) + ofs;
return __ffs(tmp) + ofs;
}

#include <asm-generic/bitops/ext2-non-atomic.h>
Expand Down

0 comments on commit a652b6a

Please sign in to comment.