diff options
author | Ben Laurie <ben@links.org> | 2014-05-31 18:20:03 +0100 |
---|---|---|
committer | Ben Laurie <ben@links.org> | 2014-06-01 15:31:27 +0100 |
commit | 5efa13ca7ebb78b5e69ae8a1786a296a26822129 (patch) | |
tree | cb01e190f058709135fb9730e11478fb8409cb11 /apps | |
parent | 8927c2786d25c90566a2e7eb96b25b2c0a3ae4ab (diff) |
Add option to run all prime tests.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/speed.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/speed.c b/apps/speed.c index 00a7f1906f..08165651be 100644 --- a/apps/speed.c +++ b/apps/speed.c @@ -1018,6 +1018,11 @@ int MAIN(int argc, char **argv) prime_doit[D_PRIME_TRIAL_DIVISION_RETRY] = 1; else if (strcmp(*argv,"prime-coprime") == 0) prime_doit[D_PRIME_COPRIME] = 1; + else if (strcmp(*argv,"prime") == 0) + { + for (i=0; i < PRIME_NUM; i++) + prime_doit[i]=1; + } else { BIO_printf(bio_err,"Error: bad option or value\n"); |