• Paul Eggert's avatar
    Speed up % and mod with fixnum denom · a050cf80
    Paul Eggert authored
    * src/data.c (integer_remainder): New function.  When the
    numerator is a bignum and the denominator is small, this function
    uses mpz_tdiv_ui, which should be faster than mpz_tdiv_r.
    (Frem, Fmod): Use it.
    a050cf80