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