ncw / gmp

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

Extra int #2

Closed gijsbers closed 7 years ago

gijsbers commented 7 years ago

This branch provides extra routines from the C GMP library to Go, both for convenience and speed. Calls to cgo are expensive (hundreds of nanoseconds per call). The benefit of the new routines is that often they allow to reduce the number of cgo calls made. Everything is tested and benchmarks illustrate the performance difference.

ncw commented 7 years ago

I've merged that now - thank you very much for your excellent contribution.

I squashed a few of the commits together.

I've also modernised the travis build so it does a better job of testing stuff and code quality in general.

Thank you very much for your contribution

Nick