diff options
| author | J08nY | 2017-10-14 13:51:47 +0200 |
|---|---|---|
| committer | J08nY | 2017-10-14 13:51:47 +0200 |
| commit | 4dece41c236a7e92ab04205e8b6e076a2514a528 (patch) | |
| tree | 81d01f854049a588cdd510deda3fc08a8f2e08c0 /src/misc | |
| parent | 80514f24dae8352f39f9a9e49c0d9afbd8edd432 (diff) | |
| download | ecgen-4dece41c236a7e92ab04205e8b6e076a2514a528.tar.gz ecgen-4dece41c236a7e92ab04205e8b6e076a2514a528.tar.zst ecgen-4dece41c236a7e92ab04205e8b6e076a2514a528.zip | |
Format and update README.
Diffstat (limited to 'src/misc')
| -rw-r--r-- | src/misc/config.h | 12 | ||||
| -rw-r--r-- | src/misc/types.h | 4 |
2 files changed, 10 insertions, 6 deletions
diff --git a/src/misc/config.h b/src/misc/config.h index 0a534ef..2ad6736 100644 --- a/src/misc/config.h +++ b/src/misc/config.h @@ -48,7 +48,8 @@ typedef struct { bool random; /** @brief Whether the curves should have prime order. */ bool prime; - /** @brief Whether the curves should be generated as invalid, for some curve. */ + /** @brief Whether the curves should be generated as invalid, for some + * curve. */ bool invalid; /** @brief Whether the Complex Multiplication method should be used. */ bool cm; @@ -65,7 +66,8 @@ typedef struct { seed_e seed_algo; /** @brief What seed to use, if any, to generate the curves. */ char *seed; - /** @brief Whether the curves should be uniquely generated (one generator). */ + /** @brief Whether the curves should be uniquely generated (one generator). + */ bool unique; /** @brief What points to generate on the curves. */ struct points_s points; @@ -74,11 +76,13 @@ typedef struct { char *datadir; /** @brief How much memory to allocate for the PARI stack. */ unsigned long memory; - /** @brief How many threads to use, only useful for invalid generation(atm). */ + /** @brief How many threads to use, only useful for invalid generation(atm). + */ unsigned long threads; /** @brief How much memory to allocate for the PARI stack, per thread. */ unsigned long thread_memory; - /** @brief How long of a timeout interval, if any, to give to parameter generation. */ + /** @brief How long of a timeout interval, if any, to give to parameter + * generation. */ unsigned long timeout; /** @brief What output format to use. */ diff --git a/src/misc/types.h b/src/misc/types.h index 3cb3fd4..aecf207 100644 --- a/src/misc/types.h +++ b/src/misc/types.h @@ -118,7 +118,7 @@ typedef struct { * @param state The current generation state * @return state diff */ -#define GENERATOR(gen_name) \ +#define GENERATOR(gen_name) \ int gen_name(curve_t *curve, arg_t *args, offset_e state) typedef GENERATOR((*gen_f)); @@ -130,7 +130,7 @@ typedef GENERATOR((*gen_f)); * @param to * @return */ -#define UNROLL(unroll_name) \ +#define UNROLL(unroll_name) \ int unroll_name(curve_t *curve, pari_sp from, pari_sp to) typedef UNROLL((*unroll_f)); |
