summaryrefslogtreecommitdiffstats
path: root/arch/sparc/math-emu/fcmpq.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1999-10-09 00:00:47 +0000
committerRalf Baechle <ralf@linux-mips.org>1999-10-09 00:00:47 +0000
commitd6434e1042f3b0a6dfe1b1f615af369486f9b1fa (patch)
treee2be02f33984c48ec019c654051d27964e42c441 /arch/sparc/math-emu/fcmpq.c
parent609d1e803baf519487233b765eb487f9ec227a18 (diff)
Merge with 2.3.19.
Diffstat (limited to 'arch/sparc/math-emu/fcmpq.c')
-rw-r--r--arch/sparc/math-emu/fcmpq.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/arch/sparc/math-emu/fcmpq.c b/arch/sparc/math-emu/fcmpq.c
deleted file mode 100644
index ffaeb1a1e..000000000
--- a/arch/sparc/math-emu/fcmpq.c
+++ /dev/null
@@ -1,33 +0,0 @@
-/* $Id: fcmpq.c,v 1.8 1999/05/28 13:41:48 jj Exp $
- * arch/sparc/math-emu/fcmpq.c
- *
- * Copyright (C) 1997, 1999 Jakub Jelinek (jj@ultra.linux.cz)
- * Copyright (C) 1998 Peter Maydell (pmaydell@chiark.greenend.org.uk)
- *
- */
-
-#include "sfp-util.h"
-#include "soft-fp.h"
-#include "quad.h"
-
-int FCMPQ(void *rd, void *rs2, void *rs1)
-{
- FP_DECL_EX;
- FP_DECL_Q(A); FP_DECL_Q(B);
- long ret;
- unsigned long fsr;
-
- FP_UNPACK_RAW_QP(A, rs1);
- FP_UNPACK_RAW_QP(B, rs2);
- FP_CMP_Q(ret, B, A, 3);
- if (ret == 3 && (FP_ISSIGNAN_Q(A) || FP_ISSIGNAN_Q(B)))
- FP_SET_EXCEPTION(FP_EX_INVALID);
- if (!FP_INHIBIT_RESULTS) {
- if (ret == -1) ret = 2;
- fsr = *(long *)rd;
- fsr &= ~0xc00;
- fsr |= (ret << 10);
- *(long *)rd = fsr;
- }
- FP_HANDLE_EXCEPTIONS;
-}