Niels,

> > Here are the division functions I had to re-implement on top of mini-gmp
> > (I know mpn_divrem is obsolete, but its interface is better suited for 
> > MPFR):
> 
> Do you need fraction limbs? From a quick look, it seems like you
> implemented that for mpn_divrem_1, but not for mpn_divrem and
> mpn_tdiv_qr?

currently we only need fraction limbs for mpn_divrem_1, but if one divides
say a 100-limb number by another 100-limb number and wants a 1000-limb
quotient, it would make sense to call mpn_divrem with 1000 fraction limbs
(currently we pad the numerator with 1000 zero limbs).

Paul
_______________________________________________
gmp-devel mailing list
gmp-devel@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-devel

Reply via email to