Cleanup mpz_out_str in tests

2020-03-25 Thread Seth Troisi
This cleans up a number of printf(...) mpz_out_str(stdout, 10/16, var); printf(...); and replaces them with gmp_printf(...%Zd..., var); In tests/mpz/t-scan.c "0x" was replaced with "%XZX which is "0X" In tests/rand/statlib.c (tests/rand/statlib and findlc seem to not compile) I added a space to

tune/speed is up to date

2020-03-25 Thread Seth Troisi
I'm coming from Bazel and don't have a lot of experience with Make so please excuse me if there's a much simpler answer I'm just not seeing. tune/speed seems to be statically linked, this makes sense, BUT it makes testing a little harder because this no longer works. $ vim mpz/nextprimes.c $ make

Re: Moving LOOP_ON_SIEVE_* macros to gmp-impl.h

2020-03-25 Thread Seth Troisi
I added n_to_bit_start and after some misadventure with mistyping I got it working. One quick question: in this code block should the SWING_ON_PRIME be indented? LOOP_ON_SIEVE_BEGIN (prime, ...); SH_SWING_A_PRIME (prime, ...); LOOP_ON_SIEVE_END; One thing I don't like about the patch is that mos