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]]

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

File

lib/std/crypto/pcurves/secp256k1/secp256k1_scalar_64.zig:1739

Code

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

    out1[0] = 0xbfd25e8cd0364141;
    out1[1] = 0xbaaedce6af48a03b;
    out1[2] = 0xfffffffffffffffe;
    out1[3] = 0xffffffffffffffff;
    out1[4] = 0x0;
}