mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-22 08:47:28 +01:00
Put multiply_u64__output in little-endian order
This commit is contained in:
1 parent
3a34a1d7d2
commit
0a141a7f1a
3 files changed
+5
-5
No files matched your search
@@ -512,8 +512,8 @@ wuffs_base__u64__sat_sub(uint64_t x, uint64_t y) {
|
||||
// --------
|
||||
|
||||
typedef struct {
|
||||
uint64_t hi;
|
||||
uint64_t lo;
|
||||
uint64_t hi;
|
||||
} wuffs_base__multiply_u64__output;
|
||||
|
||||
// wuffs_base__multiply_u64 returns x*y as a 128-bit value.
|
||||
@@ -531,8 +531,8 @@ wuffs_base__multiply_u64(uint64_t x, uint64_t y) {
|
||||
uint64_t w2 = t >> 32;
|
||||
w1 += x0 * y1;
|
||||
wuffs_base__multiply_u64__output o;
|
||||
o.hi = (x1 * y1) + w2 + (w1 >> 32);
|
||||
o.lo = x * y;
|
||||
o.hi = (x1 * y1) + w2 + (w1 >> 32);
|
||||
return o;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user