Cody Tapscott 70dc910086 std.math: Add O(log N) implementation of log2(x) for comptime_int
Since Zig provides @clz and not @ffs (find-first-set), log2 for comptime
integers needs to be computed algorithmically. To avoid hitting the
backward branch quota, this updates log2(x) to use a simple O(log N)
algorithm.
2022-06-07 20:07:40 -04:00
..
2022-06-07 21:27:07 +03:00
2022-05-17 21:55:22 +01:00
2022-04-27 12:20:44 -07:00
2022-04-27 12:20:44 -07:00
2022-04-27 12:20:44 -07:00
2022-04-27 12:20:44 -07:00
2022-04-27 12:20:44 -07:00
2022-04-27 12:20:44 -07:00
2022-05-17 21:55:22 +01:00
2022-04-27 12:20:44 -07:00
2022-05-17 21:55:22 +01:00
2022-04-27 12:20:44 -07:00
2022-04-27 12:20:44 -07:00
2021-10-05 12:32:26 -07:00
2022-04-27 12:20:44 -07:00
2021-10-05 12:32:26 -07:00
2022-05-17 22:04:12 +01:00
2022-05-17 22:04:12 +01:00
2022-05-17 22:04:12 +01:00
2022-05-17 22:04:12 +01:00
2022-04-27 12:20:44 -07:00
2022-04-27 12:20:44 -07:00
2022-04-27 12:20:44 -07:00
2022-04-27 14:18:34 -07:00
2022-05-17 21:55:22 +01:00
2022-05-17 21:41:57 +01:00