Open czurnieden opened 5 months ago
Eases the work quite a bit if the error comes from deep inside a recursive function.
Found it very useful while debugging the fast-radix-conversion at the upper limit of LTM and had to add higher Toom-Cook functions (4 - 7) to avoid waiting a week to get the result. (One MP_OVF
had the reason that mp_add
adds an extra limb unconditionally, so the maximum number is 2^((MP_MAX_DIGIT_COUNT - 2)*MP_DIGIT_BIT)
)
Ah, the first typo has already been found :-(
This adds a compile-time-optional macro that inserts a line to print out the filename, line-number, and function to
stderr
before all of thegoto LTM_ERR;
instances and allreturn err;
iferr != MP_OKAY
.