Previous 15994 Revisions Next

r1304 Tuesday 20th November, 2007 at 02:49:02 UTC by R. Belmont
[SDLMESS] #if 0'd out incorrect validity checks. Aaron will fix these for u1.
[src/emu]validity.c

src/emu/validity.c
r1303r1304
229229   UINT32 resultu32, expectedu32;
230230   INT64 resulti64, expectedi64;
231231   UINT64 resultu64, expectedu64;
232   INT32 remainder, expremainder;
233   UINT32 uremainder, expuremainder;
232//   INT32 remainder, expremainder;
233//   UINT32 uremainder, expuremainder;
234234   int error = FALSE;
235235
236236   resulti64 = mul_32x32(testi32a, testi32b);
r1303r1304
263263   if (resultu32 != expectedu32)
264264      { mame_printf_error("Error testing mulu_32x32_shift (%08X x %08X) >> 7 = %08X (expected %08X)\n", testu32a, testu32b, resultu32, expectedu32); error = TRUE; }
265265
266#if 0
266267   while ((INT64)testi32a * (INT64)0x7fffffff < testi64a)
267268      testi64a /= 2;
268269   while ((UINT64)testu32a * (UINT64)0xffffffff < testu64a)
r1303r1304
300301   if (resultu32 != expectedu32)
301302      { mame_printf_error("Error testing modu_64x32 (%08X%08X / %08X) = %08X (expected %08X)\n", (UINT32)(testu64a >> 32), (UINT32)testu64a, testu32a, resultu32, expectedu32); error = TRUE; }
302303
303#if 0
304304   while ((INT64)testi32a * (INT64)0x7fffffff < ((INT32)testi64a << 3))
305305      testi64a /= 2;
306306   while ((UINT64)testu32a * (UINT64)0xffffffff < ((UINT32)testu64a << 3))

Previous 15994 Revisions Next


© 1998-2018 The MESS Team