freebsd-dev/contrib/libgmp/mpn/generic/dump.c
Mark Murray aa9bc17601 Clean import of libgmp 2.0.2, with only the non-x86 bits removed.
BMakefiles and other bits will follow.

Requested by:	Andrey Chernov
Made world by:	Chuck Robey
1996-10-20 08:49:26 +00:00

21 lines
297 B
C

#include <stdio.h>
#include "gmp.h"
#include "gmp-impl.h"
void
mpn_dump (ptr, size)
mp_srcptr ptr;
mp_size_t size;
{
if (size == 0)
printf ("0\n");
{
while (size)
{
size--;
printf ("%0*lX", (int) (2 * BYTES_PER_MP_LIMB), ptr[size]);
}
printf ("\n");
}
}