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.
70dc910086Cody Tapscott committed on 6/8/2022, 12:07:40 AM· committed by Andrew Kelleyparent6ff7b43
1 file changedLine totals unavailable