[kaffe] [patch] Re: Computing remainders
Dalibor Topic
robilad@yahoo.com
Mon Jun 30 01:07:01 2003
--0-1158437493-1056960579=:57621
Content-Type: text/plain; charset=us-ascii
Content-Id:
Content-Disposition: inline
Hi Tony, hallo Marc
I've attached a patch for the interpreter that should fix this issue for
gcc-compiled interpreter on all platforms. It works for me on mips-irix and
i386-linux interpreters.
* It removes the *_MODULO_BROKEN and *_DIVISION_BROKEN test from the configure
script, since it's pointless to test for undefined behaviour.
* It changes long_rem and int_rem definitions to explicitely test for -1 as the
dividend, and return 0 in that case, like the spec demands.
* It also fixes int_div and long_div to check for MIN_VALUE / -1 and return
MIN_VALUE in that case, according to the spec.
* It adds JINT_MIN and JLONG_MIN to jtypes.h.in.
could you give it a try on m68k and powerpc?
cheers,
dalibor topic
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
--0-1158437493-1056960579=:57621
Content-Type: application/octet-stream; name="division.diff"
Content-Transfer-Encoding: base64
Content-Description: division.diff
Content-Disposition: attachment; filename="division.diff"
T25seSBpbiBrYWZmZTogYXV0b200dGUuY2FjaGUKZGlmZiAtdXIgL2hvbWUv
dG9waWMvQ1ZTL2thZmZlL2NvbmZpZy9jb25maWcuaC5pbiBrYWZmZS9jb25m
aWcvY29uZmlnLmguaW4KLS0tIC9ob21lL3RvcGljL0NWUy9rYWZmZS9jb25m
aWcvY29uZmlnLmguaW4JMjAwMy0wNi0yNiAwNjowMjowMy4wMDAwMDAwMDAg
LTA0MDAKKysrIGthZmZlL2NvbmZpZy9jb25maWcuaC5pbgkyMDAzLTA2LTI5
IDEzOjQ2OjQzLjAwMDAwMDAwMCAtMDQwMApAQCAtNjAyLDE1ICs2MDIsNiBA
QAogLyogRG8gd2UgZW5hYmxlIHN0YXRzIGluIHRoZSB2bT8gKi8KICN1bmRl
ZiBLQUZGRV9TVEFUUwogCi0vKiBEZWZpbmUgaWYgTE9OR19NSU4gLyAtMWwg
cHJvZHVjZXMgYW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isjZGVmaW5lIGRpdl9pbnQodCwgZjEsIGYyKQkJCSh0KVsw
XS52LnRpbnQgPSAoKCgoKGYxKVswXS52LnRpbnQpID09IEpJTlRfTUlOKSAm
JiAoKChmMilbMF0udi50aW50KSA9PSAtMSkpID8gSklOVF9NSU4gOiAoKChm
MSlbMF0udi50aW50KSAvICgoZjIpWzBdLnYudGludCkpKQorI2RlZmluZSBy
ZW1faW50KHQsIGYxLCBmMikgICAgICAgICAgICAgICAgICAgICAgKHQpWzBd
LnYudGludCA9ICgoKChmMilbMF0udi50aW50KSAhPSAtMSkgPyAoKChmMSlb
MF0udi50aW50KSAlICgoZjIpWzBdLnYudGludCkpIDogMCkKICNkZWZpbmUJ
bmVnX2ludCh0LCBmKQkJCQkodClbMF0udi50aW50ID0gLSgoZilbMF0udi50
aW50KQogI2RlZmluZQlsc2hsX2ludF9jb25zdCh0LCBmLCBjKQkJCSh0KVsw
XS52LnRpbnQgPSAoKGYpWzBdLnYudGludCkgPDwgKGMgJiAzMSkKICNkZWZp
bmUJbHNobF9pbnQodCwgZjEsIGYyKQkJCSh0KVswXS52LnRpbnQgPSAoKGYx
KVswXS52LnRpbnQpIDw8ICgoZjIpWzBdLnYudGludCAmIDMxKQpPbmx5IGlu
IGthZmZlL2thZmZlL2thZmZldm0vaW50cnA6IGljb2RlLmgufjEuMTUufgpP
bmx5IGluIGthZmZlL2xpYmx0ZGw6IGF1dG9tNHRlLmNhY2hlCg==
--0-1158437493-1056960579=:57621--