/* 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 */
#include <stdio.h>
/* LINTLIBRARY */
#include <mp.h>
#include "libmp.h"
void
{
int i, j, n;
MINT x, y;
_mp_xfree(d);
d->len = 1;
*d->val = 1;
for (i = 0; i < 15; i++) {
mp_mult(d, d, &x);
if ((n = n << 1) & 0100000) {
}
}
}
_mp_xfree(&x);
_mp_xfree(&y);
}
void
{
MINT x, y;
int i;
x.len = 1;
*x.val = n;
for (i = 0; i < y.len; i++)
y.val[i] = 0;
mp_pow(a, &x, &y, b);
_mp_xfree(&x);
_mp_xfree(&y);
}