Functions

fn addMulLimbWithCarry(a: Limb, b: Limb, c: Limb, carry: *Limb) Limb

a + b * c + *carry, sets carry to the overflow bits

fn calcDivLimbsBufferLen(a_len: usize, b_len: usize) usize

No documentation provided.

fn calcLimbLen(scalar: anytype) usize

Returns the number of limbs needed to store scalar, which must be a primitive…

Returns the number of limbs needed to store scalar, which must be a primitive integer value. Note: A comptime-known upper bound of this value that may be used instead if scalar is not already comptime-known is calcTwosCompLimbCount(@typeInfo(@TypeOf(scalar)).Int.bits)

fn calcMulLimbsBufferLen(a_len: usize, b_len: usize, aliases: usize) usize

No documentation provided.

fn calcMulWrapLimbsBufferLen(bit_count: usize, a_len: usize, b_len: usize, aliases: usize) usize

No documentation provided.

fn calcPowLimbsBufferLen(a_bit_count: usize, y: usize) usize

No documentation provided.

fn calcSetStringLimbCount(base: u8, string_len: usize) usize

No documentation provided.

fn calcSetStringLimbsBufferLen(base: u8, string_len: usize) usize

No documentation provided.

fn calcSqrtLimbsBufferLen(a_bit_count: usize) usize

No documentation provided.

fn calcToStringLimbsBufferLen(a_len: usize, base: u8) usize

No documentation provided.

fn calcTwosCompLimbCount(bit_count: usize) usize

No documentation provided.

fn llcmp(a: []const Limb, b: []const Limb) i8

Returns -1, 0, 1 if |a| < |b|, |a| == |b| or |a| > |b| respectively for limbs.