David Gonzalez Martin 03e2d6798f Trailing zeroes
2024-04-23 08:08:08 -06:00

9 lines
208 B
Plaintext

const std = #import("std");
const expect = std.testing.expect;
const main = fn () *!void {
var a: u32 = 7;
try expect(#trailing_zeroes(a) == 0);
a = 8;
try expect(#trailing_zeroes(a) == 3);
}