summaryrefslogtreecommitdiff
path: root/demos/pexpr.c
Commit message (Collapse)AuthorAgeFilesLines
* (main): Allow bases up to 62.Torbjorn Granlund2008-09-051-1/+1
|
* (main): Add -v option.tege2007-09-181-3/+17
| | | | | | (enum op_t): New tag TIMING. (mpz_eval_expr): Execute TIMING. (fns): Add TIMING entry.
* Update license to version 3.tege2007-09-181-3/+2
|
* Update FSF's address.tege2006-02-151-2/+2
|
* (setup_error_handler): Add a missing ";".tege2005-12-151-1/+1
|
* Add a copyright year.tege2005-11-011-1/+1
|
* (fns): Add factorial keywords.tege2005-09-171-0/+3
|
* (main): Handle "negative" base in mpz_sizeinbase call.tege2004-10-251-1/+2
|
* Correct documentation of -split.tege2003-09-301-9/+17
| | | | | | | (TIME): Remove cast of result to double. (main): Change timing variables to int. (main): #ifdef LIMIT_RESOURCE_USAGE, don't convert numbers of more than 100000 digits.
* Don't iterate to get accurate timing.tege2003-05-261-11/+2
|
* (main): Don't call mpz_sizeinbase with negative base.tege2002-05-061-1/+1
|
* Handle "binomial" operator.tege2002-04-221-1/+20
|
* More of:Kevin Ryde2002-03-231-1/+1
| | | | * demos/pexpr.c (setup_error_handler): Corrections to sigstack code.
* * demos/pexpr.c (setup_error_handler): Corrections to sigstack code.Kevin Ryde2002-03-231-2/+24
|
* * demos/pexpr.c, demos/pexpr-config-h.in, configure.in: Use anKevin Ryde2002-03-201-1/+2
| | | | autoconf test for stack_t.
* (setup_error_handler): Declare `s', the firsttege2002-03-201-0/+4
| | | | sigaltstack parameter, using `stack_t' just on AIX.
* 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
|
* * 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.
* (mpz_eval_expr): Optimize s^rhs for -1 <= s <= 1.tege2002-01-191-1/+15
| | | | (cleanup_and_exit): Improve error message wording.
* * demos/pexpr.c, demos/expr/expr.h, demos/expr/expr-impl.h: UseKevin Ryde2002-01-051-16/+16
| | | | __GMP_PROTO.
* Remove some unused variables.tege2001-10-271-3/+2
| | | | (main): Allocate more buffer space to accommodate minus sign.
* (setup_error_handler): Catch also SIGABRT.tege2001-08-101-0/+1
|
* * mpfr/add.c,agm.c,exp2.c,exp3.c,generic.c,log2.c,pi.c,print_raw.c,Kevin Ryde2001-02-111-15/+15
| | | | | | set_d.c,sin_cos.c,sqrtrem.c,sub.c: Apply some tweaks for K&R. * tests/mpz/reuse.c, tests/mpq/t-md_2exp.c, demos/pexpr.c, demos/expr/t-expr.c: Ditto.
* Add a copyright year.Kevin Ryde2001-02-081-1/+1
|
* (TIME): New macro.tege2001-02-021-23/+33
| | | | | (main): Use TIME--print timing more accurately. (setup_error_handler): Increase RLIMIT_DATA to 16 Mibyte.
* (main): Accept -vml option.tege2001-01-181-4/+30
| | | | | | (fns): List `hamdist', `pow', `nextprime'. (mpz_eval_expr): Return -1 for `popc' of negative. (mpz_eval_expr): Handle `hamdist', `pow', `nextprime'.
* (rstate): New variable.tege2000-12-191-3/+26
| | | | | | | (main): Initialize rstate. (enum op_t): Add RANDOM. (fns): Add field for RANDOM. (mpz_eval_expr): Handle RANDOM.
* (HAVE_sigaltstack): Fix typo in testing for _UNICOS. Also test for __hpux.tege2000-11-121-1/+3
|
* Copyright (C) -> Copyright.Kevin Ryde2000-10-151-1/+1
|
* (setup_error_handler): Fix typo.tege2000-10-021-2/+2
|
* Clean up code for systems not supportingtege2000-09-271-2/+13
| | | | | sigaltstack. Handle old Linux without sigaltstack. Properly disable all stuff related to sigaltstack under Unicos.
* * demos/pexpr.c [__DJGPP__]: Patch by Richard Dawe to not useKevin Ryde2000-06-301-3/+3
| | | | setup_error_handler on djgpp.
* (setup_error_handler): Don't call sigaltstack on Unicos.tege2000-05-261-0/+3
|
* Add a copyright year.Kevin Ryde2000-04-121-1/+1
|
* (mpz_eval_expr): Properly initialize rhs/lhs for ROOT.tege2000-03-231-1/+4
|
* * (mpz_eval_expr): Check operand for sqrt.tege2000-03-221-3/+40
| | | | | | * (op_t): Add ROOT. (fns): Add ROOT. (mpz_eval_expr): Add ROOT.
* (main): Don't allow `-N' for base, require `-bN'.tege2000-03-201-2/+5
|
* Move factorial handing code from `factor' to `power'.tege2000-02-251-5/+5
|
* Don't use setup_error_handler() in windoze.Linus Nordberg2000-01-201-2/+6
|
* (sigaltstack): #define to sigstack for AIX.tege2000-01-191-0/+6
| | | | (setup_error_handler): Don't write to ss_size and ss_flags on AIX.
* (factor): Change alloca call to a malloc/free pair.tege1999-07-071-1/+2
|
* * (fns): Fix typo '#if #if'.tege1999-05-041-1/+33
| | | | * (mpz_eval_expr): Implement FERMAT and MERSENNE.
* * (setup_error_handler): Use sigemptyset to create empty set for portability.tege1999-05-041-6/+6
| | | | * Cast longjmp argument via long to silent warnings on 64-bit hosts.
* * Add #defines for GMP 1.x and 2.0 compatibility.tege1999-05-031-26/+86
| | | | | | * (setup_error_handler): New function; take signal handler setup code from main(), with major modifications to use modern signal interface. (main): Remove signal handler setup code; call setup_error_handler.
* * Add file.tege1999-03-131-0/+1057
* (cputime): Test also __hpux. * (cleanup_and_exit): Check SIGXCPU only #ifdef LIMIT_RESOURCE_USAGE.