diff options
Diffstat (limited to 'math')
-rw-r--r-- | math/e_sqrtf128.c | 14 | ||||
-rw-r--r-- | math/math.h | 3 | ||||
-rw-r--r-- | math/s_fmaxmag_template.c | 1 | ||||
-rw-r--r-- | math/s_fminmag_template.c | 1 |
4 files changed, 19 insertions, 0 deletions
diff --git a/math/e_sqrtf128.c b/math/e_sqrtf128.c new file mode 100644 index 0000000000..acf8ba45e3 --- /dev/null +++ b/math/e_sqrtf128.c @@ -0,0 +1,14 @@ +#include <math.h> +#include <stdio.h> +#include <errno.h> + +_Float128 +__ieee754_sqrtf128 (_Float128 x) +{ + fputs ("__ieee754_sqrtf128 not implemented\n", stderr); + __set_errno (ENOSYS); + return 0.0; +} +strong_alias (__ieee754_sqrtf128, __sqrtf128_finite) + +stub_warning (sqrtf128) diff --git a/math/math.h b/math/math.h index 5f006a8358..e21708045a 100644 --- a/math/math.h +++ b/math/math.h @@ -64,6 +64,9 @@ __BEGIN_DECLS # define SNANL (__builtin_nansl ("")) # endif #endif +#if __HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT) +# define SNANF128 (__builtin_nansf128 ("")) +#endif /* Get __GLIBC_FLT_EVAL_METHOD. */ #include <bits/flt-eval-method.h> diff --git a/math/s_fmaxmag_template.c b/math/s_fmaxmag_template.c index 6beef03292..f7c824886c 100644 --- a/math/s_fmaxmag_template.c +++ b/math/s_fmaxmag_template.c @@ -17,6 +17,7 @@ <http://www.gnu.org/licenses/>. */ #include <math.h> +#include <math_private.h> FLOAT M_DECL_FUNC (__fmaxmag) (FLOAT x, FLOAT y) diff --git a/math/s_fminmag_template.c b/math/s_fminmag_template.c index a1e4c2b135..1054c38411 100644 --- a/math/s_fminmag_template.c +++ b/math/s_fminmag_template.c @@ -17,6 +17,7 @@ <http://www.gnu.org/licenses/>. */ #include <math.h> +#include <math_private.h> FLOAT M_DECL_FUNC (__fminmag) (FLOAT x, FLOAT y) |