Re: tunefat: run-time vs. compile-time constant thresholds

2012-04-30 Thread bodrato
Ciao, Il Ven, 27 Aprile 2012 12:47 pm, Torbjorn Granlund ha scritto: bodr...@mail.dm.unipi.it writes: #define ABOVE_THRESHOLD(size,thresh) \ ((thresh) == 0\ || ((thresh) != MP_SIZE_T_MAX

Re: GMP library (factorial, binomial, perfect power)

2012-04-30 Thread bodrato
Ciao, Il Lun, 23 Aprile 2012 7:13 pm, bodr...@mail.dm.unipi.it ha scritto: we should probably add also a general multi-factorial function We have it now. It is a simple function, but it should be fast enough. The new function is mpz_mfac_uiui(r, n, m). mpz_mfac_uiui(r, n, 1), sets r = n!