src/emu/validity.c
| r1303 | r1304 | |
| 229 | 229 | UINT32 resultu32, expectedu32; |
| 230 | 230 | INT64 resulti64, expectedi64; |
| 231 | 231 | UINT64 resultu64, expectedu64; |
| 232 | | INT32 remainder, expremainder; |
| 233 | | UINT32 uremainder, expuremainder; |
| 232 | // INT32 remainder, expremainder; |
| 233 | // UINT32 uremainder, expuremainder; |
| 234 | 234 | int error = FALSE; |
| 235 | 235 | |
| 236 | 236 | resulti64 = mul_32x32(testi32a, testi32b); |
| r1303 | r1304 | |
| 263 | 263 | if (resultu32 != expectedu32) |
| 264 | 264 | { mame_printf_error("Error testing mulu_32x32_shift (%08X x %08X) >> 7 = %08X (expected %08X)\n", testu32a, testu32b, resultu32, expectedu32); error = TRUE; } |
| 265 | 265 | |
| 266 | #if 0 |
| 266 | 267 | while ((INT64)testi32a * (INT64)0x7fffffff < testi64a) |
| 267 | 268 | testi64a /= 2; |
| 268 | 269 | while ((UINT64)testu32a * (UINT64)0xffffffff < testu64a) |
| r1303 | r1304 | |
| 300 | 301 | if (resultu32 != expectedu32) |
| 301 | 302 | { mame_printf_error("Error testing modu_64x32 (%08X%08X / %08X) = %08X (expected %08X)\n", (UINT32)(testu64a >> 32), (UINT32)testu64a, testu32a, resultu32, expectedu32); error = TRUE; } |
| 302 | 303 | |
| 303 | | #if 0 |
| 304 | 304 | while ((INT64)testi32a * (INT64)0x7fffffff < ((INT32)testi64a << 3)) |
| 305 | 305 | testi64a /= 2; |
| 306 | 306 | while ((UINT64)testu32a * (UINT64)0xffffffff < ((UINT32)testu64a << 3)) |