Moving LOOP_ON_SIEVE_* macros to gmp-impl.h

2020-03-15 Thread Seth Troisi
Per Marco's comments in my prev_prime/next_prime patch I moved some of the primesieve macros and functions to gmp-impl.h LOOP_ON_SIEVE_BEGIN LOOP_ON_SIEVE_CONTINUE LOOP_ON_SIEVE_STOP LOOP_ON_SIEVE_END bit_to_n (renamed sieve_bit_to_n) id_to_n (renamedi sieve_id_to_n) n_to_bit (renamed sieve_n_to_b

Re: mpz_prevprime

2020-03-15 Thread Seth Troisi
On Sun, Mar 15, 2020 at 4:38 PM Marco Bodrato wrote: > Ciao, > > Il 2020-03-15 00:07 Seth Troisi ha scritto: > > New patch which is cleaned up and IMO ready to commit > > May I write a few more comments? > Always, my opinion about being ready is just that it's passed the bar of being good enough

Re: mpz_prevprime

2020-03-15 Thread Marco Bodrato
Ciao, Il 2020-03-15 00:07 Seth Troisi ha scritto: New patch which is cleaned up and IMO ready to commit May I write a few more comments? On Mon, Mar 9, 2020 at 5:15 PM Seth Troisi wrote: I also dislike the boiler plate of the macros but I didn't Those macros should probably be moved to