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-06 13:11:50 -07:00
2022-04-24 23:01:06 -04:00
2022-06-07 21:27:07 +03:00
2022-06-07 21:27:07 +03:00
2022-05-24 22:48:51 -04:00
2022-06-03 20:21:20 +03:00
2022-05-13 16:43:59 -04:00
2022-03-08 20:38:12 +02:00
2022-06-03 20:21:20 +03:00
2022-04-20 17:18:06 -07:00
2022-01-07 00:06:06 -05:00
2022-06-03 20:21:20 +03:00
2022-04-14 10:12:45 -07:00
2022-06-03 20:21:20 +03:00
2022-05-13 16:43:59 -04:00
2022-06-03 20:21:20 +03:00
2022-06-07 21:27:07 +03:00
2022-06-06 15:34:20 -07:00
2022-05-26 21:58:19 -07:00
2022-05-24 22:48:51 -04:00
2022-06-07 21:27:07 +03:00
2022-05-13 16:43:59 -04:00
2022-04-15 17:01:01 -05:00
2022-01-07 00:06:06 -05:00
2022-06-03 20:21:20 +03:00