Zig 0.17.0-dev (Split by item)
This is an example of documentation generated by
ZigDoc , an alternative to Zig's built-in
Auto Doc feature. See also
examples in other modes/formats . The project being documented here (as the example) is the Zig library itself.
Zig › std/ › math/ › big.zig
big.zig
Index
File
Code
const std = @import ("../std.zig" );
const assert = std .debug .assert ;
pub const int = @import ("big/int.zig" );
pub const Limb = usize ;
const limb_info = @typeInfo (Limb ).int ;
pub const SignedLimb = @Int (.signed , limb_info .bits );
pub const DoubleLimb = @Int (.unsigned , 2 * limb_info .bits );
pub const HalfLimb = @Int (.unsigned , limb_info .bits / 2 );
pub const SignedDoubleLimb = @Int (.signed , 2 * limb_info .bits );
pub const Log2Limb = std .math .Log2Int (Limb );
comptime {
assert (std .math .floorPowerOfTwo (usize , limb_info .bits ) == limb_info .bits );
assert (limb_info .signedness == .unsigned );
}
test {
_ = int ;
_ = Limb ;
_ = SignedLimb ;
_ = DoubleLimb ;
_ = SignedDoubleLimb ;
_ = Log2Limb ;
}