2003-03-14 05:48:18 +00:00
|
|
|
/* 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>
|
|
|
|
|
2000-12-05 17:34:28 +00:00
|
|
|
#ifndef __GMP_H__
|
|
|
|
|
|
|
|
#include <stdlib/gmp.h>
|
|
|
|
|
2016-11-03 14:26:52 +00:00
|
|
|
#include <bits/floatn.h>
|
|
|
|
|
2000-12-05 17:34:28 +00:00
|
|
|
/* 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);
|
|
|
|
|
|
|
|
extern mp_size_t __mpn_extract_long_double (mp_ptr res_ptr, mp_size_t size,
|
|
|
|
int *expt, int *is_neg,
|
|
|
|
long double value);
|
|
|
|
|
2016-11-03 14:26:52 +00:00
|
|
|
#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);
|
|
|
|
#endif
|
|
|
|
|
2000-12-05 17:34:28 +00:00
|
|
|
extern float __mpn_construct_float (mp_srcptr frac_ptr, int expt, int sign);
|
|
|
|
|
|
|
|
extern double __mpn_construct_double (mp_srcptr frac_ptr, int expt,
|
|
|
|
int negative);
|
|
|
|
|
|
|
|
extern long double __mpn_construct_long_double (mp_srcptr frac_ptr, int expt,
|
|
|
|
int sign);
|
|
|
|
|
2016-07-25 18:10:00 +00:00
|
|
|
#if __HAVE_DISTINCT_FLOAT128
|
|
|
|
extern _Float128 __mpn_construct_float128 (mp_srcptr frac_ptr, int expt,
|
|
|
|
int sign);
|
|
|
|
#endif
|
2000-12-05 17:34:28 +00:00
|
|
|
|
|
|
|
#endif
|