#17819: Use uintmax_t for Integer.divisors
----------------------------------+------------------------
Reporter: jdemeyer | Owner:
Type: enhancement | Status: new
Priority: minor | Milestone: sage-6.6
Component: c_lib | Resolution:
Keywords: | Merged in:
Authors: Jeroen Demeyer | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
----------------------------------+------------------------
Description changed by jdemeyer:
Old description:
> The `divisors` method of `Integer` is implemented using `long long` if
> possible. However, it would be better to use `uintmax_t` for this, which
> is at least as large as `long long`. Another advantage is that we no
> longer need the `mpz_set_longlong()` functions from `c_lib`.
New description:
The `divisors` method of `Integer` is implemented using `long long` if
possible. However, it would be better to use `uintmax_t` for this, which
is at least as large as `long long`. Another advantage is that we no
longer need the `mpz_set_longlong()` functions from `c_lib`. Instead we
can use the standard MPIR function `mpz_set_ux`.
--
--
Ticket URL: <http://trac.sagemath.org/ticket/17819#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.