summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2018-04-08 01:47:25 -0700
committerOri Bernstein <ori@eigenstate.org>2018-04-08 01:47:31 -0700
commitf3742c89209e8675f1334481dbde694a5b9bd7ec (patch)
tree873e12e6ad3ec466c32a63bb50212e4ffd7281db
parent85e3adbca63041d3628e9f8d55d83aa34d084008 (diff)
downloadmc-f3742c89209e8675f1334481dbde694a5b9bd7ec.tar.gz
Remove dead code/comments.
-rw-r--r--lib/crypto/test/ctbig.myr28
1 files changed, 1 insertions, 27 deletions
diff --git a/lib/crypto/test/ctbig.myr b/lib/crypto/test/ctbig.myr
index dcaa1d0..a87dcec 100644
--- a/lib/crypto/test/ctbig.myr
+++ b/lib/crypto/test/ctbig.myr
@@ -102,18 +102,6 @@ const main = {
"5192296858534810493479828944327220",
"75557863709417659441940")
}],
- //[.name="div", .fn={ctx
- // do2(ctx, div,
- // "75557863709417659441940",
- // "392318858376010676506814412592879878824393346033951606800",
- // "5192296858534810493479828944327220")
- //}],
- //[.name="mod", .fn={ctx
- // do2(ctx, mod,
- // "75557863709417659441940",
- // "392318858376010676506814412592879878824393346033951606800",
- // "5192296858534810493479828944327220")
- //}],
[.name="modpow-nop", .fn={ctx
do3(ctx, crypto.ctmodpow, Nbit,
"1231231254019581241243091223098123",
@@ -131,25 +119,11 @@ const main = {
][:])
}
-//const div = {r, a, b
-// var z
-//
-// z = crypto.ctzero(a.nbit)
-// crypto.ctdivmod(r, z, a, b)
-//}
-//
-//const mod = {r, a, b
-// var z
-//
-// z = crypto.ctzero(a.nbit)
-// crypto.ctdivmod(z, r, a, b)
-//}
-
const growmod0 = {r, a, b
crypto.growmod(r, a, 0, b)
}
-const dobool : (ctx : testr.ctx#, op : (a : crypto.ctbig#, b : crypto.ctbig# -> bool), nbit : std.size, e : bool, astr : byte[:], bstr : byte[:] -> void) = {ctx, op, nbit, e, astr, bstr
+const dobool = {ctx, op, nbit, e, astr, bstr
var r, a, ai, b, bi
r = crypto.ctzero(nbit)