aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/ia64/fpu
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/ia64/fpu')
-rw-r--r--sysdeps/ia64/fpu/Dist1
-rw-r--r--sysdeps/ia64/fpu/Makefile6
-rw-r--r--sysdeps/ia64/fpu/libc_libm_error.c13
3 files changed, 18 insertions, 2 deletions
diff --git a/sysdeps/ia64/fpu/Dist b/sysdeps/ia64/fpu/Dist
index ae51e76a8b..cc2617607a 100644
--- a/sysdeps/ia64/fpu/Dist
+++ b/sysdeps/ia64/fpu/Dist
@@ -1,3 +1,4 @@
+libc_libm_error.c
libm_atan2_reg.S
libm_error.c
libm_reduce.S
diff --git a/sysdeps/ia64/fpu/Makefile b/sysdeps/ia64/fpu/Makefile
index e5237ffa84..dee9ba78c7 100644
--- a/sysdeps/ia64/fpu/Makefile
+++ b/sysdeps/ia64/fpu/Makefile
@@ -1,7 +1,9 @@
ifeq ($(subdir),math)
libm-sysdep_routines += libm_atan2_reg s_matherrf s_matherrl libm_reduce \
- libm_tan
+ libm_tan libm_error \
+ $(calls) $(calls:=f) $(long-c-$(long-double-fcts)) \
+ libm_frexp4 libm_frexp4f libm_frexp4l
-routines += libm_frexp4 libm_frexp4f libm_frexp4l libm_error
+routines += libm_frexp4 libm_frexp4f libm_frexp4l libc_libm_error
CPPFLAGS += -DSIZE_INT_32
endif
diff --git a/sysdeps/ia64/fpu/libc_libm_error.c b/sysdeps/ia64/fpu/libc_libm_error.c
new file mode 100644
index 0000000000..83a0bae4df
--- /dev/null
+++ b/sysdeps/ia64/fpu/libc_libm_error.c
@@ -0,0 +1,13 @@
+/* Error handling in libm-style for libc. */
+
+#include <errno.h>
+
+#include "libm_support.h"
+
+
+void
+__libm_error_support (void *arg1, void *arg2, void *retval,
+ error_types input_tag)
+{
+ __set_errno (ERANGE);
+}