catch one more case in umult64 (Tomi Jylhä-Ollila)

This commit is contained in:
leitner
2007-12-15 19:45:48 +00:00
parent 2f0a406d44
commit 72eba9bf79
4 changed files with 11 additions and 1 deletions

View File

@@ -19,5 +19,7 @@ int main() {
assert(imult64(-0x4000000000000000ll,2,&c)==1 && c==(int64)-0x8000000000000000ll);
assert(imult64(0x3fffffffffffffffll,2,&c)==1 && c==0x7ffffffffffffffell);
assert(umult64(0x0000000100000002ull,0x00000000ffffffffull,&c)==0);
return 0;
}