using GMP's algorithms in other projects

Vincent Diepeveen diep at xs4all.nl
Fri Aug 29 11:55:47 CEST 2008


Hey,

I read the question different.

Is it allowed to use the same algorithms?
    Answer = yes, there are no copyrights on software algorithms.

Is it allowed to use the code from GMP for that?
    Answer = yes, but if you do that then you must also publish your  
code.

In short do not cut and paste.

Thanks,
Vincent

On Aug 29, 2008, at 9:06 AM, Torbjorn Granlund wrote:

> "Kevin Sopp" <baraclese at googlemail.com> writes:
>
>   I'm working on a public domain c++ multi precision integer library.
>   I'm specifically interested in the subquadratic algorithm used to
>   convert strings to large integers. My question is, is it generally
>   allowed to use GMP's algorithms? While this is probably true for the
>   ones described in your documentation, is it true as well for the  
> ones
>   that exist only in code?
>
> If you write your code with the GMP code in the next window, I think
> your code might rightfully be seen as derivate work of GMP.
>
> But if you figure out some basic algorithm by reading the code, then
> reimplement the algorithm without referring to GMP code, your work is
> more likely to be independent.
>
> For the radix conversion algorithms, I think the best approach might
> be to read the description in the manual.
>
> (Note however that this list is about GMP, and not the right forum for
> discussing other bignum libraries.)
>
> -- 
> Torbjörn
> _______________________________________________
> gmp-discuss mailing list
> gmp-discuss at swox.com
> https://gmplib.org/mailman/listinfo/gmp-discuss
>
>



More information about the gmp-discuss mailing list