talos/internal
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-08-10 15:08:23 +04:00