mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-05 23:33:07 +00:00
Merge branch 'ec_use_macro_params' into evm_interpreter
This commit is contained in:
commit
a280e1c60a
@ -14,9 +14,7 @@ global ec_mul:
|
|||||||
// stack: x, y, x, y, s, retdest
|
// stack: x, y, x, y, s, retdest
|
||||||
%ec_isidentity
|
%ec_isidentity
|
||||||
// stack: (x,y)==(0,0), x, y, s, retdest
|
// stack: (x,y)==(0,0), x, y, s, retdest
|
||||||
PUSH ret_zero
|
%jumpi(ret_zero)
|
||||||
// stack: ret_zero, y==0 & x==0, x, y, s, retdest
|
|
||||||
JUMPI
|
|
||||||
// stack: x, y, s, retdest
|
// stack: x, y, s, retdest
|
||||||
DUP2
|
DUP2
|
||||||
// stack: y, x, y, s, retdest
|
// stack: y, x, y, s, retdest
|
||||||
@ -24,9 +22,7 @@ global ec_mul:
|
|||||||
// stack: x, y, x, y, s, retdest
|
// stack: x, y, x, y, s, retdest
|
||||||
%ec_check
|
%ec_check
|
||||||
// stack: isValid(x, y), x, y, s, retdest
|
// stack: isValid(x, y), x, y, s, retdest
|
||||||
PUSH ec_mul_valid_point
|
%jumpi(ec_mul_valid_point)
|
||||||
// stack: ec_mul_valid_point, isValid(x, y), x, y, s, retdest
|
|
||||||
JUMPI
|
|
||||||
// stack: x, y, s, retdest
|
// stack: x, y, s, retdest
|
||||||
%pop3
|
%pop3
|
||||||
%ec_invalid_input
|
%ec_invalid_input
|
||||||
@ -37,9 +33,7 @@ ec_mul_valid_point:
|
|||||||
// stack: x, y, s, retdest
|
// stack: x, y, s, retdest
|
||||||
DUP3
|
DUP3
|
||||||
// stack: s, x, y, s, retdest
|
// stack: s, x, y, s, retdest
|
||||||
PUSH step_case
|
%jumpi(step_case)
|
||||||
// stack: step_case, s, x, y, s, retdest
|
|
||||||
JUMPI
|
|
||||||
// stack: x, y, s, retdest
|
// stack: x, y, s, retdest
|
||||||
%jump(ret_zero)
|
%jump(ret_zero)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user