Re: svn commit: r272207 - in head/games: factor primes

2014-09-30 Thread Bruce Evans
On Mon, 29 Sep 2014, John Baldwin wrote: On Saturday, September 27, 2014 06:00:28 AM Colin Percival wrote: On 09/27/14 05:52, John Baldwin wrote: On Saturday, September 27, 2014 09:00:39 AM Colin Percival wrote: #defineBIG ULONG_MAX /* largest value will sieve */

Re: svn commit: r272207 - in head/games: factor primes

2014-09-29 Thread John Baldwin
On Saturday, September 27, 2014 06:00:28 AM Colin Percival wrote: On 09/27/14 05:52, John Baldwin wrote: On Saturday, September 27, 2014 09:00:39 AM Colin Percival wrote: #define BIG ULONG_MAX /* largest value will sieve */ Should this be UINT64_MAX (or however that

svn commit: r272207 - in head/games: factor primes

2014-09-27 Thread Colin Percival
Author: cperciva Date: Sat Sep 27 09:00:38 2014 New Revision: 272207 URL: http://svnweb.freebsd.org/changeset/base/272207 Log: Switch primes(6) from using unsigned long to using uint64_t. This fixes 'limited range of type' warnings about comparisons on 32-bit systems, and allows 32-bit

Re: svn commit: r272207 - in head/games: factor primes

2014-09-27 Thread Colin Percival
On 09/27/14 05:52, John Baldwin wrote: On Saturday, September 27, 2014 09:00:39 AM Colin Percival wrote: #define BIG ULONG_MAX /* largest value will sieve */ Should this be UINT64_MAX (or however that is spelled) instead of ULONG_MAX now? (or is it even still used?

Re: svn commit: r272207 - in head/games: factor primes

2014-09-27 Thread Bruce Evans
On Sat, 27 Sep 2014, Colin Percival wrote: Log: Switch primes(6) from using unsigned long to using uint64_t. This fixes 'limited range of type' warnings about comparisons on 32-bit systems, and allows 32-bit systems to compute the full range of primes. Since it no longer pretends to