I've been trying for days to install GMP library under MINGW. I have been using for weeks __uint128_t
with gcc under a linux64 bit environment, then ported the same program under GMP and mingw (32 bit version). I used mpz_class
integers instead of __uint128_t
. Then I started my new program and...! With __uint128_t
and 64 bit it takes 16 minutes to complete, with GMP and MINGW it takes 91 HOURS!!!
What should I do to speed up things a bit? Is there any faster way to do 128 bit integer math under a 32 bit environment? I don't need more than 128 bit, so is there any way to tell GMP "ok, I just need 128 bits, keep presicion fixed but please GO FASTER"?