2007-05-30 03:01:35 +04:00
|
|
|
/*
|
|
|
|
* arch/alpha/lib/fls.c
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/module.h>
|
2007-10-19 10:40:25 +04:00
|
|
|
#include <linux/bitops.h>
|
2007-05-30 03:01:35 +04:00
|
|
|
|
|
|
|
/* This is fls(x)-1, except zero is held to zero. This allows most
|
2011-03-31 05:57:33 +04:00
|
|
|
efficient input into extbl, plus it allows easy handling of fls(0)=0. */
|
2007-05-30 03:01:35 +04:00
|
|
|
|
|
|
|
const unsigned char __flsm1_tab[256] =
|
|
|
|
{
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
1, 1,
|
|
|
|
2, 2, 2, 2,
|
|
|
|
3, 3, 3, 3, 3, 3, 3, 3,
|
|
|
|
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
|
|
|
|
|
|
|
|
5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
|
|
|
|
5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
|
|
|
|
|
|
|
|
6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
|
|
|
|
6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
|
|
|
|
6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
|
|
|
|
6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
|
|
|
|
|
|
|
|
7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
|
|
|
|
7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
|
|
|
|
7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
|
|
|
|
7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,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