Andrey Smirnov 85b5d1ddd1
fix: calculate log2i properly
Fixes #7080

The real bug was off-by-one in `log2i` implementation, other changes are
cleanups as `x/sys/unix` package now contains all the constants we need.

Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
(cherry picked from commit 4eab3017b036d3229a6fa7dc9612050d1499e2b6)
2023-08-10 15:08:23 +04:00
..
2023-03-30 23:39:38 +04:00
2023-03-22 19:55:38 +05:30
2023-05-08 18:45:25 +04:00
2023-08-10 15:08:23 +04:00
2023-08-10 15:08:23 +04:00
2023-03-22 16:37:27 +05:30