mpn_add or mpn_add_n+MPN_COPY+MPN_INCR_U ?

2014-06-14 Thread bodrato
Ciao, Looking at the code in mpn/generic/mul.c I've found lots of structures like the following: cy = mpn_add_n (prodp, prodp, ws, vn); MPN_COPY (prodp + vn, ws + vn, un); mpn_incr_u (prodp + vn, cy); that is logically equivalent to ASSERT_NOCARRY (mpn_add (prodp, ws, vn + un, prodp, vn));

Re: mpn_add or mpn_add_n+MPN_COPY+MPN_INCR_U ?

2014-06-14 Thread Niels Möller
bodr...@mail.dm.unipi.it writes: Looking at the code in mpn/generic/mul.c I've found lots of structures like the following: cy = mpn_add_n (prodp, prodp, ws, vn); MPN_COPY (prodp + vn, ws + vn, un); mpn_incr_u (prodp + vn, cy); that is logically equivalent to ASSERT_NOCARRY (mpn_add

Re: Segfaults during testing

2014-06-14 Thread Torbjörn Granlund
t...@gmplib.org (Torbjörn Granlund) writes: This function needs to be improved to avoid this silly recursion. I pushed an improved version. I'll try running the nightbuilds with much smaller stack size limit. Torbjörn Please encrypt, key id 0xC8601622