diff options
author | mbkma <[email protected]> | 2020-03-05 13:06:45 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-03-08 21:40:41 +0100 |
commit | b0117b1d5ae73916c6f0d289be1f693bb5f46824 (patch) | |
tree | 4751c73751ed9951ae5a1c5b93f04c84593c6974 /src/mp-private.h | |
parent | 91962719d06ce16d8bc3523872b83fae4d151e10 (diff) | |
download | mate-calc-b0117b1d5ae73916c6f0d289be1f693bb5f46824.tar.bz2 mate-calc-b0117b1d5ae73916c6f0d289be1f693bb5f46824.tar.xz |
Port to GNU MPFR/MPC Library
For further information please visit:
https://www.mpfr.org/
http://www.multiprecision.org/mpc
Diffstat (limited to 'src/mp-private.h')
-rw-r--r-- | src/mp-private.h | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/src/mp-private.h b/src/mp-private.h deleted file mode 100644 index 3211ea8..0000000 --- a/src/mp-private.h +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 1987-2008 Sun Microsystems, Inc. All Rights Reserved. - * Copyright (C) 2008-2009 Robert Ancell - * - * This program is free software: you can redistribute it and/or modify it under - * the terms of the GNU General Public License as published by the Free Software - * Foundation, either version 2 of the License, or (at your option) any later - * version. See http://www.gnu.org/copyleft/gpl.html the full text of the - * license. - */ - -#ifndef MP_INTERNAL_H -#define MP_INTERNAL_H - -#include <glib/gi18n.h> - -/* If we're not using GNU C, elide __attribute__ */ -#ifndef __GNUC__ -# define __attribute__(x) /*NOTHING*/ -#endif - -#define min(a, b) ((a) <= (b) ? (a) : (b)) -#define max(a, b) ((a) >= (b) ? (a) : (b)) - -//2E0 BELOW ENSURES AT LEAST ONE GUARD DIGIT -//MP.t = (int) ((float) (accuracy) * log((float)10.) / log((float) MP_BASE) + (float) 2.0); -//if (MP.t > MP_SIZE) { -// mperr("MP_SIZE TOO SMALL IN CALL TO MPSET, INCREASE MP_SIZE AND DIMENSIONS OF MP ARRAYS TO AT LEAST %d ***", MP.t); -// MP.t = MP_SIZE; -//} -#define MP_T 100 - -void mperr(const char *format, ...) __attribute__((format(printf, 1, 2))); -void mp_gcd(int64_t *, int64_t *); -void mp_normalize(MPNumber *); -void convert_to_radians(const MPNumber *x, MPAngleUnit unit, MPNumber *z); -void convert_from_radians(const MPNumber *x, MPAngleUnit unit, MPNumber *z); - -#endif /* MP_INTERNAL_H */ |