Changes between Version 1 and Version 21 of Ticket #17819


Ignore:
Timestamp:
03/01/15 09:42:25 (7 years ago)
Author:
jdemeyer
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17819

    • Property Status changed from new to needs_work
    • Property Summary changed from Use uintmax_t for Integer.divisors to Use unsigned long for Integer.divisors
    • Property Dependencies changed from to #17794, #10257
    • Property Branch changed from to u/jdemeyer/ticket/17819
    • Property Commit changed from to 3bc79b71b49aa37b7307174f29e228a6c2bc81f6
  • Ticket #17819 – Description

    v1 v21  
    1 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`.
     1The `divisors` method of `Integer` is implemented using `long long` if possible. However, it would be better to use `unsigned long` for this. One advantage is that we no longer need the `mpz_set_longlong()` functions from `c_lib`. This will also be faster for small inputs on 32-bit systems.