Skip to content

Commit 964bce1

Browse files
committed
update gentest.py
1 parent 0660683 commit 964bce1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

fiat-amd64/gentest.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ def removeprefix(s, prefix):
3838
saturatedsolinasprimes = dict(
3939
curve25519_solinas=('2^255 - 19'))
4040

41-
dettmanprimes = dict( # last limb width, limbs, prime
42-
secp256k1_dettman=('48', '5', '2^256 - 4294968273'))
41+
dettmanprimes = dict( # last limb width, limbs, last reduction, prime
42+
secp256k1_dettman=('48', '5', '2', '2^256 - 4294968273'))
4343

4444
output_makefile = ('--makefile' in sys.argv[1:])
4545
directories = tuple(i for i in sys.argv[1:] if i not in ('--makefile',))
@@ -60,7 +60,7 @@ def asm_op_names_key(val):
6060

6161
if name in dettmanprimes.keys():
6262
kind = 0
63-
limbwidth, n, prime = dettmanprimes[name]
63+
limbwidth, n, last_reduction, prime = dettmanprimes[name]
6464

6565
elif name in saturatedsolinasprimes.keys():
6666
kind = 1
@@ -113,8 +113,8 @@ def is_small(val):
113113
if kind == 0:
114114
binary = 'src/ExtractionOCaml/dettman_multiplication'
115115
binary_descr = 'Dettman Multiplication'
116-
limbwidth, _n, _prime = dettmanprimes[name]
117-
invocation = ' '.join([binary, name, '64', n, limbwidth, shlex.quote(prime), op, '--no-wide-int', '--shiftr-avoid-uint1'] + [item for fname in fnames for item in ('--hints-file', shlex.quote(fname))])
116+
limbwidth, _n, last_reduction, _prime = dettmanprimes[name]
117+
invocation = ' '.join([binary, name, '64', n, limbwidth, last_reduction, shlex.quote(prime), op, '--no-wide-int', '--shiftr-avoid-uint1'] + [item for fname in fnames for item in ('--hints-file', shlex.quote(fname))])
118118
elif kind == 1:
119119
binary = 'src/ExtractionOCaml/solinas_reduction'
120120
binary_descr = 'Saturated Solinas'

0 commit comments

Comments
 (0)