• Paul Eggert's avatar
    Export converting mpz to [u]intmax · 84f39d33
    Paul Eggert authored
    This refactoring will help improve timestamp handling later
    (Bug#32902).
    * src/bignum.c (mpz_set_uintmax): Move to bignum.h,
    and make inline.
    (mpz_set_uintmax_slow): Now extern.
    (mpz_to_intmax, mpz_to_uintmax): New functions, with
    implementation taken from the old bignum_to_intmax
    and bignum_to_uintmax.
    (bignum_to_intmax, bignum_to_uintmax): Use them.
    84f39d33
bignum.h 2.59 KB