mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
Upstream patch from Debian Bug 838557
The patch fixes 128-bit multiply on mips64. This corrects a previous incorrect patch upstreamed from Debian.
This commit is contained in:
parent
998f987eda
commit
7eb4bd3f1d
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue