summaryrefslogtreecommitdiff
path: root/lib/libc/arch/mvme88k/gen/flt_rounds.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/arch/mvme88k/gen/flt_rounds.c')
-rw-r--r--lib/libc/arch/mvme88k/gen/flt_rounds.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/lib/libc/arch/mvme88k/gen/flt_rounds.c b/lib/libc/arch/mvme88k/gen/flt_rounds.c
deleted file mode 100644
index c3f6e4f2c58..00000000000
--- a/lib/libc/arch/mvme88k/gen/flt_rounds.c
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Written by J.T. Conklin, Apr 10, 1995
- * Public domain.
- */
-
-#include <sys/types.h>
-#include <machine/float.h>
-
-/*
- * Ported to 88k (Nivas Madhur)
- */
-
-static const int map[] = {
- 0, /* round to nearest */
- 1, /* round to zero */
- 2, /* round to negative infinity */
- 3 /* round to positive infinity */
-};
-
-int
-__flt_rounds()
-{
- int x;
-
- __asm__("fldcr %0,fcr63" : "=r" (x));
- return map[(x >> 14) & 0x03];
-}