xref: /haiku/src/system/libroot/posix/glibc/include/gmp.h (revision 5af32e752606778be5dd7379f319fe43cb3f6b8c)
1*5af32e75SAxel Dörfler /* Include gmp-mparam.h first, such that definitions of _SHORT_LIMB
2*5af32e75SAxel Dörfler    and _LONG_LONG_LIMB in it can take effect into gmp.h.  */
3*5af32e75SAxel Dörfler #include <gmp-mparam.h>
4*5af32e75SAxel Dörfler 
5*5af32e75SAxel Dörfler #ifndef __GMP_H__
6*5af32e75SAxel Dörfler 
7*5af32e75SAxel Dörfler #include <stdlib/gmp.h>
8*5af32e75SAxel Dörfler 
9*5af32e75SAxel Dörfler /* Now define the internal interfaces.  */
10*5af32e75SAxel Dörfler extern mp_size_t __mpn_extract_double (mp_ptr res_ptr, mp_size_t size,
11*5af32e75SAxel Dörfler 				       int *expt, int *is_neg,
12*5af32e75SAxel Dörfler 				       double value);
13*5af32e75SAxel Dörfler 
14*5af32e75SAxel Dörfler extern mp_size_t __mpn_extract_long_double (mp_ptr res_ptr, mp_size_t size,
15*5af32e75SAxel Dörfler 					    int *expt, int *is_neg,
16*5af32e75SAxel Dörfler 					    long double value);
17*5af32e75SAxel Dörfler 
18*5af32e75SAxel Dörfler extern float __mpn_construct_float (mp_srcptr frac_ptr, int expt, int sign);
19*5af32e75SAxel Dörfler 
20*5af32e75SAxel Dörfler extern double __mpn_construct_double (mp_srcptr frac_ptr, int expt,
21*5af32e75SAxel Dörfler 				      int negative);
22*5af32e75SAxel Dörfler 
23*5af32e75SAxel Dörfler extern long double __mpn_construct_long_double (mp_srcptr frac_ptr, int expt,
24*5af32e75SAxel Dörfler 						int sign);
25*5af32e75SAxel Dörfler 
26*5af32e75SAxel Dörfler 
27*5af32e75SAxel Dörfler #endif
28