diff options
author | Harald van Dijk <[email protected]> | 2021-07-04 18:19:49 +0100 |
---|---|---|
committer | Victor Kareh <[email protected]> | 2021-07-09 07:18:35 -0400 |
commit | 06aefc68d0d3e04748c9e22f4d216d9f2e87dfc8 (patch) | |
tree | 9256657ee46ba9600dcf9ae53acad1bb86432f04 | |
parent | a942e94c8a240452b64e2bf1fa56e3fc4a5031f1 (diff) | |
download | mate-calc-06aefc68d0d3e04748c9e22f4d216d9f2e87dfc8.tar.bz2 mate-calc-06aefc68d0d3e04748c9e22f4d216d9f2e87dfc8.tar.xz |
Fix declaration/definition mismatches
Commit 869de6d8 changed the signatures of definitions of various mp_*
functions but did not update the declarations in mp.h to match.
-rw-r--r-- | src/mp.h | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -139,7 +139,7 @@ void mp_invert_sign(const MPNumber *x, MPNumber *z); void mp_add(const MPNumber *x, const MPNumber *y, MPNumber *z); /* Sets z = x + y */ -void mp_add_integer(const MPNumber *x, int64_t y, MPNumber *z); +void mp_add_integer(const MPNumber *x, long y, MPNumber *z); /* Sets z = x − y */ void mp_subtract(const MPNumber *x, const MPNumber *y, MPNumber *z); @@ -148,13 +148,13 @@ void mp_subtract(const MPNumber *x, const MPNumber *y, MPNumber *z); void mp_multiply(const MPNumber *x, const MPNumber *y, MPNumber *z); /* Sets z = x × y */ -void mp_multiply_integer(const MPNumber *x, int64_t y, MPNumber *z); +void mp_multiply_integer(const MPNumber *x, long y, MPNumber *z); /* Sets z = x ÷ y */ void mp_divide(const MPNumber *x, const MPNumber *y, MPNumber *z); /* Sets z = x ÷ y */ -void mp_divide_integer(const MPNumber *x, int64_t y, MPNumber *z); +void mp_divide_integer(const MPNumber *x, long y, MPNumber *z); /* Sets z = 1 ÷ x */ void mp_reciprocal(const MPNumber *, MPNumber *); @@ -183,7 +183,7 @@ void mp_round(const MPNumber *x, MPNumber *z); void mp_ln(const MPNumber *x, MPNumber *z); /* Sets z = log_n x */ -void mp_logarithm(int64_t n, const MPNumber *x, MPNumber *z); +void mp_logarithm(long n, const MPNumber *x, MPNumber *z); /* Sets z = π */ void mp_get_pi(MPNumber *z); @@ -233,13 +233,13 @@ void mp_set_from_float(float x, MPNumber *z); void mp_set_from_double(double x, MPNumber *z); /* Sets z = x */ -void mp_set_from_integer(int64_t x, MPNumber *z); +void mp_set_from_integer(long x, MPNumber *z); /* Sets z = x */ -void mp_set_from_unsigned_integer(uint64_t x, MPNumber *z); +void mp_set_from_unsigned_integer(ulong x, MPNumber *z); /* Sets z = numerator ÷ denominator */ -void mp_set_from_fraction(int64_t numerator, int64_t denominator, MPNumber *z); +void mp_set_from_fraction(long numerator, long denominator, MPNumber *z); /* Sets z = r(cos theta + i sin theta) */ void mp_set_from_polar(const MPNumber *r, MPAngleUnit unit, const MPNumber *theta, MPNumber *z); |