mpf_fits_u*_p treatment of negative values greater than -1.0
vincent at vinc17.net
Fri Nov 22 12:34:19 UTC 2013
On 2013-11-22 13:17:04 +0100, Marc Glisse wrote:
> On Fri, 22 Nov 2013, sisyphus1 at optusnet.com.au wrote:
> >mpf_fits_ulong_p(), mpf_fits_uint_p() and mpf_fits_ushort_p() all return
> >false for negative values greater than -1.
> >I believe they should return true for such values - as happens if I first
> >call mpf_trunc().
> Works for me with the main repository. Looks like Marco's patch:
> wasn't backported to the gmp-5.1 branch.
I suppose that this comes from this discussion:
(MPFR has been fixed following this discussion.)
Vincent Lefèvre <vincent at vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
More information about the gmp-bugs