summaryrefslogtreecommitdiffstats
path: root/lib/libc/ia64/gen/flt_rounds.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/ia64/gen/flt_rounds.c')
-rw-r--r--lib/libc/ia64/gen/flt_rounds.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/lib/libc/ia64/gen/flt_rounds.c b/lib/libc/ia64/gen/flt_rounds.c
deleted file mode 100644
index d650965..0000000
--- a/lib/libc/ia64/gen/flt_rounds.c
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * Written by J.T. Conklin, Apr 10, 1995
- * Public domain.
- */
-
-#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
-
-#include <float.h>
-
-static const int map[] = {
- 1, /* round to nearest */
- 3, /* round to zero */
- 2, /* round to negative infinity */
- 0 /* round to positive infinity */
-};
-
-int
-__flt_rounds(void)
-{
- int x;
-
- __asm("mov %0=ar.fpsr" : "=r" (x));
- return (map[(x >> 10) & 0x03]);
-}
OpenPOWER on IntegriCloud