http://benji3up2kxewkqfcq7buxk2xd6zwy3zggnurkrm3l4cvwy2iipvyyad.onion/mirrors/gmpdoc/Efficiency.html
But if for example an mpz_t contains a value that fits in an unsigned long there’s no
need to extract it and call a ui function, just use the regular mpz function. In-Place Operations ¶ mpz_abs , mpq_abs , mpf_abs , mpz_neg , mpq_neg and mpf_neg are fast when used for in-place operations like mpz_abs(x,x) , since in the current implementation only a single field
of x needs changing.