From: bernhardheld Date: Fri, 30 Jan 2004 09:28:10 +0000 (+0000) Subject: * support/regression/tests/libmullong.c: fixed for 64 bit hosts X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=6dc2cb6fce003335edff6130cf55ef6190ba787c;p=fw%2Fsdcc * support/regression/tests/libmullong.c: fixed for 64 bit hosts git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3159 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/ChangeLog b/ChangeLog index 08d834a1..cc806f63 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2004-01-30 Bernhard Held + + * support/regression/tests/libmullong.c: fixed for 64 bit hosts + 2004-01-30 Erik Petrich * src/mcs51/ralloc.c (getRegPtr, getRegGpr), diff --git a/support/regression/tests/libmullong.c b/support/regression/tests/libmullong.c index d824c712..8c34a6f4 100644 --- a/support/regression/tests/libmullong.c +++ b/support/regression/tests/libmullong.c @@ -35,24 +35,24 @@ struct short i; char c2; } pack_test; - -long -mullong_wrapper (long a, long b) + +TYPE_DWORD +mullong_wrapper (TYPE_DWORD a, TYPE_DWORD b) { if (sizeof(pack_test) == 4) /* length of struct ok: use SDCC library */ return _mullong (a, b); else - { + { /* buggy gcc: use generic multiplication */ return a * b; - } + } } #else -long -mullong_wrapper (long a, long b) +TYPE_DWORD +mullong_wrapper (TYPE_DWORD a, TYPE_DWORD b) { return a * b; }