diff options
| author | J08nY | 2017-04-18 22:26:06 +0200 |
|---|---|---|
| committer | J08nY | 2017-04-18 22:26:06 +0200 |
| commit | c9541b5fcc3d3a7b798ae1be2f5972ad2a5c3061 (patch) | |
| tree | 0c891b0f259a6c0d0c13b0f3ddd434c5ed6d144c /src/invalid | |
| parent | 368c1643ceb08f6a9e56e4635d0791c61c8fb4e8 (diff) | |
| download | ecgen-c9541b5fcc3d3a7b798ae1be2f5972ad2a5c3061.tar.gz ecgen-c9541b5fcc3d3a7b798ae1be2f5972ad2a5c3061.tar.zst ecgen-c9541b5fcc3d3a7b798ae1be2f5972ad2a5c3061.zip | |
Load modular polynomial db in main thread
Diffstat (limited to 'src/invalid')
| -rw-r--r-- | src/invalid/invalid.c | 4 | ||||
| -rw-r--r-- | src/invalid/invalid_thread.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/invalid/invalid.c b/src/invalid/invalid.c index 90e0edc..20a7063 100644 --- a/src/invalid/invalid.c +++ b/src/invalid/invalid.c @@ -2,10 +2,10 @@ * ecgen, tool for generating Elliptic curve domain parameters * Copyright (C) 2017 J08nY */ -#include <io/config.h> #include "invalid.h" #include "exhaustive/exhaustive.h" #include "invalid_thread.h" +#include "io/config.h" #include "io/output.h" #include "math/curve.h" #include "math/equation.h" @@ -212,7 +212,7 @@ static size_t invalid_curves_threaded(curve_t *curve, config_t *cfg, for (size_t i = 0; i < cfg->threads; ++i) { pari_thread_alloc(&pari_threads[i], cfg->thread_memory, - (GEN)&threads[i]); + (GEN)&threads[i]); threads[i].pari_thread = &pari_threads[i]; threads[i].original_curve = curve; diff --git a/src/invalid/invalid_thread.h b/src/invalid/invalid_thread.h index 869018a..d8c1b76 100644 --- a/src/invalid/invalid_thread.h +++ b/src/invalid/invalid_thread.h @@ -15,7 +15,7 @@ typedef enum { STATE_FREE, STATE_GENERATING, STATE_GENERATED } state_e; typedef struct { - struct pari_thread* pari_thread; + struct pari_thread *pari_thread; curve_t *original_curve; size_t nprimes; pari_ulong *primes; |
