aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2019-10-22 10:08:32 -0500
committerluigi1111 <luigi1111w@gmail.com>2019-10-22 10:08:32 -0500
commit84ce43a23956ac6b5e07dc4c7cd5777d3992046f (patch)
treeb78f4bf073c82576e2ee21d9d33ae900ef14cc6c /contrib/epee/include
parentMerge pull request #5964 (diff)
parentSupport median block size > 4 GB (diff)
downloadmonero-84ce43a23956ac6b5e07dc4c7cd5777d3992046f.tar.xz
Merge pull request #5966
be82c40 Support median block size > 4 GB (moneromooo-monero)
Diffstat (limited to 'contrib/epee/include')
-rw-r--r--contrib/epee/include/int-util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/epee/include/int-util.h b/contrib/epee/include/int-util.h
index 8ef5be40a..939c018ea 100644
--- a/contrib/epee/include/int-util.h
+++ b/contrib/epee/include/int-util.h
@@ -129,6 +129,9 @@ static inline uint32_t div128_32(uint64_t dividend_hi, uint64_t dividend_lo, uin
return remainder;
}
+// Long divisor with 2^64 base
+void div128_64(uint64_t dividend_hi, uint64_t dividend_lo, uint64_t divisor, uint64_t* quotient_hi, uint64_t *quotient_lo, uint64_t *remainder_hi, uint64_t *remainder_lo);
+
#define IDENT16(x) ((uint16_t) (x))
#define IDENT32(x) ((uint32_t) (x))
#define IDENT64(x) ((uint64_t) (x))