ref: 8703e529a235c8315b6a25d5242a134456da0209
parent: 3e94feff3ad92eb18eea90696b6da15daf79d059
author: Ori Bernstein <ori@eigenstate.org>
date: Fri Mar 30 20:00:47 EDT 2018
Comment out unused tests (oops)
--- a/lib/crypto/test/ctbig.myr
+++ b/lib/crypto/test/ctbig.myr
@@ -24,18 +24,18 @@
"5192296858534810493479828944327220",
"75557863709417659441940")
}],
- [.name="div", .fn={ctx
- do(ctx, div,
- "75557863709417659441940",
- "392318858376010676506814412592879878824393346033951606800",
- "5192296858534810493479828944327220")
- }],
- [.name="mod", .fn={ctx
- do(ctx, mod,
- "75557863709417659441940",
- "392318858376010676506814412592879878824393346033951606800",
- "5192296858534810493479828944327220")
- }],
+ //[.name="div", .fn={ctx
+ // do(ctx, div,
+ // "75557863709417659441940",
+ // "392318858376010676506814412592879878824393346033951606800",
+ // "5192296858534810493479828944327220")
+ //}],
+ //[.name="mod", .fn={ctx
+ // do(ctx, mod,
+ // "75557863709417659441940",
+ // "392318858376010676506814412592879878824393346033951606800",
+ // "5192296858534810493479828944327220")
+ //}],
//[.name="modpow", .fn={ctx
// r = do(ctx, crypto.ctsub,
// "5192296858459252629770411284885280"
@@ -46,20 +46,20 @@
][:])
}
-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 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 do = {ctx, op, estr, astr, bstr
var r, a, ai, b, bi, e, ei