aboutsummaryrefslogtreecommitdiff
path: root/games/factor
Commit message (Collapse)AuthorAgeFilesLines
* Final step of eliminating the "games" distribution: Merge src/gamesColin Percival2015-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 Notes: svn path=/head/; revision=288485
* Add META_MODE support.Simon J. Gerraty2015-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 Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge from head@274682Simon J. Gerraty2014-11-192-3/+9
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=274683
| * Updated dependenciesSimon J. Gerraty2014-05-161-0/+1
| | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * Merge from headSimon J. Gerraty2014-05-081-1/+1
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265720
| * | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+20
| | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | Update factor for changes to types in primes, which is a dependency.Sean Bruno2014-09-271-1/+2
| | | | | | | | | | | | | | | | | | | | | Fixes build-fail on mips32 introduced at 272207. Notes: svn path=/head/; revision=272210
* | | Switch primes(6) from using unsigned long to using uint64_t. This fixesColin Percival2014-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. Notes: svn path=/head/; revision=272207
* | | Correctly enumerate primes between 4295098369 and 3825123056546413050.Colin Percival2014-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 Notes: svn path=/head/; revision=272166
* | Use src.opts.mk in preference to bsd.own.mk except where we need stuffWarner Losh2014-05-061-1/+1
|/ | | | | | | from the latter. Notes: svn path=/head/; revision=265420
* In games/factor/factor.c, fix a warning about a format string not beingDimitry Andric2011-12-161-1/+1
| | | | | | | | | a literal. MFC after: 1 week Notes: svn path=/head/; revision=228596
* factor(6): Check return values of BN_* functions.Ulrich Spörlein2010-12-201-4/+8
| | | | | | | Coverity Prevent: CID 4862, 8771, 8772, 8773 Notes: svn path=/head/; revision=216598
* Drop advertising clause in manpages. It was done a long time agoUlrich Spörlein2010-12-061-5/+1
| | | | | | | | | for the source code. Discussed with: core Notes: svn path=/head/; revision=216239
* Fix a performance bug in factor(6).Tony Finch2009-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 Notes: svn path=/head/; revision=199815
* Reimplementation of world/kernel build options. For details, see:Ruslan Ermilov2006-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) Notes: svn path=/head/; revision=156813
* Enforce style.Makefile(5).Tom Rhodes2005-04-221-1/+1
| | | | | | | Glanced at by: ru (some time ago). Notes: svn path=/head/; revision=145413
* NOCRYPT -> NO_CRYPTRuslan Ermilov2004-12-211-1/+1
| | | | Notes: svn path=/head/; revision=139113
* Fixed style of DPADD and LDADD assignments as per style.Makefile(5).Ruslan Ermilov2004-02-051-2/+2
| | | | Notes: svn path=/head/; revision=125503
* Don't check for the existance of src/crypto/ for building items thatMark Murray2003-07-241-1/+1
| | | | | | | | may contain crypto. The days of ITAR paranoia are over, and the simple macro tests that remain are sufficient. Notes: svn path=/head/; revision=117978
* add a NOCRYPT check alongside the NO_OPENSSL check.Dag-Erling Smørgrav2003-05-191-1/+1
| | | | | | | Approved by: re (scottl) Notes: svn path=/head/; revision=115158
* mdoc(7) police: sweep.Ruslan Ermilov2002-11-291-18/+14
| | | | Notes: svn path=/head/; revision=107389
* Mdocify and fix a load of errors dating back to the dawn of time.Tony Finch2002-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) Notes: svn path=/head/; revision=104723
* Factorize bignums using the Pollard Rho algorithm. The code comesTony Finch2002-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 Notes: svn path=/head/; revision=104722
* Style fixes to: #include ordering; use const and static; ANSI functions;Tony Finch2002-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 Notes: svn path=/head/; revision=104720
* Remove __PWarner Losh2002-02-181-2/+2
| | | | | | | | | Remove __STDC__ (which means we now use stdarg rather than vararg) Remove register Remove main prototype Notes: svn path=/head/; revision=90828
* Correct a typo: numtiple -> multiple.Peter Pentchev2001-10-241-1/+1
| | | | | | | | | PR: 31474 Submitted by: Eric Yu <ericyu@mail2000.com.tw> MFC after: 1 week Notes: svn path=/head/; revision=85408
* Remove whitespace at EOL.Dima Dorfman2001-07-151-2/+2
| | | | Notes: svn path=/head/; revision=79754
* - Backout botched attempt to intoduce MANSECT feature.Ruslan Ermilov2001-03-261-0/+1
| | | | | | | - MAN[1-9] -> MAN. Notes: svn path=/head/; revision=74814
* Set the default manual section for games/ to 6.Ruslan Ermilov2001-03-201-1/+1
| | | | Notes: svn path=/head/; revision=74528
* copyright/sccsid/rcsid cleanup.Bill Fumerola1999-11-301-1/+5
| | | | Notes: svn path=/head/; revision=53920
* $Id$ -> $FreeBSD$Peter Wemm1999-08-271-1/+1
| | | | Notes: svn path=/head/; revision=50472
* Minor adjustments to prior commits:Warner Losh1999-01-071-5/+7
| | | | | | | | | | | o break at end of sentences o add $id$ o change date Noticed by: the ever watchful bde Notes: svn path=/head/; revision=42380
* Fix printf errors in the hflag case.Warner Losh1999-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 Notes: svn path=/head/; revision=42357
* added -h flag to allow for hexidecimal output.Warner Losh1999-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 Notes: svn path=/head/; revision=42338
* Wargh! Who went and changed all the getopt() comparisons from -1 toJordan K. Hubbard1998-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). Notes: svn path=/head/; revision=33937
* Remove so-called revoke, this game not installed sguidAndrey A. Chernov1997-09-011-4/+0
| | | | Notes: svn path=/head/; revision=29015
* Change games from setuid games to setgid games.Eivind Eklund1997-09-011-0/+4
| | | | | | | | Reviewed by: maybe@yes.no Obtained from: OpenBSD (mostly deraadt@openbsd.org) Notes: svn path=/head/; revision=28979
* factor.6, not factor.0 (crept in from 4.4Lite2)Peter Wemm1997-03-121-1/+1
| | | | Notes: svn path=/head/; revision=23757
* Merge from Lite2 (oops, nearly forgot these ones)Peter Wemm1997-03-111-1/+2
| | | | Notes: svn path=/head/; revision=23726
* Import some CSRG 4.4BSD-Lite2 gamesPeter Wemm1997-03-111-1/+1
| | | | Notes: svn path=/vendor/games/dist/; revision=23704
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-1/+1
| | | | Notes: svn path=/head/; revision=8856
* Bring in the 4.4 Lite games directory, modulo man page changes and segregationJordan K. Hubbard1994-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 Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=2490