diff options
author | Damien George <damien.p.george@gmail.com> | 2014-03-08 15:04:54 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-03-08 15:04:54 +0000 |
commit | 5260810d70311b9baaea249ef4a8bcd80f56f5dc (patch) | |
tree | 226c085f1b6ea56b75fc17096927cf75a246451b /py/mpz.h | |
parent | fdf0da54360dbbf46dc761a9dfec6ac91dffae8e (diff) | |
download | micropython-5260810d70311b9baaea249ef4a8bcd80f56f5dc.tar.gz micropython-5260810d70311b9baaea249ef4a8bcd80f56f5dc.zip |
py: Wrap mpz float functions in MICROPY_ENABLE_FLOAT.
Diffstat (limited to 'py/mpz.h')
-rw-r--r-- | py/mpz.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -65,7 +65,9 @@ mpz_t *mpz_div(const mpz_t *lhs, const mpz_t *rhs); mpz_t *mpz_mod(const mpz_t *lhs, const mpz_t *rhs); machine_int_t mpz_as_int(const mpz_t *z); -machine_float_t mpz_as_float(const mpz_t *z); +#if MICROPY_ENABLE_FLOAT +mp_float_t mpz_as_float(const mpz_t *z); +#endif uint mpz_as_str_size(const mpz_t *z, uint base); char *mpz_as_str(const mpz_t *z, uint base); uint mpz_as_str_inpl(const mpz_t *z, uint base, char *str); |