aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/spirv/Module.zig
diff options
context:
space:
mode:
authorr00ster91 <r00ster91@proton.me>2023-05-29 01:48:24 +0200
committerAndrew Kelley <andrew@ziglang.org>2023-06-18 10:42:03 -0700
commit2839e35d1c06ca5b6bda1f20ae870f2b2fbbbfb1 (patch)
treee563096f2b145f0edbc6e556b43284d5fd006582 /src/codegen/spirv/Module.zig
parentc13ac52972b864ff3aa9fc373f96d7ede41d5a31 (diff)
downloadzig-2839e35d1c06ca5b6bda1f20ae870f2b2fbbbfb1.tar.gz
zig-2839e35d1c06ca5b6bda1f20ae870f2b2fbbbfb1.zip
std.math.isPowerOfTwo: add tests and doc comment and improve assert
The assert is changed from `int != 0` to `int > 0` because negative integers always return `false`. Python's `math.log2` does the same and errors for 0 or negative integers.
Diffstat (limited to 'src/codegen/spirv/Module.zig')
0 files changed, 0 insertions, 0 deletions