Searched refs:lshift1 (Results 1 - 5 of 5) sorted by relevance

/netbsd-current/external/lgpl3/gmp/dist/tests/mpf/
H A Dt-eq.c106 int hibits, lshift1, lshift2; local
128 lshift1 = mpz_get_ui (ds);
129 mpf_mul_2exp (a, a, lshift1 + 1);
130 mpf_mul_2exp (b, b, lshift1 + 1);
145 if (mpf_eq (a, b, lshift1 + hibits) == 0 ||
146 mpf_eq (b, a, lshift1 + hibits) == 0)
148 dump_abort (a, b, lshift1 + hibits, lshift1, lshift2, hibits, 1, test);
151 if (mpf_eq (a, b, lshift1 + hibits + xtra) != 0 ||
152 mpf_eq (b, a, lshift1
177 dump_abort(mpf_t a, mpf_t b, int cmp_prec, int lshift1, int lshift2, int hibits, int want, long test) argument
[all...]
/netbsd-current/crypto/external/bsd/openssl.old/dist/test/
H A Dbntests.pl39 my $lshift1 = bn($s{'LShift1'});
41 return if $lshift1 == $a->bmul(2);
H A Dbntest.c1303 BIGNUM *a = NULL, *lshift1 = NULL, *zero = NULL, *ret = NULL; local
1308 || !TEST_ptr(lshift1 = getBN(s, "LShift1"))
1319 || !equalBN("A + A", lshift1, ret)
1321 || !equalBN("A * 2", lshift1, ret)
1322 || !TEST_true(BN_div(ret, remainder, lshift1, two, ctx))
1326 || !equalBN("A << 1", lshift1, ret)
1327 || !TEST_true(BN_rshift1(ret, lshift1))
1329 || !TEST_true(BN_rshift1(ret, lshift1))
1334 if (!TEST_true(BN_set_bit(lshift1, 0))
1335 || !TEST_true(BN_div(ret, NULL /* rem */ , lshift1, tw
[all...]
/netbsd-current/crypto/external/bsd/openssl/dist/test/
H A Dbntests.pl39 my $lshift1 = bn($s{'LShift1'});
41 return if $lshift1 == $a->bmul(2);
H A Dbntest.c1307 BIGNUM *a = NULL, *lshift1 = NULL, *zero = NULL, *ret = NULL; local
1312 || !TEST_ptr(lshift1 = getBN(s, "LShift1"))
1323 || !equalBN("A + A", lshift1, ret)
1325 || !equalBN("A * 2", lshift1, ret)
1326 || !TEST_true(BN_div(ret, remainder, lshift1, two, ctx))
1330 || !equalBN("A << 1", lshift1, ret)
1331 || !TEST_true(BN_rshift1(ret, lshift1))
1333 || !TEST_true(BN_rshift1(ret, lshift1))
1338 if (!TEST_true(BN_set_bit(lshift1, 0))
1339 || !TEST_true(BN_div(ret, NULL /* rem */ , lshift1, tw
[all...]

Completed in 189 milliseconds