summaryrefslogtreecommitdiff
path: root/demos
Commit message (Collapse)AuthorAgeFilesLines
* (factor_using_division_2kp): Honor verbose flag.gmp-4_1-branchtege2005-10-031-2/+8
| | | | | (factor_using_pollard_rho): Divide out new factor before it's clobbered. Don't stop factoring after a composite factor was found.
* 2003-02-20 Kevin Ryde <kevin@swox.se>Kevin Ryde2004-04-091-3/+3
| | | | | | * demos/factorize.c (factor_using_pollard_rho): Test k>0 to avoid infinite loop if k=0 and gcd!=1 reveals a factor. Reported by John Pongsajapan.
* Add a copyright year.tege2002-05-142-17/+15
|
* (main): Don't call mpz_sizeinbase with negative base.tege2002-05-061-1/+1
|
* * demos/expr/exprfr.c: Add nan and inf constants.Kevin Ryde2002-04-261-1/+23
| | | | * demos/expr/t-expr.c: Exercise them.
* * demos/expr/exprfr.c: Add nan and inf constants.Kevin Ryde2002-04-261-0/+9
|
* * demos/expr/Makefile.am (LDADD): Add $(LIBM) for the benefit of mpfr.Kevin Ryde2002-04-231-1/+3
|
* * demos/expr/Makefile.am (LDADD): Add $(LIBM) for the benefit of mpfr.Kevin Ryde2002-04-231-1/+3
|
* Handle "binomial" operator.tege2002-04-221-1/+20
|
* Regenerate for:Kevin Ryde2002-04-163-0/+3
| | | | * mpfr/*, configure.in: Update to final mpfr 2.0.1.
* Regenerate for:Kevin Ryde2002-04-133-3/+3
| | | | | | * mpfr/*: Update to another new mpfr 2.0.1. * configure.in, Makefile.am, mpfr/Makefile.am, mpfr/tests/Makefile.am: Use MPFR_CONFIGS macro, establish separate MPFR_CFLAGS for mpfr build.
* Regenerate for:Kevin Ryde2002-03-283-12/+15
| | | | | | * gmp-h.in, mp-h.in, configure.in, acinclude.m4: Remove __GMP from AC_SUBSTs, since autoconf says leading "_" in makefile variables is not portable.
* * demos/expr/run-expr.c: Declare optarg, optind, opterr if necessary.Kevin Ryde2002-03-281-1/+4
| | | | * configure.in, demos/expr/expr-config-h.in: Configs for this.
* * demos/expr/run-expr.c: Declare optarg, optind, opterr if necessary.Kevin Ryde2002-03-281-5/+7
|
* Regenerate.tege2002-03-251-3/+4
|
* More of:Kevin Ryde2002-03-231-1/+1
| | | | * demos/pexpr.c (setup_error_handler): Corrections to sigstack code.
* * demos/factorize.c: Use mpn_random() instead of random(), to avoidKevin Ryde2002-03-231-17/+5
| | | | portability problems.
* * demos/isprime.c (print_usage_and_exit): Declare as "void" to avoidKevin Ryde2002-03-231-8/+10
| | | | warnings.
* * demos/pexpr.c (setup_error_handler): Corrections to sigstack code.Kevin Ryde2002-03-231-2/+24
|
* Regenerate for:Kevin Ryde2002-03-232-821/+1025
| | | | | * demos/calc/calc.y: Add some `;'s to make bison 1.34 happy. * demos/calc/calc.y: Improve some error messages.
* * demos/calc/calc.y: Add some `;'s to make bison 1.34 happy.Kevin Ryde2002-03-231-7/+7
|
* Regenerate for:Kevin Ryde2002-03-223-0/+3
| | | | | | * configure.in, mpfr/Makefile.am, mpfr/tests/Makefile.am: Use -mieee-with-inexact or -ieee_with_inexact for mpfr on alpha, so denorms work.
* Enable tan and log10 tests from:Kevin Ryde2002-03-211-5/+5
| | | | | | * demos/expr/exprfr.c: More mpfr functions, corrections to agm, cos, sin, rename log2 constant to loge2 to make room for log2 function. * demos/expr/t-expr.c: More tests.
* Regenerate for:Kevin Ryde2002-03-203-6/+6
| | | | | | | | | * demos/pexpr.c, demos/pexpr-config-h.in, configure.in: Use an autoconf test for stack_t. * configure.in, gmp-h.in, mp-h.in, macos/configure: Use __GMP_LIBGMP_DLL to enable windows declspec, don't require _WIN32 (etc), remove __GMP_LIBGMP_SHARED and __GMP_LIBGMP_STATIC.
* * demos/pexpr.c, demos/pexpr-config-h.in, configure.in: Use anKevin Ryde2002-03-202-1/+5
| | | | autoconf test for stack_t.
* (setup_error_handler): Declare `s', the firsttege2002-03-201-0/+4
| | | | sigaltstack parameter, using `stack_t' just on AIX.
* * demos/expr/exprfr.c: More mpfr functions, corrections to agm, cos,Kevin Ryde2002-03-131-34/+134
| | | | | | | sin, rename log2 constant to loge2 to make room for log2 function. * demos/expr/t-expr.c: More tests. tan and log10 tests not enabled due to mpfr bugs.
* * demos/expr/exprfr.c: More mpfr functions, corrections to agm, cos,Kevin Ryde2002-03-131-10/+135
| | | | sin, rename log2 constant to loge2 to make room for log2 function.
* Increase RLIMIT_STACK to 4Mibyte.tege2002-02-221-1/+1
|
* Support `-X' for upper case hex, make `-x' output lower case hex.tege2002-02-171-2/+4
|
* Fix a tyop in a comment.tege2002-02-021-1/+1
|
* Regenerate for:Kevin Ryde2002-01-311-2/+4
| | | | * configure.in: Generate demos/pexpr-config.h.
* * demos/pexpr.c: Use pexpr-config.h, not various #ifdefs.Kevin Ryde2002-01-301-72/+94
| | | | | | | (setup_error_handler): Use signal if sigaction not available, allow for SIGBUS missing on mingw. (main): Use time() for random seed if gettimeofday not available. (cleanup_and_exit): Move SIGFPE out of LIMIT_RESOURCE_USAGE.
* * demos/pexpr-config-h.in: New file.Kevin Ryde2002-01-301-0/+43
|
* Regenerate for:Kevin Ryde2002-01-243-0/+3
| | | | | | * configure.in (--enable-nails): New option. (GMP_NAIL_BITS, GMP_LIMB_BITS, GMP_NUMB_BITS): New defines for gmp.h and config.m4.
* (mpz_eval_expr): Optimize s^rhs for -1 <= s <= 1.tege2002-01-191-1/+15
| | | | (cleanup_and_exit): Improve error message wording.
* Add a copyright year.Kevin Ryde2002-01-051-1/+1
|
* * demos/pexpr.c, demos/expr/expr.h, demos/expr/expr-impl.h: UseKevin Ryde2002-01-051-12/+11
| | | | __GMP_PROTO.
* * demos/pexpr.c, demos/expr/expr.h, demos/expr/expr-impl.h: UseKevin Ryde2002-01-052-39/+39
| | | | __GMP_PROTO.
* RegenerateKevin Ryde2001-12-292-92/+44
|
* * demos/calc/calc.y: Improve some error messages.Kevin Ryde2001-12-271-14/+13
|
* Regenerate for:Kevin Ryde2001-12-211-4/+4
| | | | | | A better effort at: * configure.in: Add --with-readline, AC_PROG_YACC and AM_PROG_LEX. * configure.in: Put demos/expr configs in expr-config.h.
* A better effort at:Kevin Ryde2001-12-211-1/+1
| | | | * configure.in: Add --with-readline, AC_PROG_YACC and AM_PROG_LEX.
* A better effort at:Kevin Ryde2001-12-211-1/+1
| | | | * configure.in: Put demos/expr configs in expr-config.h.
* Regenerate for:Kevin Ryde2001-12-211-5/+3
| | | | | | * demos/expr/expr-impl.h: Renamed from expr-impl-h.in, get configs from expr-config.h. * demos/expr/Makefile.am: Update.
* * demos/expr/expr-impl.h: Renamed from expr-impl-h.in, get configsKevin Ryde2001-12-211-2/+1
| | | | | from expr-config.h. * demos/expr/Makefile.am: Update.
* Regenerate for:Kevin Ryde2001-12-211-8/+17
| | | | | * demos/calc/Makefile.am: Add calcread.c, calc-common.h, use $(YACC), $(LEX) and $(LEXLIB).
* * demos/calc/Makefile.am: Add calcread.c, calc-common.h, use $(YACC),Kevin Ryde2001-12-211-6/+11
| | | | $(LEX) and $(LEXLIB).
* RegenerateKevin Ryde2001-12-213-42/+104
|
* Regenerate for:Kevin Ryde2001-12-213-391/+464
| | | | | * demos/calc/calc.y, demos/calc/calclex.l: Add readline support, add lucnum function.