summaryrefslogtreecommitdiff
path: root/mpz/jacobi.c
Commit message (Collapse)AuthorAgeFilesLines
* Nailify.tege2002-04-231-2/+2
|
* Remove trailing spaces.tege2002-01-131-4/+4
|
* * gmp-impl.h (TMP_ALLOC_LIMBS_2): New macro.Kevin Ryde2001-06-191-4/+3
| | | | * mpz/jacobi.c, mpq/cmp.c, mpn/generic/fib2_ui.c: Use it.
* Tweak a comment.Kevin Ryde2001-06-171-1/+1
|
* * mpz/jacobi.c: Don't retaining old behaviour of mpz_jacobi on even bKevin Ryde2001-06-101-38/+26
| | | | | | | | | | | | | | | | | | | | | | | (it wasn't documented in 3.1.1). * mpz/jacobi.c, gmp.h (mpz_kronecker, mpz_legendre): Remove separate entrypoints, just #define to mpz_jacobi. The old behaviour of ignoring factors of 2 on b was never documented and doesn't seem particularly useful, so there's really no need to keep it, better just make one kronecker style function and share it. With respect to gmp 3.1.1 we've now got mpz_jacobi fixed to allow negative b, and mpz_kronecker added. Could have just told applications mpz_jacobi now has the kronecker extension, but it matches mpz_kronecker_ui etc better if there's an mpz_kronecker alias. __gmpz_jacobi is kept as the primary library entrypoint and __gmpz_legendre just for compatibility. Done this way around on the assumption existing binaries are more likely to be using mpz_jacobi than mpz_legendre. Obviously a recompile moves it to the right one if this is not so.
* * gmp-impl.h (USE_LEADING_REGPARM): Use __i386__ same as longlong.hKevin Ryde2001-03-031-12/+7
| | | | | (REGPARM_2_1, REGPARM_3_1, REGPARM_ATTR): New macros. * mpz/jacobi.c (jac_or_kron): Use them.
* * mpz/jacobi.c: Rewrite, but still binary algorithm; accept zero andKevin Ryde2001-01-181-25/+317
| | | | | negative denominators; merge mpz_jacobi and mpz_legendre, add mpz_kronecker; use mpn directly, add special cases for size==1.
* Remove K&R function headers.tege2001-01-021-6/+1
|
* Copyright (C) -> Copyright.Kevin Ryde2000-10-151-1/+1
|
* *** empty log message ***tege2000-07-241-4/+4
|
* Initial revisiontege1996-05-081-0/+53