Commit 7eb4bd3f authored by Kristian Nielsen's avatar Kristian Nielsen

Upstream patch from Debian Bug 838557

The patch fixes 128-bit multiply on mips64.

This corrects a previous incorrect patch upstreamed from Debian.
parent 998f987e
......@@ -193,8 +193,9 @@ DWord() {}
"a" (a), "rm" (b) : "cc");
#elif defined(__mips64)
__asm__("dmultu %2,%3" : "=d" (r.halfs_.high), "=l" (r.halfs_.low)
: "r" (a), "r" (b));
unsigned __int128 t = (unsigned __int128) a * b;
r.halfs_.high = t >> 64;
r.halfs_.low = (word) t;
#elif defined(_M_IX86)
// for testing
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment