diff options
| author | Mattias Andrée <maandree@kth.se> | 2016-05-01 10:33:53 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2016-05-01 10:33:53 +0200 |
| commit | 5532b46827067fdfe3dfe35f114c57084c6f5717 (patch) | |
| tree | 03d778f90faf5921bff8e50ca1ac8d5a7806b10d /src/internals.h | |
| parent | zdiv.3: rationale for truncated division (diff) | |
| download | libzahl-5532b46827067fdfe3dfe35f114c57084c6f5717.tar.gz libzahl-5532b46827067fdfe3dfe35f114c57084c6f5717.tar.bz2 libzahl-5532b46827067fdfe3dfe35f114c57084c6f5717.tar.xz | |
Constants do not need dynamic memory
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/internals.h')
| -rw-r--r-- | src/internals.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/internals.h b/src/internals.h index 407f4b7..841346f 100644 --- a/src/internals.h +++ b/src/internals.h @@ -51,15 +51,15 @@ X(libzahl_tmp_ptest_n4, 0) #define LIST_CONSTS\ - X(libzahl_const_1e19, zsetu, 10000000000000000000ULL) /* The largest power of 10 < 2⁶⁴. */\ - X(libzahl_const_1, zsetu, 1)\ - X(libzahl_const_2, zsetu, 2)\ - X(libzahl_const_4, zsetu, 4) + X(0, libzahl_const_1e19, zsetu, 10000000000000000000ULL) /* The largest power of 10 < 2⁶⁴. */\ + X(1, libzahl_const_1, zsetu, 1)\ + X(2, libzahl_const_2, zsetu, 2)\ + X(3, libzahl_const_4, zsetu, 4) #define X(x, s) extern z_t x; LIST_TEMPS #undef X -#define X(x, f, v) extern z_t x; +#define X(i, x, f, v) extern z_t x; LIST_CONSTS #undef X |
