patch-2.2.11 linux/arch/alpha/math-emu/cmptxx.c
Next file: linux/arch/alpha/math-emu/div128.c
Previous file: linux/arch/alpha/math-emu/Makefile
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Mon Aug 9 12:04:57 1999
- Orig file:
v2.2.10/linux/arch/alpha/math-emu/cmptxx.c
- Orig date:
Wed Dec 31 16:00:00 1969
diff -u --recursive --new-file v2.2.10/linux/arch/alpha/math-emu/cmptxx.c linux/arch/alpha/math-emu/cmptxx.c
@@ -0,0 +1,23 @@
+#include "soft-fp.h"
+#include "double.h"
+
+int CMPTXX(void *rc, void *rb, void *ra, int type)
+{
+ FP_DECL_D(A); FP_DECL_D(B);
+ long ret;
+
+ __FP_UNPACK_D(A, ra);
+ __FP_UNPACK_D(B, rb);
+ FP_CMP_D(ret, A, B, 3);
+ if(ret == type) {
+ *(unsigned long *)rc = 0x4000000000000000;
+ }
+ else if((type == CMPTXX_LE) &&
+ ((ret == CMPTXX_LT) || (ret == CMPTXX_EQ))) {
+ *(unsigned long *)rc = 0x4000000000000000;
+ }
+ else {
+ *(unsigned long *)rc = 0;
+ }
+ return 0;
+}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)