Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
David Miller | c6df4b1 | 2012-02-02 00:17:54 +0200 | [diff] [blame] | 2 | const unsigned char __clz_tab[] = { |
| 3 | 0, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, |
| 4 | 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, |
| 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, |
| 8 | 7, 7, 7, 7, 7, 7, 7, 7, |
| 9 | 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, |
| 10 | 7, 7, 7, 7, 7, 7, 7, 7, |
| 11 | 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, |
| 12 | 8, 8, 8, 8, 8, 8, 8, 8, |
| 13 | 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, |
| 14 | 8, 8, 8, 8, 8, 8, 8, 8, |
| 15 | 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, |
| 16 | 8, 8, 8, 8, 8, 8, 8, 8, |
| 17 | 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, |
| 18 | 8, 8, 8, 8, 8, 8, 8, 8, |
| 19 | }; |