3 int test_MI_recip (int iterations)
7 // Check against multiplication.
8 for (i = iterations; i > 0; i--) {
9 cl_I m = testrandom_I();
10 cl_modint_ring R = find_modint_ring(m);
11 cl_I ai = testrandom_I();
13 cl_MI a = R->canonhom(ai);
14 ASSERT2(a*R->recip(a) == R->one(), m,a);