2016-04-26 17:20:05 +02:00
|
|
|
/*
|
2014-04-24 21:29:05 +02:00
|
|
|
Copyright (C) 2014 Fredrik Johansson
|
|
|
|
|
2016-04-26 17:20:05 +02:00
|
|
|
This file is part of Arb.
|
|
|
|
|
|
|
|
Arb is free software: you can redistribute it and/or modify it under
|
|
|
|
the terms of the GNU Lesser General Public License (LGPL) as published
|
|
|
|
by the Free Software Foundation; either version 2.1 of the License, or
|
|
|
|
(at your option) any later version. See <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
2014-04-24 21:29:05 +02:00
|
|
|
|
|
|
|
#include "arf.h"
|
|
|
|
|
|
|
|
void
|
|
|
|
arf_debug(const arf_t x)
|
|
|
|
{
|
|
|
|
mp_srcptr d;
|
|
|
|
mp_size_t n;
|
2015-11-05 18:00:39 +00:00
|
|
|
slong i;
|
2014-04-24 21:29:05 +02:00
|
|
|
|
2015-11-06 16:17:27 +00:00
|
|
|
flint_printf("{exp=");
|
2014-04-24 21:29:05 +02:00
|
|
|
fmpz_print(&x->exp);
|
2015-11-06 16:17:27 +00:00
|
|
|
flint_printf("; size=%wu; sgnbit=%wd; digits=[", ARF_SIZE(x), ARF_SGNBIT(x));
|
2014-04-24 21:29:05 +02:00
|
|
|
|
|
|
|
ARF_GET_MPN_READONLY(d, n, x);
|
|
|
|
|
|
|
|
for (i = 0; i < n; i++)
|
2015-11-06 16:17:27 +00:00
|
|
|
flint_printf(" %wu", d[i]);
|
2014-04-24 21:29:05 +02:00
|
|
|
|
2015-11-06 16:17:27 +00:00
|
|
|
flint_printf("]}");
|
2014-04-24 21:29:05 +02:00
|
|
|
}
|
|
|
|
|