Polly 20.0.0git
imath_custom_test.c
Go to the documentation of this file.
1
2void test_mpz_export(char **out, char *rop, size_t *countp, int order,
3 size_t size, int endian, size_t nails, char *mpzstr) {
4 impz_t op;
6 impz_set_str(op, mpzstr, 10);
7 // printf("%p,%p,%d,%zi,%d,%zi,%s\n", rop, countp, order, size, endian, nails,
8 // mpzstr);
9 *out = impz_export(rop, countp, order, size, endian, nails, op);
10}
11
12void test_mpz_import(char *out, void *unused, size_t count, int order,
13 size_t size, int endian, size_t nails, char *mpzstr) {
14 impz_t op;
15 impz_t rop;
17 impz_init(rop);
18 impz_set_str(op, mpzstr, 10);
19 char *data;
20
21 // printf("%p,%p,%d,%zi,%d,%zi,%s\n", rop, countp, order, size, endian, nails,
22 // mpzstr);
23 data = impz_export(NULL, &count, order, size, endian, nails, op);
24 impz_import(rop, count, order, size, endian, nails, data);
25 int eq = impz_cmpabs(op, rop);
26 sprintf(out, "%2d:", eq);
27 impz_get_str(out + 3, 10, rop);
28}
void test_mpz_export(char **out, char *rop, size_t *countp, int order, size_t size, int endian, size_t nails, char *mpzstr)
void test_mpz_import(char *out, void *unused, size_t count, int order, size_t size, int endian, size_t nails, char *mpzstr)
static int count(int *con, unsigned len, int status)
Definition: isl_coalesce.c:152
__isl_give isl_val *(* op)(__isl_take isl_val *v)
Definition: isl_test.c:773
const char * size
Definition: isl_test.c:1570
#define impz_cmpabs
Definition: wrap.h:35
#define impz_export
Definition: wrap.h:40
#define impz_import
Definition: wrap.h:47
#define impz_set_str
Definition: wrap.h:57
#define impz_init
Definition: wrap.h:48
#define impz_get_str
Definition: wrap.h:45