[kaffe] CVS kaffe (robilad): simplified float comparisons in interpreter
Kaffe CVS
cvs-commits at kaffe.org
Mon Feb 11 15:27:38 PST 2008
PatchSet 7741
Date: 2008/02/11 23:26:08
Author: robilad
Branch: HEAD
Tag: (none)
Log:
simplified float comparisons in interpreter
2008-02-12 Dalibor Topic <robilad at kaffe.org>
* kaffe/kaffevm/intrp/icode.h (cmpg_float, cmpl_float):
Use soft_dcmpg and soft_dcmpl internally, as they
produce the same results, since the float parameters
are automatically widened to equivalent doubles.
Members:
ChangeLog:1.5241->1.5242
kaffe/kaffevm/intrp/icode.h:1.27->1.28
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.5241 kaffe/ChangeLog:1.5242
--- kaffe/ChangeLog:1.5241 Mon Feb 11 21:49:57 2008
+++ kaffe/ChangeLog Mon Feb 11 23:26:08 2008
@@ -1,3 +1,10 @@
+2008-02-12 Dalibor Topic <robilad at kaffe.org>
+
+ * kaffe/kaffevm/intrp/icode.h (cmpg_float, cmpl_float):
+ Use soft_dcmpg and soft_dcmpl internally, as they
+ produce the same results, since the float parameters
+ are automatically widened to equivalent doubles.
+
2008-02-11 Dalibor Topic <robilad at kaffe.org>
* kaffe/kaffevm/soft.c (soft_dcmp): Documented.
Index: kaffe/kaffe/kaffevm/intrp/icode.h
diff -u kaffe/kaffe/kaffevm/intrp/icode.h:1.27 kaffe/kaffe/kaffevm/intrp/icode.h:1.28
--- kaffe/kaffe/kaffevm/intrp/icode.h:1.27 Mon Sep 4 19:12:54 2006
+++ kaffe/kaffe/kaffevm/intrp/icode.h Mon Feb 11 23:26:09 2008
@@ -272,9 +272,9 @@
#define neg_float(t, f) (t)[0].v.tfloat = -(f)[0].v.tfloat
#define neg_double(t, f) (t)[0].v.tdouble = -(f)[0].v.tdouble
-#define cmpg_float(t, f1, f2) (t)[0].v.tint = soft_fcmpg((f1)[0].v.tfloat, (f2)[0].v.tfloat)
+#define cmpg_float(t, f1, f2) (t)[0].v.tint = soft_dcmpg((f1)[0].v.tfloat, (f2)[0].v.tfloat)
#define cmpg_double(t, f1, f2) (t)[0].v.tint = soft_dcmpg((f1)[0].v.tdouble, (f2)[0].v.tdouble)
-#define cmpl_float(t, f1, f2) (t)[0].v.tint = soft_fcmpl((f1)[0].v.tfloat, (f2)[0].v.tfloat)
+#define cmpl_float(t, f1, f2) (t)[0].v.tint = soft_dcmpl((f1)[0].v.tfloat, (f2)[0].v.tfloat)
#define cmpl_double(t, f1, f2) (t)[0].v.tint = soft_dcmpl((f1)[0].v.tdouble, (f2)[0].v.tdouble)
#define cvt_int_float(t, f) (t)[0].v.tfloat = (f)[0].v.tint
More information about the kaffe
mailing list