summaryrefslogtreecommitdiff
path: root/init_set.h
blob: f779fee12afb81499c650ebbbccd8fc421e0bcf0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#define mpfr_init_set_si(x, i, p, rnd) {\
 mpfr_init2((x), (p)); \
 mpfr_set_si((x), (i), (rnd)); \
}

#define mpfr_init_set_ui(x, i, p, rnd) {\
 mpfr_init2((x), (p)); \
 mpfr_set_ui((x), (i), (rnd)); \
}

#define mpfr_init_set_d(x, d, p, rnd) {\
 mpfr_init2((x), (p)); \
 mpfr_set_d((x), (d), (rnd)); \
}

#define mpfr_init_set(x, y, p, rnd) {\
 mpfr_init2((x), (p)); \
 mpfr_set((x), (y), (rnd)); \
}

#define mpfr_init_set_f(x, y, p, rnd) {\
 mpfr_init2((x), (p)); \
 mpfr_set_f((x), (y), (rnd)); \
}

#define mpfr_init_set_str(x, y, p, rnd) {\
 mpfr_init2((x), (p)); \
 mpfr_set_str((x), (y), (rnd)); \
}

#define mpfr_init_set_str_raw(x, y, p, rnd) {\
 mpfr_init2((x), (p)); \
 mpfr_set_str_raw((x), (y), (rnd)); \
}