3 int test_I_power2p (int iterations)
8 for (i = iterations; i > 0; i--) {
9 uintL n = random32() % 1024;
11 ASSERT1(power2p(a) == n+1, n);
13 // Check against logcount.
14 for (i = iterations; i > 0; i--) {
15 cl_I a = testrandom_I();
17 ASSERT1(power2p(a) == (logcount(a) == 1 ? integer_length(a) : 0), a);