PageRenderTime 32ms CodeModel.GetById 8ms RepoModel.GetById 0ms app.codeStats 0ms

/cln-1.3.2/tests/test_I_logandc1.cc

#
C++ | 14 lines | 12 code | 1 blank | 1 comment | 2 complexity | 5176738f83446afa47f75c4d2296b772 MD5 | raw file
Possible License(s): GPL-2.0
  1. #include "test_I.h"
  2. int test_I_logandc1 (int iterations)
  3. {
  4. int error = 0;
  5. int i;
  6. // Check against logand.
  7. for (i = iterations; i > 0; i--) {
  8. cl_I a = testrandom_I();
  9. cl_I b = testrandom_I();
  10. ASSERT2(logandc1(a,b) == logand(lognot(a),b), a,b);
  11. }
  12. return error;
  13. }