4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright (c) 1997 by Sun Microsystems, Inc.
24 * All rights reserved.
28 * This is where all the interfaces that are internal to libmp
29 * which do not have a better home live
35 #ident "%Z%%M% %I% %E% SMI"
44 extern short *_mp_xalloc(int, char *);
45 extern void _mp_xfree(MINT
*);
46 extern void _mp_move(MINT
*, MINT
*);
47 extern void mp_invert(MINT
*, MINT
*, MINT
*);
48 extern void _mp_fatal(char *);
49 extern void _mp_mcan(MINT
*);
50 extern char *mtox(MINT
*);
51 extern int mp_omin(MINT
*);
52 extern void mp_omout(MINT
*);
53 extern void mp_fmout(MINT
*, FILE *);
54 extern int mp_fmin(MINT
*, FILE *);
57 * old libmp interfaces
59 extern void gcd(MINT
*, MINT
*, MINT
*);
60 extern void madd(MINT
*, MINT
*, MINT
*);
61 extern void msub(MINT
*, MINT
*, MINT
*);
62 extern void mdiv(MINT
*, MINT
*, MINT
*, MINT
*);
63 extern void sdiv(MINT
*, short, MINT
*, short *);
64 extern int min(MINT
*);
65 extern void mout(MINT
*);
66 extern int msqrt(MINT
*, MINT
*, MINT
*);
67 extern void mult(MINT
*, MINT
*, MINT
*);
68 extern void pow(MINT
*, MINT
*, MINT
*, MINT
*);
69 extern void rpow(MINT
*, short, MINT
*);
70 extern MINT
*itom(short);
71 extern int mcmp(MINT
*, MINT
*);
72 extern MINT
*xtom(char *);
73 extern char *mtox(MINT
*);
74 extern void mfree(MINT
*);
75 extern short *xalloc(int, char *);
76 extern void xfree(MINT
*);