Commit 4c3ee547 authored by MASSON Simon's avatar MASSON Simon
Browse files

useless condition

parent 5bc53498
......@@ -10,8 +10,6 @@ from MNT6 import *
from final_expo_k57 import *
from enumerate_sparse_T import bit_positions_2naf, bit_positions
mystery_201903151748_simon_a_raison=False
# TODO: take into account h_t not always being 0 in the k=6 or k=8
# cases... [WIP for k=8 -- want to automate a bit]
......@@ -338,12 +336,7 @@ def millerLoopCost(C):
cost_update1 = cost_s(k)+densexsparse_m8(k)
cost_update2 = densexsparse_m8(k)
if name == 'KSS16' : # extra partial add and partial double + 3 frob and 2 multiplications
if mystery_201903151748_simon_a_raison:
miller_fixup = (cost_m(k//4) + 5 *cost_s(k//4) + k//2 * cost_m(1)) + \
+ (5*cost_m(k//4) + 2*cost_s(k//4) + k//2 * cost_m(1))
else:
miller_fixup = 5*cost_m(k//4) + cost_s(k//4) + k * cost_m(1)
miller_fixup = 5*cost_m(k//4) + cost_s(k//4) + k * cost_m(1)
miller_fixup += 3*cost_f(k) + 2*sparse_m16
elif k == 12 and D == 3:
cost_doubleline = 3*cost_m(k//6) + 6*cost_s(k//6) + (k//3)*cost_m(1)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment