diff options
Diffstat (limited to 'C/LzFindMt.h')
-rw-r--r-- | C/LzFindMt.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/C/LzFindMt.h b/C/LzFindMt.h index db5923e..fcb479d 100644 --- a/C/LzFindMt.h +++ b/C/LzFindMt.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* LzFindMt.h -- multithreaded Match finder for LZ algorithms | 1 | /* LzFindMt.h -- multithreaded Match finder for LZ algorithms |
2 | 2023-03-05 : Igor Pavlov : Public domain */ | 2 | 2024-01-22 : Igor Pavlov : Public domain */ |
3 | 3 | ||
4 | #ifndef ZIP7_INC_LZ_FIND_MT_H | 4 | #ifndef ZIP7_INC_LZ_FIND_MT_H |
5 | #define ZIP7_INC_LZ_FIND_MT_H | 5 | #define ZIP7_INC_LZ_FIND_MT_H |
@@ -31,7 +31,10 @@ typedef struct | |||
31 | // UInt32 numBlocks_Sent; | 31 | // UInt32 numBlocks_Sent; |
32 | } CMtSync; | 32 | } CMtSync; |
33 | 33 | ||
34 | typedef UInt32 * (*Mf_Mix_Matches)(void *p, UInt32 matchMinPos, UInt32 *distances); | 34 | |
35 | struct CMatchFinderMt_; | ||
36 | |||
37 | typedef UInt32 * (*Mf_Mix_Matches)(struct CMatchFinderMt_ *p, UInt32 matchMinPos, UInt32 *distances); | ||
35 | 38 | ||
36 | /* kMtCacheLineDummy must be >= size_of_CPU_cache_line */ | 39 | /* kMtCacheLineDummy must be >= size_of_CPU_cache_line */ |
37 | #define kMtCacheLineDummy 128 | 40 | #define kMtCacheLineDummy 128 |
@@ -39,7 +42,7 @@ typedef UInt32 * (*Mf_Mix_Matches)(void *p, UInt32 matchMinPos, UInt32 *distance | |||
39 | typedef void (*Mf_GetHeads)(const Byte *buffer, UInt32 pos, | 42 | typedef void (*Mf_GetHeads)(const Byte *buffer, UInt32 pos, |
40 | UInt32 *hash, UInt32 hashMask, UInt32 *heads, UInt32 numHeads, const UInt32 *crc); | 43 | UInt32 *hash, UInt32 hashMask, UInt32 *heads, UInt32 numHeads, const UInt32 *crc); |
41 | 44 | ||
42 | typedef struct | 45 | typedef struct CMatchFinderMt_ |
43 | { | 46 | { |
44 | /* LZ */ | 47 | /* LZ */ |
45 | const Byte *pointerToCurPos; | 48 | const Byte *pointerToCurPos; |