diff options
Diffstat (limited to 'src/array_mpfr.h')
-rw-r--r-- | src/array_mpfr.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/array_mpfr.h b/src/array_mpfr.h index 46bc54b..5994ddd 100644 --- a/src/array_mpfr.h +++ b/src/array_mpfr.h @@ -23,6 +23,7 @@ limitations under the License. #undef ARRAY_TYPENAME #undef ARRAY_FUNC #undef ARRAY_VAL_TYPE +#undef ARRAY_VAL_INIT #undef ARRAY_VAL_FREE #undef ARRAY_VAL_SET #undef ARRAY_VAL_CPY @@ -39,6 +40,8 @@ limitations under the License. // type of values #define ARRAY_VAL_TYPE mpfr_t +// init +#define ARRAY_VAL_INIT(VAL, SIZE) mpfr_init(*(VAL)) // free #define ARRAY_VAL_FREE(VAL) mpfr_clear(VAL) // set values |