mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-10 01:33:07 +00:00
addressed comments
This commit is contained in:
parent
6f05a144cb
commit
9e7dc7ca79
@ -1,7 +1,8 @@
|
||||
// Arithmetic on little-endian integers represented with 128-bit limbs.
|
||||
// All integers must be under a given length bound, and are padded with leading zeroes.
|
||||
|
||||
// Returns a >= b.
|
||||
// Compares two bignums of the same given length. Assumes that len > 0.
|
||||
// Returns 1 if a > b, 3 if a == b, and 0 if a < b.
|
||||
global ge_bignum:
|
||||
// stack: len, a_start_loc, b_start_loc, retdest
|
||||
SWAP1
|
||||
|
||||
@ -3,6 +3,10 @@
|
||||
|
||||
global iszero_bignum:
|
||||
// stack: len, start_loc, retdest
|
||||
DUP1
|
||||
// stack: len, len, start_loc, retdest
|
||||
ISZERO
|
||||
%jumpi(eqzero)
|
||||
DUP2
|
||||
// stack: start_loc, len, start_loc, retdest
|
||||
ADD
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user