bus -> subr

This commit is contained in:
Dmitry Vagner 2022-10-20 10:56:55 -04:00
parent 37e429c943
commit dc59ed10a1
2 changed files with 3 additions and 3 deletions

View File

@ -83,7 +83,7 @@ global mul_Fp12:
// stack: (f+f')(g+g')
%load_fp6(42)
// stack: f'g', (f+f')(g+g')
%bus_fp6
%subr_fp6
// stack: (f+f')(g+g') - f'g'
%load_fp6(48)
// stack: fg, (f+f')(g+g') - f'g'
@ -91,7 +91,7 @@ global mul_Fp12:
// stack: (f+f')(g+g') - f'g', fg
%dup2_fp6
// stack: fg, (f+f')(g+g') - f'g', fg
%bus_fp6
%subr_fp6
// stack: (f+f')(g+g') - f'g' - fg, fg
%store_fp6(30)
// stack: fg

View File

@ -181,7 +181,7 @@
%endmacro
// *reversed argument subtraction* cost: 17
%macro bus_fp6
%macro subr_fp6
// stack: f0, f1, f2, f3, f4, f5, g0, g1, g2, g3, g4, g5
SWAP7
SUBFP254