summaryrefslogtreecommitdiffstats
path: root/games/factor
Commit message (Collapse)AuthorAgeFilesLines
* Final step of eliminating the "games" distribution: Merge src/gamescperciva2015-10-024-540/+0
| | | | | | | | | (or what's left of it, at least) into src/usr.bin. This change will not be MFCed. Discussed at: EuroBSDCon 2014 Committed from: EuroBSDCon 2015
* Add META_MODE support.sjg2015-06-131-0/+19
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge from head@274682sjg2014-11-192-3/+9
| |\ | |/ |/|
| * Updated dependenciessjg2014-05-161-0/+1
| |
| * Merge from headsjg2014-05-081-1/+1
| |\
| * | Updated dependenciessjg2013-03-111-0/+1
| | |
| * | Updated dependenciessjg2013-02-161-2/+0
| | |
| * | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+20
| | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | Update factor for changes to types in primes, which is a dependency.sbruno2014-09-271-1/+2
| | | | | | | | | | | | Fixes build-fail on mips32 introduced at 272207.
* | | Switch primes(6) from using unsigned long to using uint64_t. This fixescperciva2014-09-271-2/+1
| | | | | | | | | | | | | | | 'limited range of type' warnings about comparisons on 32-bit systems, and allows 32-bit systems to compute the full range of primes.
* | | Correctly enumerate primes between 4295098369 and 3825123056546413050.cperciva2014-09-261-1/+7
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prior to this commit, primes(6) relied solely on sieving with primes up to 65537, with the effect that composite numbers which are the product of two non-16-bit primes would be incorrectly identified as prime. For example, # primes 1099511627800 1099511627820 would output 1099511627803 1099511627807 1099511627813 when in fact only the first of those values is prime. This commit adds strong pseudoprime tests to validate the candidates which pass the initial sieving stage, using bases of 2, 3, 5, 7, 11, 13, 17, 19, and 23. Thanks to papers from C. Pomerance, J.L. Selfridge, and S.S. Wagstaff, Jr.; G. Jaeschke; and Y. Jiang and Y. Deng, we know that the smallest value which passes these tests is 3825123056546413051. At present we do not know how many strong pseudoprime tests are required to prove primality for values larger than 3825123056546413050, so we force primes(6) to stop at that point. Reviewed by: jmg Relnotes: primes(6) now correctly enumerates primes up to 3825123056546413050 MFC after: 7 days Sponsored by: EuroBSDCon devsummit
* | Use src.opts.mk in preference to bsd.own.mk except where we need stuffimp2014-05-061-1/+1
|/ | | | from the latter.
* In games/factor/factor.c, fix a warning about a format string not beingdim2011-12-161-1/+1
| | | | | | a literal. MFC after: 1 week
* factor(6): Check return values of BN_* functions.uqs2010-12-201-4/+8
| | | | Coverity Prevent: CID 4862, 8771, 8772, 8773
* Drop advertising clause in manpages. It was done a long time agouqs2010-12-061-5/+1
| | | | | | for the source code. Discussed with: core
* Fix a performance bug in factor(6).fanf2009-11-261-21/+27
| | | | | | | | | | | | | | | | Check if large factor is prime before applying Pollard's algorithm; fixes "factor 2147483647111311". Increase base if p-1 algorithm reaches 1; fixes "factor 99999999999991". Testcases from David A Bagley <bagleyd@tux.org>. Fixes from Joseph Myers <jsm@NetBSD.org>. Problem rediscovered by an attempt to factor my phone number. A few other incidental fixes: correct a couple of factually incorrect comments; use ident string macros; move from 4-clause to 3-clause BSD licence (University of California copyright). Obtained from: NetBSD
* Reimplementation of world/kernel build options. For details, see:ru2006-03-171-1/+3
| | | | | | | | http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html The src.conf(5) manpage is to follow in a few days. Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine)
* Enforce style.Makefile(5).trhodes2005-04-221-1/+1
| | | | Glanced at by: ru (some time ago).
* NOCRYPT -> NO_CRYPTru2004-12-211-1/+1
|
* Fixed style of DPADD and LDADD assignments as per style.Makefile(5).ru2004-02-051-2/+2
|
* Don't check for the existance of src/crypto/ for building items thatmarkm2003-07-241-1/+1
| | | | | may contain crypto. The days of ITAR paranoia are over, and the simple macro tests that remain are sufficient.
* add a NOCRYPT check alongside the NO_OPENSSL check.des2003-05-191-1/+1
| | | | Approved by: re (scottl)
* mdoc(7) police: sweep.ru2002-11-291-18/+14
|
* Mdocify and fix a load of errors dating back to the dawn of time.fanf2002-10-091-58/+65
| | | | | | Don't mention hard limits for factor(6) since it now has bignum support. Obtained from: NetBSD (mdoc only -- their man page is still mostly wrong)
* Factorize bignums using the Pollard Rho algorithm. The code comesfanf2002-10-092-22/+197
| | | | | | | | | | | from NetBSD, altered to retain the FreeBSD -h feature and various stylistic improvements and avoid regressions. In the absence of OpenSSL (and therefore bignums) the old code is used. PR: 43831 Reviewed by: kris, markm, obrien Obtained from: NetBSD MFC after: 2 weeks
* Style fixes to: #include ordering; use const and static; ANSI functions;fanf2002-10-091-37/+21
| | | | | | | | | various usage synopses; bogus and/or unnecessary casting; exit values; use LINE_MAX instead of magic numbers; declare extern variables in a header; add $FreeBSD$ where missing. Reviewed by: markm, obrien Obtained from: NetBSD | fanf
* Remove __Pimp2002-02-181-2/+2
| | | | | | Remove __STDC__ (which means we now use stdarg rather than vararg) Remove register Remove main prototype
* Correct a typo: numtiple -> multiple.roam2001-10-241-1/+1
| | | | | | PR: 31474 Submitted by: Eric Yu <ericyu@mail2000.com.tw> MFC after: 1 week
* Remove whitespace at EOL.dd2001-07-151-2/+2
|
* - Backout botched attempt to intoduce MANSECT feature.ru2001-03-261-0/+1
| | | | - MAN[1-9] -> MAN.
* Set the default manual section for games/ to 6.ru2001-03-201-1/+1
|
* copyright/sccsid/rcsid cleanup.billf1999-11-301-1/+5
|
* $Id$ -> $FreeBSD$peter1999-08-271-1/+1
|
* Minor adjustments to prior commits:imp1999-01-071-5/+7
| | | | | | | | o break at end of sentences o add $id$ o change date Noticed by: the ever watchful bde
* Fix printf errors in the hflag case.imp1999-01-062-11/+11
| | | | | | | Fix old bug with bogus casing to (long). Document the true limits of factor on 64-bit architectures. Submitted by: bde
* added -h flag to allow for hexidecimal output.imp1999-01-062-10/+20
| | | | | | | | | | Use '0' for base rather than 10 to allow for more flexible input bases. Inspired by changes in PR 7402, but mostly redone by me to get past bde filter. Submitted by: Timo J. Rinne PR: 7402
* Wargh! Who went and changed all the getopt() comparisons from -1 tojkh1998-03-011-1/+1
| | | | | | | EOF? The getopt(3) manpage clearly states that the return value is *-1*, not EOF! Besides, getopt(3) isn't reading from a file. :) Noticed-while: merging to 2.2 (where this is correct).
* Remove so-called revoke, this game not installed sguidache1997-09-011-4/+0
|
* Change games from setuid games to setgid games.eivind1997-09-011-0/+4
| | | | | Reviewed by: maybe@yes.no Obtained from: OpenBSD (mostly deraadt@openbsd.org)
* factor.6, not factor.0 (crept in from 4.4Lite2)peter1997-03-121-1/+1
|
* Merge from Lite2 (oops, nearly forgot these ones)peter1997-03-111-1/+2
|
* This commit was generated by cvs2svn to compensate for changes in r23704,peter1997-03-111-1/+1
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Import some CSRG 4.4BSD-Lite2 gamespeter1997-03-112-2/+3
| |
* | Remove trailing whitespace.rgrimes1995-05-301-1/+1
|/
* Bring in the 4.4 Lite games directory, modulo man page changes and segregationjkh1994-09-043-0/+327
of the x11 based games. I'm not going to tag the originals with bsd_44_lite and do this in two stages since it's just not worth it for this collection, and I've got directory renames to deal with that way. Bleah. Submitted by: jkh
OpenPOWER on IntegriCloud