summaryrefslogtreecommitdiffstats
path: root/gnu/lib/libgmp/mpn/generic/dump.c
blob: a5831c4cc95c41424f23266cf849c7ba43b2fc32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#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");
  }
}
OpenPOWER on IntegriCloud