1*7c478bd9Sstevel@tonic-gate /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
2*7c478bd9Sstevel@tonic-gate /* All Rights Reserved */
3*7c478bd9Sstevel@tonic-gate
4*7c478bd9Sstevel@tonic-gate
5*7c478bd9Sstevel@tonic-gate /*
6*7c478bd9Sstevel@tonic-gate * Copyright (c) 1980 Regents of the University of California.
7*7c478bd9Sstevel@tonic-gate * All rights reserved. The Berkeley software License Agreement
8*7c478bd9Sstevel@tonic-gate * specifies the terms and conditions for redistribution.
9*7c478bd9Sstevel@tonic-gate */
10*7c478bd9Sstevel@tonic-gate /* Portions Copyright(c) 1996, Sun Microsystems Inc. */
11*7c478bd9Sstevel@tonic-gate /* All Rights Reserved */
12*7c478bd9Sstevel@tonic-gate
13*7c478bd9Sstevel@tonic-gate /*
14*7c478bd9Sstevel@tonic-gate * Copyright (c) 1997, by Sun Microsystems, Inc.
15*7c478bd9Sstevel@tonic-gate * All rights reserved.
16*7c478bd9Sstevel@tonic-gate */
17*7c478bd9Sstevel@tonic-gate
18*7c478bd9Sstevel@tonic-gate /* fix for bugid 1240660 redefine old libmp interfaces to go to the new */
19*7c478bd9Sstevel@tonic-gate /* mp_*() interfaces */
20*7c478bd9Sstevel@tonic-gate
21*7c478bd9Sstevel@tonic-gate #ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */
22*7c478bd9Sstevel@tonic-gate
23*7c478bd9Sstevel@tonic-gate /* LINTLIBRARY */
24*7c478bd9Sstevel@tonic-gate
25*7c478bd9Sstevel@tonic-gate #include <mp.h>
26*7c478bd9Sstevel@tonic-gate #include <sys/types.h>
27*7c478bd9Sstevel@tonic-gate #include "libmp.h"
28*7c478bd9Sstevel@tonic-gate
gcd(MINT * a,MINT * b,MINT * c)29*7c478bd9Sstevel@tonic-gate void gcd(MINT *a, MINT *b, MINT *c) { mp_gcd(a, b, c); }
30*7c478bd9Sstevel@tonic-gate
madd(MINT * a,MINT * b,MINT * c)31*7c478bd9Sstevel@tonic-gate void madd(MINT *a, MINT *b, MINT *c) { mp_madd(a, b, c); }
32*7c478bd9Sstevel@tonic-gate
msub(MINT * a,MINT * b,MINT * c)33*7c478bd9Sstevel@tonic-gate void msub(MINT *a, MINT *b, MINT *c) { mp_msub(a, b, c); }
34*7c478bd9Sstevel@tonic-gate
mdiv(MINT * a,MINT * b,MINT * q,MINT * r)35*7c478bd9Sstevel@tonic-gate void mdiv(MINT *a, MINT *b, MINT *q, MINT *r) { mp_mdiv(a, b, q, r); }
36*7c478bd9Sstevel@tonic-gate
sdiv(MINT * a,short n,MINT * q,short * r)37*7c478bd9Sstevel@tonic-gate void sdiv(MINT *a, short n, MINT *q, short *r) { mp_sdiv(a, n, q, r); }
38*7c478bd9Sstevel@tonic-gate
min(MINT * a)39*7c478bd9Sstevel@tonic-gate int min(MINT *a) { return (mp_min(a)); }
40*7c478bd9Sstevel@tonic-gate
mout(MINT * a)41*7c478bd9Sstevel@tonic-gate void mout(MINT *a) { mp_mout(a); }
42*7c478bd9Sstevel@tonic-gate
msqrt(MINT * a,MINT * b,MINT * r)43*7c478bd9Sstevel@tonic-gate int msqrt(MINT *a, MINT *b, MINT *r) { return (mp_msqrt(a, b, r)); }
44*7c478bd9Sstevel@tonic-gate
mult(MINT * a,MINT * b,MINT * c)45*7c478bd9Sstevel@tonic-gate void mult(MINT *a, MINT *b, MINT *c) { mp_mult(a, b, c); }
46*7c478bd9Sstevel@tonic-gate
pow(MINT * a,MINT * b,MINT * c,MINT * d)47*7c478bd9Sstevel@tonic-gate void pow(MINT *a, MINT *b, MINT *c, MINT *d) { mp_pow(a, b, c, d); }
48*7c478bd9Sstevel@tonic-gate
rpow(MINT * a,short n,MINT * b)49*7c478bd9Sstevel@tonic-gate void rpow(MINT *a, short n, MINT *b) { mp_rpow(a, n, b); }
50*7c478bd9Sstevel@tonic-gate
itom(short n)51*7c478bd9Sstevel@tonic-gate MINT *itom(short n) { return (mp_itom(n)); }
52*7c478bd9Sstevel@tonic-gate
mcmp(MINT * a,MINT * b)53*7c478bd9Sstevel@tonic-gate int mcmp(MINT *a, MINT *b) { return (mp_mcmp(a, b)); }
54*7c478bd9Sstevel@tonic-gate
xtom(char * key)55*7c478bd9Sstevel@tonic-gate MINT *xtom(char *key) { return (mp_xtom(key)); }
56*7c478bd9Sstevel@tonic-gate
mtox(MINT * key)57*7c478bd9Sstevel@tonic-gate char *mtox(MINT *key) { return (mp_mtox(key)); }
58*7c478bd9Sstevel@tonic-gate
mfree(MINT * a)59*7c478bd9Sstevel@tonic-gate void mfree(MINT *a) { mp_mfree(a); }
60*7c478bd9Sstevel@tonic-gate
61*7c478bd9Sstevel@tonic-gate /* VARARGS */
xalloc(int nint,char * s)62*7c478bd9Sstevel@tonic-gate short *xalloc(int nint, char *s) { return (_mp_xalloc(nint, s)); }
63*7c478bd9Sstevel@tonic-gate
xfree(MINT * c)64*7c478bd9Sstevel@tonic-gate void xfree(MINT *c) { _mp_xfree(c); }
65