[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## Re: [PATCH 1/2] Support arbitrarily-long numbers with GNU MP.

**From**: |
Jim Meyering |

**Subject**: |
Re: [PATCH 1/2] Support arbitrarily-long numbers with GNU MP. |

**Date**: |
Wed, 30 Jul 2008 16:36:12 +0200 |

Andreas Schwab <address@hidden> wrote:
>* Jim Meyering <address@hidden> writes:*
>
>*> James Youngman <address@hidden> wrote:*
>*>> Support arbitrarily-long numbers with GNU MP.*
>*>> * m4/gmp.m4: New file; adds cu_GMP, which detects GNU MP.*
>*>> * configure.ac: Use cu_GMP.*
>*>> * src/Makefile.am: Link factor against libgmp if available.*
>*>> * src/factor.c: Use GNU MP if it is available.*
>*>> (emit_factor, emit_ul_factor, factor_using_division,*
>*>> factor_using_pollard_rho, extract_factors_multi,*
>*>> sort_and_print_factors, free_factors): new functions*
>*>> for the arbitrary-precision implementation, taken from an example*
>*>> in GNU MP.*
>*>> (factor_wheel): Renamed; was called factor.*
>*>> (print_factors_single): Renamed; was called print_factors.*
>*>> (print_factors): New function, chooses between the single- and*
>*>> arbitrary-precision algorithms according to availability of GNU MP*
>*>> and the length of the number to be factored.*
>*>> (usage, main): New options --use-mp and --nouse-mp.*
>*>*
>*> What do you think of --mp and --no-mp instead?*
>
>* How about --bignum instead? IMHO this is more descriptive.*
I prefer --bignum, too. Thanks.