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.

msat

The function msat returns the saturated representation of the prime modulus.

Postconditions: twos_complement_eval out1 = m 0 ≤ eval out1 < m

Output Bounds: out1: [[0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff]]

p256_scalar_64.msat
pub fn msat(out1: *[5]u64) void

File

lib/std/crypto/pcurves/p256/p256_scalar_64.zig:1750

Code

pub fn msat(out1: *[5]u64) void {
    @setRuntimeSafety(mode == .debug);

    out1[0] = 0xf3b9cac2fc632551;
    out1[1] = 0xbce6faada7179e84;
    out1[2] = 0xffffffffffffffff;
    out1[3] = 0xffffffff00000000;
    out1[4] = @as(u64, 0x0);
}