diff options
| author | Mattias Andrée <maandree@kth.se> | 2016-04-27 00:39:31 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2016-04-27 00:39:31 +0200 |
| commit | eb13267f82e848d9a9b38a2791e5c7008bf8d157 (patch) | |
| tree | 78291e85edd590b0d429a0dab611b85c621d97d7 /bench/libtfm.h | |
| parent | zstr_length.3: add missing blank space (diff) | |
| download | libzahl-eb13267f82e848d9a9b38a2791e5c7008bf8d157.tar.gz libzahl-eb13267f82e848d9a9b38a2791e5c7008bf8d157.tar.bz2 libzahl-eb13267f82e848d9a9b38a2791e5c7008bf8d157.tar.xz | |
zstr: add new parameter, n: the known limit out the length of the output
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'bench/libtfm.h')
| -rw-r--r-- | bench/libtfm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bench/libtfm.h b/bench/libtfm.h index 00e175f..1d8ade3 100644 --- a/bench/libtfm.h +++ b/bench/libtfm.h @@ -83,7 +83,7 @@ zunsetup(void) #define zmodpowu(r, a, b, m) (fp_set_int(_b, b), fp_exptmod(a, _b, m, r)) #define zsets(a, s) fp_read_radix(a, s, 10) #define zstr_length(a, b) (fp_radix_size(a, b, &_tmp), _tmp) -#define zstr(a, s) fp_toradix(a, s, 10) +#define zstr(a, s, n) ((void)n, fp_toradix(a, s, 10)) #define zptest(w, a, t) fp_isprime_ex(a, t) /* Note, the witness is not returned. */ #define zload(a, s) fp_read_signed_bin(a, (unsigned char *)s, _tmp) #define zdiv(r, a, b) fp_div(a, b, r, 0) |
