1*86d7f5d3SJohn Marino /* Old function entrypoints retained for binary compatibility.
2*86d7f5d3SJohn Marino
3*86d7f5d3SJohn Marino Copyright 2000, 2001 Free Software Foundation, Inc.
4*86d7f5d3SJohn Marino
5*86d7f5d3SJohn Marino This file is part of the GNU MP Library.
6*86d7f5d3SJohn Marino
7*86d7f5d3SJohn Marino The GNU MP Library is free software; you can redistribute it and/or modify
8*86d7f5d3SJohn Marino it under the terms of the GNU Lesser General Public License as published by
9*86d7f5d3SJohn Marino the Free Software Foundation; either version 3 of the License, or (at your
10*86d7f5d3SJohn Marino option) any later version.
11*86d7f5d3SJohn Marino
12*86d7f5d3SJohn Marino The GNU MP Library is distributed in the hope that it will be useful, but
13*86d7f5d3SJohn Marino WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14*86d7f5d3SJohn Marino or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
15*86d7f5d3SJohn Marino License for more details.
16*86d7f5d3SJohn Marino
17*86d7f5d3SJohn Marino You should have received a copy of the GNU Lesser General Public License
18*86d7f5d3SJohn Marino along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
19*86d7f5d3SJohn Marino
20*86d7f5d3SJohn Marino #include <stdio.h>
21*86d7f5d3SJohn Marino #include "gmp.h"
22*86d7f5d3SJohn Marino #include "gmp-impl.h"
23*86d7f5d3SJohn Marino
24*86d7f5d3SJohn Marino
25*86d7f5d3SJohn Marino /* mpn_divexact_by3 was a function in gmp 3.0.1, but as of gmp 3.1 it's a
26*86d7f5d3SJohn Marino macro calling mpn_divexact_by3c. */
27*86d7f5d3SJohn Marino mp_limb_t
__MPN(divexact_by3)28*86d7f5d3SJohn Marino __MPN (divexact_by3) (mp_ptr dst, mp_srcptr src, mp_size_t size)
29*86d7f5d3SJohn Marino {
30*86d7f5d3SJohn Marino return mpn_divexact_by3 (dst, src, size);
31*86d7f5d3SJohn Marino }
32*86d7f5d3SJohn Marino
33*86d7f5d3SJohn Marino
34*86d7f5d3SJohn Marino /* mpn_divmod_1 was a function in gmp 3.0.1 and earlier, but marked obsolete
35*86d7f5d3SJohn Marino in both gmp 2 and 3. As of gmp 3.1 it's a macro calling mpn_divrem_1. */
36*86d7f5d3SJohn Marino mp_limb_t
__MPN(divmod_1)37*86d7f5d3SJohn Marino __MPN (divmod_1) (mp_ptr dst, mp_srcptr src, mp_size_t size, mp_limb_t divisor)
38*86d7f5d3SJohn Marino {
39*86d7f5d3SJohn Marino return mpn_divmod_1 (dst, src, size, divisor);
40*86d7f5d3SJohn Marino }
41*86d7f5d3SJohn Marino
42*86d7f5d3SJohn Marino
43*86d7f5d3SJohn Marino /* mpz_legendre was a separate function in gmp 3.1.1 and earlier, but as of
44*86d7f5d3SJohn Marino 4.0 it's a #define alias for mpz_jacobi. */
45*86d7f5d3SJohn Marino int
__gmpz_legendre(mpz_srcptr a,mpz_srcptr b)46*86d7f5d3SJohn Marino __gmpz_legendre (mpz_srcptr a, mpz_srcptr b)
47*86d7f5d3SJohn Marino {
48*86d7f5d3SJohn Marino return mpz_jacobi (a, b);
49*86d7f5d3SJohn Marino }
50