diff options
Diffstat (limited to 'StdLib/LibC/Main/Ipf')
-rw-r--r-- | StdLib/LibC/Main/Ipf/FpuRmode.s | 12 | ||||
-rw-r--r-- | StdLib/LibC/Main/Ipf/flt_rounds.c | 25 |
2 files changed, 0 insertions, 37 deletions
diff --git a/StdLib/LibC/Main/Ipf/FpuRmode.s b/StdLib/LibC/Main/Ipf/FpuRmode.s deleted file mode 100644 index caf4fba207..0000000000 --- a/StdLib/LibC/Main/Ipf/FpuRmode.s +++ /dev/null @@ -1,12 +0,0 @@ - .globl internal_FPU_rmode
- .proc internal_FPU_rmode
-internal_FPU_rmode::
- // get the floating point rounding control bits
- // bits 10 and 11 are the rc bits from main status field fpsr.sf0
- mov r8= ar.fpsr;;
- shr r8 = r8, 10
- mov r9 = 3;;
- and r8 = r8, r9;;
- br.sptk.few b0
-
- .endp internal_FPU_rmode
diff --git a/StdLib/LibC/Main/Ipf/flt_rounds.c b/StdLib/LibC/Main/Ipf/flt_rounds.c deleted file mode 100644 index 0a18bb7390..0000000000 --- a/StdLib/LibC/Main/Ipf/flt_rounds.c +++ /dev/null @@ -1,25 +0,0 @@ -/*
- * Written by J.T. Conklin, Apr 10, 1995
- * Public domain.
- */
-
-#include <sys/EfiCdefs.h>
-/* __FBSDID("$FreeBSD: src/lib/libc/ia64/gen/flt_rounds.c,v 1.1 2004/07/19 08:17:24 das Exp $"); */
-
-#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]);
-}
|