summary refs log tree commit diff
path: root/include/gmp.h
blob: 657c7a01489372ce265d75d36e0b33c59caa2535 (plain) (blame)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/* Include gmp-mparam.h first, such that definitions of _SHORT_LIMB
   and _LONG_LONG_LIMB in it can take effect into gmp.h.  */
#include <gmp-mparam.h>

#ifndef __GMP_H__

#include <stdlib/gmp.h>

#include <bits/floatn.h>

#ifndef _ISOMAC
/* Now define the internal interfaces.  */
extern mp_size_t __mpn_extract_double (mp_ptr res_ptr, mp_size_t size,
				       int *expt, int *is_neg,
				       double value) attribute_hidden;

extern mp_size_t __mpn_extract_long_double (mp_ptr res_ptr, mp_size_t size,
					    int *expt, int *is_neg,
					    long double value)
     attribute_hidden;

#if __HAVE_DISTINCT_FLOAT128
extern mp_size_t __mpn_extract_float128 (mp_ptr res_ptr, mp_size_t size,
					 int *expt, int *is_neg,
					 _Float128 value)
     attribute_hidden;
#endif

extern float __mpn_construct_float (mp_srcptr frac_ptr, int expt, int sign)
     attribute_hidden;

extern double __mpn_construct_double (mp_srcptr frac_ptr, int expt,
				      int negative) attribute_hidden;

extern long double __mpn_construct_long_double (mp_srcptr frac_ptr, int expt,
						int sign)
     attribute_hidden;

#if __HAVE_DISTINCT_FLOAT128
extern _Float128 __mpn_construct_float128 (mp_srcptr frac_ptr, int expt,
					   int sign) attribute_hidden;
#endif

extern __typeof (mpn_add_1) mpn_add_1 attribute_hidden;
extern __typeof (mpn_addmul_1) mpn_addmul_1 attribute_hidden;
extern __typeof (mpn_add_n) mpn_add_n attribute_hidden;
extern __typeof (mpn_cmp) mpn_cmp attribute_hidden;
extern __typeof (mpn_divrem) mpn_divrem attribute_hidden;
extern __typeof (mpn_lshift) mpn_lshift attribute_hidden;
extern __typeof (mpn_mul) mpn_mul attribute_hidden;
extern __typeof (mpn_mul_1) mpn_mul_1 attribute_hidden;
extern __typeof (mpn_rshift) mpn_rshift attribute_hidden;
extern __typeof (mpn_sub_1) mpn_sub_1 attribute_hidden;
extern __typeof (mpn_submul_1) mpn_submul_1 attribute_hidden;
extern __typeof (mpn_sub_n) mpn_sub_n attribute_hidden;
#endif

#endif