diff options
Diffstat (limited to 'xdelta3')
-rw-r--r-- | xdelta3/xdelta3-internal.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xdelta3/xdelta3-internal.h b/xdelta3/xdelta3-internal.h index 8ef0bfa..e3568e8 100644 --- a/xdelta3/xdelta3-internal.h +++ b/xdelta3/xdelta3-internal.h | |||
@@ -342,6 +342,7 @@ xd3_emit_uint64_t (xd3_stream *stream, xd3_output **output, uint64_t num) | |||
342 | #define xd3_large_cksum xd3_large32_cksum | 342 | #define xd3_large_cksum xd3_large32_cksum |
343 | #define xd3_large_cksum_update xd3_large32_cksum_update | 343 | #define xd3_large_cksum_update xd3_large32_cksum_update |
344 | #define xd3_hash_multiplier xd3_hash_multiplier32 | 344 | #define xd3_hash_multiplier xd3_hash_multiplier32 |
345 | #define XD3_MAXSRCWINSZ (1ULL << 31) | ||
345 | #elif SIZEOF_USIZE_T == 8 | 346 | #elif SIZEOF_USIZE_T == 8 |
346 | #define USIZE_T_MAX UINT64_MAX | 347 | #define USIZE_T_MAX UINT64_MAX |
347 | #define xd3_decode_size xd3_decode_uint64_t | 348 | #define xd3_decode_size xd3_decode_uint64_t |
@@ -351,6 +352,7 @@ xd3_emit_uint64_t (xd3_stream *stream, xd3_output **output, uint64_t num) | |||
351 | #define xd3_large_cksum xd3_large64_cksum | 352 | #define xd3_large_cksum xd3_large64_cksum |
352 | #define xd3_large_cksum_update xd3_large64_cksum_update | 353 | #define xd3_large_cksum_update xd3_large64_cksum_update |
353 | #define xd3_hash_multiplier xd3_hash_multiplier64 | 354 | #define xd3_hash_multiplier xd3_hash_multiplier64 |
355 | #define XD3_MAXSRCWINSZ (1ULL << 61) | ||
354 | #endif /* SIZEOF_USIZE_T */ | 356 | #endif /* SIZEOF_USIZE_T */ |
355 | 357 | ||
356 | #if SIZEOF_XOFF_T == 4 | 358 | #if SIZEOF_XOFF_T == 4 |
@@ -387,6 +389,5 @@ uint64_t xd3_large64_cksum_update (xd3_hash_cfg *cfg, uint64_t cksum, | |||
387 | 389 | ||
388 | #define MAX_LRU_SIZE 32U | 390 | #define MAX_LRU_SIZE 32U |
389 | #define XD3_MINSRCWINSZ (XD3_ALLOCSIZE * MAX_LRU_SIZE) | 391 | #define XD3_MINSRCWINSZ (XD3_ALLOCSIZE * MAX_LRU_SIZE) |
390 | #define XD3_MAXSRCWINSZ (1ULL << 31) | ||
391 | 392 | ||
392 | #endif // XDELTA3_INTERNAL_H__ | 393 | #endif // XDELTA3_INTERNAL_H__ |