mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-07 16:23:12 +00:00
better comments
This commit is contained in:
parent
59dc9b2d8e
commit
f6a30cba7c
@ -37,8 +37,8 @@ ret_stack:
|
|||||||
%jump(0xdeadbeef)
|
%jump(0xdeadbeef)
|
||||||
|
|
||||||
|
|
||||||
/// fp6 macros:
|
/// fp6 functions:
|
||||||
/// macro | num | ops | cost
|
/// fn | num | ops | cost
|
||||||
/// -------------------------
|
/// -------------------------
|
||||||
/// load | 8 | 40 | 320
|
/// load | 8 | 40 | 320
|
||||||
/// store | 5 | 40 | 200
|
/// store | 5 | 40 | 200
|
||||||
@ -61,16 +61,20 @@ ret_stack:
|
|||||||
///
|
///
|
||||||
/// TOTAL: 1196
|
/// TOTAL: 1196
|
||||||
|
|
||||||
|
/// inputs:
|
||||||
/// F = f + f'z
|
/// F = f + f'z
|
||||||
/// G = g + g'z
|
/// G = g + g'z
|
||||||
///
|
///
|
||||||
|
/// output:
|
||||||
/// H = h + h'z = FG
|
/// H = h + h'z = FG
|
||||||
///
|
///
|
||||||
/// h = fg + sh(f'g')
|
/// h = fg + sh(f'g')
|
||||||
/// h' = (f+f')(g+g') - fg - f'g'
|
/// h' = (f+f')(g+g') - fg - f'g'
|
||||||
///
|
///
|
||||||
/// Note: f, f', g, g' consist of six terms on the stack
|
/// memory offsets [ind' = ind+6]
|
||||||
|
/// {in0: f, in0: f', in1: g, in1':g', out: h, out': h'}
|
||||||
|
///
|
||||||
|
/// f, f', g, g' consist of six elements on the stack
|
||||||
|
|
||||||
global mul_Fp12:
|
global mul_Fp12:
|
||||||
// stack: in0, in1, out
|
// stack: in0, in1, out
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user