[kaffe] CVS kaffe (guilhem): Divtest fixes for JIT.
Kaffe CVS
cvs-commits at kaffe.org
Thu Jun 23 10:05:58 PDT 2005
PatchSet 6661
Date: 2005/06/23 16:52:42
Author: guilhem
Branch: HEAD
Tag: (none)
Log:
Divtest fixes for JIT.
* kaffe/kaffevm/soft.c
(soft_div, soft_rem): Check for the divisor to return the correct
value on all processors.
Members:
ChangeLog:1.4186->1.4187
kaffe/kaffevm/soft.c:1.77->1.78
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4186 kaffe/ChangeLog:1.4187
--- kaffe/ChangeLog:1.4186 Thu Jun 23 16:43:54 2005
+++ kaffe/ChangeLog Thu Jun 23 16:52:42 2005
@@ -1,5 +1,11 @@
2005-06-23 Guilhem Lavaux <guilhem at kaffe.org>
+ * kaffe/kaffevm/soft.c
+ (soft_div, soft_rem): Check for the divisor to return the correct
+ value on all processors.
+
+2005-06-23 Guilhem Lavaux <guilhem at kaffe.org>
+
* kaffe/kaffevm/Makefile.am
(libkaffevm_la_SOURCES): Added javacall.c
Index: kaffe/kaffe/kaffevm/soft.c
diff -u kaffe/kaffe/kaffevm/soft.c:1.77 kaffe/kaffe/kaffevm/soft.c:1.78
--- kaffe/kaffe/kaffevm/soft.c:1.77 Sat May 7 16:20:10 2005
+++ kaffe/kaffe/kaffevm/soft.c Thu Jun 23 16:52:45 2005
@@ -863,12 +863,16 @@
jint
soft_div(jint v1, jint v2)
{
+ if (v2 == -1)
+ return -v1;
return (v1/v2);
}
jint
soft_rem(jint v1, jint v2)
{
+ if (v2 == -1)
+ return 0;
return (v1%v2);
}
More information about the kaffe
mailing list