diff options
Diffstat (limited to 'mpn/generic/dump.c')
-rw-r--r-- | mpn/generic/dump.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mpn/generic/dump.c b/mpn/generic/dump.c new file mode 100644 index 000000000..a5831c4cc --- /dev/null +++ b/mpn/generic/dump.c @@ -0,0 +1,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"); + } +} |