@@ -73,8 +73,7 @@ MPFRNumber MPFRNumber::acosh() const {
73
73
MPFRNumber MPFRNumber::acospi () const {
74
74
MPFRNumber result (*this );
75
75
76
- #if MPFR_VERSION_MAJOR > 4 || \
77
- (MPFR_VERSION_MAJOR == 4 && MPFR_VERSION_MINOR >= 2 )
76
+ #if MPFR_VERSION >= MPFR_VERSION_NUM(4, 2, 0)
78
77
mpfr_acospi (result.value , value, mpfr_rounding);
79
78
return result;
80
79
#else
@@ -150,8 +149,7 @@ MPFRNumber MPFRNumber::cosh() const {
150
149
MPFRNumber MPFRNumber::cospi () const {
151
150
MPFRNumber result (*this );
152
151
153
- #if MPFR_VERSION_MAJOR > 4 || \
154
- (MPFR_VERSION_MAJOR == 4 && MPFR_VERSION_MINOR >= 2 )
152
+ #if MPFR_VERSION >= MPFR_VERSION_NUM(4, 2, 0)
155
153
mpfr_cospi (result.value , value, mpfr_rounding);
156
154
return result;
157
155
#else
@@ -195,8 +193,7 @@ MPFRNumber MPFRNumber::exp2() const {
195
193
196
194
MPFRNumber MPFRNumber::exp2m1 () const {
197
195
// TODO: Only use mpfr_exp2m1 once CI and buildbots get MPFR >= 4.2.0.
198
- #if MPFR_VERSION_MAJOR > 4 || \
199
- (MPFR_VERSION_MAJOR == 4 && MPFR_VERSION_MINOR >= 2 )
196
+ #if MPFR_VERSION >= MPFR_VERSION_NUM(4, 2, 0)
200
197
MPFRNumber result (*this );
201
198
mpfr_exp2m1 (result.value , value, mpfr_rounding);
202
199
return result;
@@ -231,8 +228,7 @@ MPFRNumber MPFRNumber::exp10() const {
231
228
232
229
MPFRNumber MPFRNumber::exp10m1 () const {
233
230
// TODO: Only use mpfr_exp10m1 once CI and buildbots get MPFR >= 4.2.0.
234
- #if MPFR_VERSION_MAJOR > 4 || \
235
- (MPFR_VERSION_MAJOR == 4 && MPFR_VERSION_MINOR >= 2 )
231
+ #if MPFR_VERSION >= MPFR_VERSION_NUM(4, 2, 0)
236
232
MPFRNumber result (*this );
237
233
mpfr_exp10m1 (result.value , value, mpfr_rounding);
238
234
return result;
@@ -402,9 +398,7 @@ MPFRNumber MPFRNumber::sin() const {
402
398
MPFRNumber MPFRNumber::sinpi () const {
403
399
MPFRNumber result (*this );
404
400
405
- #if MPFR_VERSION_MAJOR > 4 || \
406
- (MPFR_VERSION_MAJOR == 4 && MPFR_VERSION_MINOR >= 2 )
407
-
401
+ #if MPFR_VERSION >= MPFR_VERSION_NUM(4, 2, 0)
408
402
mpfr_sinpi (result.value , value, mpfr_rounding);
409
403
return result;
410
404
#else
@@ -463,9 +457,7 @@ MPFRNumber MPFRNumber::tanh() const {
463
457
MPFRNumber MPFRNumber::tanpi () const {
464
458
MPFRNumber result (*this );
465
459
466
- #if MPFR_VERSION_MAJOR > 4 || \
467
- (MPFR_VERSION_MAJOR == 4 && MPFR_VERSION_MINOR >= 2 )
468
-
460
+ #if MPFR_VERSION >= MPFR_VERSION_NUM(4, 2, 0)
469
461
mpfr_tanpi (result.value , value, mpfr_rounding);
470
462
return result;
471
463
#else
0 commit comments