/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
/* Portions Copyright(c) 1988, Sun Microsystems Inc. */
/* All Rights Reserved */
/*
* Copyright (c) 1997, by Sun Microsystems, Inc.
* All rights reserved.
*/
#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */
/* LINTLIBRARY */
#include <mp.h>
#include "libmp.h"
void
{
struct mint x, y;
int sign;
_mp_mcan(a);
_mp_mcan(b);
_mp_xfree(c);
return;
}
sign = 1;
_mp_move(a, &x);
_mp_move(b, &y);
if (a->len < 0) {
}
if (b->len < 0) {
}
_mp_xfree(c);
m_mult(&x, &y, c);
} else {
m_mult(&y, &x, c);
}
if (sign < 0)
if (c->len == 0)
_mp_xfree(c);
_mp_xfree(&x);
_mp_xfree(&y);
}
/*
* Knuth 4.3.1, Algorithm M
*/
static void
{
int i, j;
int sum;
short bcache;
short *aptr;
short *bptr;
short *cptr;
int alen;
int blen;
sum = 0;
for (i = alen; i > 0; i--) {
if (sum >= 0)
else
}
cptr++;
for (j = blen - 1; j > 0; j--) {
sum = 0;
for (i = alen; i > 0; i--) {
if (sum >= 0)
else
}
cptr++;
}
c->len--;
}
}