749N/A/*
749N/A * CDDL HEADER START
749N/A *
749N/A * The contents of this file are subject to the terms of the
749N/A * Common Development and Distribution License, Version 1.0 only
749N/A * (the "License"). You may not use this file except in compliance
749N/A * with the License.
749N/A *
749N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
749N/A * or http://www.opensolaris.org/os/licensing.
749N/A * See the License for the specific language governing permissions
749N/A * and limitations under the License.
749N/A *
749N/A * When distributing Covered Code, include this CDDL HEADER in each
749N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
749N/A * If applicable, add the following below this CDDL HEADER, with the
749N/A * fields enclosed by brackets "[]" replaced with your own identifying
749N/A * information: Portions Copyright [yyyy] [name of copyright owner]
749N/A *
749N/A * CDDL HEADER END
749N/A */
749N/A/*
749N/A * Copyright (c) 1997 by Sun Microsystems, Inc.
749N/A * All rights reserved.
749N/A */
749N/A
749N/A/*
749N/A * This is where all the interfaces that are internal to libmp
749N/A * which do not have a better home live
749N/A */
749N/A
749N/A#ifndef _LIBMP_H
749N/A#define _LIBMP_H
749N/A
749N/A#ident "%Z%%M% %I% %E% SMI"
749N/A
749N/A#include <mp.h>
749N/A#include <stdio.h>
749N/A
749N/A#ifdef __cplusplus
749N/Aextern "C" {
749N/A#endif
749N/A
749N/Aextern short *_mp_xalloc(int, char *);
749N/Aextern void _mp_xfree(MINT *);
749N/Aextern void _mp_move(MINT *, MINT *);
749N/Aextern void mp_invert(MINT *, MINT *, MINT *);
749N/Aextern void _mp_fatal(char *);
749N/Aextern void _mp_mcan(MINT *);
749N/Aextern char *mtox(MINT *);
749N/Aextern int mp_omin(MINT *);
749N/Aextern void mp_omout(MINT *);
749N/Aextern void mp_fmout(MINT *, FILE *);
749N/Aextern int mp_fmin(MINT *, FILE *);
749N/A
749N/A/*
749N/A * old libmp interfaces
749N/A */
749N/Aextern void gcd(MINT *, MINT *, MINT *);
749N/Aextern void madd(MINT *, MINT *, MINT *);
749N/Aextern void msub(MINT *, MINT *, MINT *);
749N/Aextern void mdiv(MINT *, MINT *, MINT *, MINT *);
749N/Aextern void sdiv(MINT *, short, MINT *, short *);
749N/Aextern int min(MINT *);
749N/Aextern void mout(MINT *);
749N/Aextern int msqrt(MINT *, MINT *, MINT *);
749N/Aextern void mult(MINT *, MINT *, MINT *);
749N/Aextern void pow(MINT *, MINT *, MINT *, MINT *);
749N/Aextern void rpow(MINT *, short, MINT *);
749N/Aextern MINT *itom(short);
749N/Aextern int mcmp(MINT *, MINT *);
749N/Aextern MINT *xtom(char *);
749N/Aextern char *mtox(MINT *);
749N/Aextern void mfree(MINT *);
749N/Aextern short *xalloc(int, char *);
749N/Aextern void xfree(MINT *);
749N/A
749N/A#ifdef __cplusplus
749N/A}
749N/A#endif
749N/A
749N/A#endif /* _LIBMP_H */
749N/A