Skip to content

Commit

Permalink
Disable part of Miller loop test for platforms without enough memory
Browse files Browse the repository at this point in the history
  • Loading branch information
samkumar committed Mar 2, 2020
1 parent 4cd0851 commit fb46912
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_bls12_381.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ extern "C" {
#if defined(__ARM_ARCH_6M__)
constexpr int few_iters = 3;
constexpr int std_iters = 10;
constexpr int many_iters = 100;
constexpr int many_iters = 10000;
#else
constexpr int few_iters = 10;
constexpr int std_iters = 1000;
Expand Down Expand Up @@ -2156,6 +2156,7 @@ const char* test_pairing_bilinearity(void) {
}

const char* test_pairing_miller(void) {
#if !defined(__ARM_ARCH_6M__) // Not enough memory on this platform
for (int i = 0; i != std_iters; i++) {
G1 a;
G2 b;
Expand All @@ -2180,6 +2181,7 @@ const char* test_pairing_miller(void) {
return "FAIL (prepared vs. affine)";
}
}
#endif

for (int i = 0; i != std_iters; i++) {
G1 a;
Expand Down

0 comments on commit fb46912

Please sign in to comment.