It may be possible to compute directly with a and b, skipping GMP altogether. I.e., use a mixed logarithm representation of your quantities! -- Torbjörn Please encrypt, key id 0xC8601622