Re: TODO for 5.2 v3

2014-01-16 Thread Torbjorn Granlund
ni...@lysator.liu.se (Niels Möller) writes: Question is, when is it useful for our purposes? First example, mpn_sec_add_1: mp_limb_t mpn_sec_add_1 (mp_limb_t *rp, mp_limb_t *ap, mp_size_t n, mp_limb_t b, mp_ptr scratch) { scratch[0] = b; MPN_ZERO

Re: TODO for 5.2 v3

2014-01-15 Thread Marc Glisse
On Wed, 15 Jan 2014, Niels Möller wrote: Torbjorn Granlund t...@gmplib.org writes: The volatile qualifier makes sure the number of memory reads and memory writes remain unchanged from the source code. Question is, when is it useful for our purposes? First example, mpn_sec_add_1: mp_limb_t

Re: TODO for 5.2 v3

2014-01-13 Thread Niels Möller
bodr...@mail.dm.unipi.it writes: Ciao, Il Mar, 7 Gennaio 2014 4:58 pm, Niels Möller ha scritto: Here's a first patch adding a couple of other functions. Benchmarking and testing is missing (except that the sec_minvert tests still pass). Interesting... Another thing I was about to ask, but

Re: TODO for 5.2 v3

2014-01-07 Thread Niels Möller
Torbjorn Granlund t...@gmplib.org writes: * Make some other sec functions from Niels' list public? Here's a first patch adding a couple of other functions. Benchmarking and testing is missing (except that the sec_minvert tests still pass). One interface question: Return value of cnd_neg.

Re: TODO for 5.2 v3

2014-01-07 Thread Torbjorn Granlund
ni...@lysator.liu.se (Niels Möller) writes: Torbjorn Granlund t...@gmplib.org writes: * Make some other sec functions from Niels' list public? Here's a first patch adding a couple of other functions. Benchmarking and testing is missing (except that the sec_minvert tests still