(b: number)
| 12 | } |
| 13 | |
| 14 | function msb(b: number) { |
| 15 | let n = 0 |
| 16 | |
| 17 | if (b == 0) { |
| 18 | return 8 |
| 19 | } |
| 20 | |
| 21 | // eslint-disable-next-line no-cond-assign |
| 22 | while ((b >>= 1)) { |
| 23 | n++ |
| 24 | } |
| 25 | |
| 26 | return 7 - n |
| 27 | } |
no outgoing calls
no test coverage detected