I am trying to do modular exponentiation of integers with a very large modulus using repeated squaring (in my case, the power is always 2, so I believe this is the most efficient way). Thanks to the good property of my module, the computational remainder is cheap; the hard part is multiplication.
I am currently running GMP on the Intel Core 2 Quad. I would like to effectively use the four processor cores, but GMP does not scale in SMP environments, so I'm looking for an alternative arithmetic library of arbitrary precision. I found several libraries for parallel computing on matrices, but I really need a library for integers.
Is there what I'm looking for?
source share