aboutsummaryrefslogtreecommitdiff
path: root/crypto/arc4.c
diff options
context:
space:
mode:
authorJack Morgenstein <jackm@mellanox.co.il>2005-12-09 16:38:04 -0800
committerRoland Dreier <rolandd@cisco.com>2005-12-09 16:38:04 -0800
commit6aa2e4e8063114bd7cea8616dd5848d3c64b4c36 (patch)
tree0daa26d085f163572df0292913e8f0b4818c1558 /crypto/arc4.c
parent94361cf74a6fca1973d2fed5338d5fb4bcd902fa (diff)
IB/mthca: correct log2 calculation
Fix thinko in rd_atomic calculation: ffs(x) - 1 does not find the next power of 2 -- it should be fls(x - 1). Signed-off-by: Jack Morgenstein <jackm@mellanox.co.il> Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'crypto/arc4.c')
0 files changed, 0 insertions, 0 deletions