ncw / gmp

Go language interface to GMP - GNU Multiprecision Library (golang)
BSD 3-Clause "New" or "Revised" License
117 stars 26 forks source link

what is the prober method to convert big.int from gmp to big.int from "math/big" #13

Open msh2050 opened 2 years ago

msh2050 commented 2 years ago

I get Cannot use 'nouse.FastDoubling(n)' (type "github.com/ncw/gmp".Int) as the type "math/big".Int

this will happen if you want to import from another package...

msh2050 commented 2 years ago

after some tests I think the fastest method is to use :

        bigmath := new(big.Int)
    bigmath = bigmath.SetBytes(gmp.Bytes())