diff options
Diffstat (limited to 'contrib/masmx86/gvmat32.asm')
-rw-r--r-- | contrib/masmx86/gvmat32.asm | 56 |
1 files changed, 30 insertions, 26 deletions
diff --git a/contrib/masmx86/gvmat32.asm b/contrib/masmx86/gvmat32.asm index ec360e6..e841a7f 100644 --- a/contrib/masmx86/gvmat32.asm +++ b/contrib/masmx86/gvmat32.asm | |||
@@ -47,21 +47,25 @@ | |||
47 | 47 | ||
48 | 48 | ||
49 | 49 | ||
50 | ; all the +4 offsets are due to the addition of pending_buf_size (in zlib | 50 | ; all the +addstr offsets are due to the addition of pending_buf_size in zlib 1.04 |
51 | ; and adding gzhead and gzindex in zlib 1.2.2.1 | ||
51 | ; in the deflate_state structure since the asm code was first written | 52 | ; in the deflate_state structure since the asm code was first written |
52 | ; (if you compile with zlib 1.0.4 or older, remove the +4). | 53 | ; (if you compile with zlib 1.0.4 or older, set addstr to 0). |
54 | ; (if you compiler with zlib between 1.04 and 1.2.1, set addstr to 4) | ||
53 | ; Note : these value are good with a 8 bytes boundary pack structure | 55 | ; Note : these value are good with a 8 bytes boundary pack structure |
54 | dep_chain_length equ 70h+4 | 56 | |
55 | dep_window equ 2ch+4 | 57 | addstr equ 4+8 |
56 | dep_strstart equ 60h+4 | 58 | dep_chain_length equ 70h+addstr |
57 | dep_prev_length equ 6ch+4 | 59 | dep_window equ 2ch+addstr |
58 | dep_nice_match equ 84h+4 | 60 | dep_strstart equ 60h+addstr |
59 | dep_w_size equ 20h+4 | 61 | dep_prev_length equ 6ch+addstr |
60 | dep_prev equ 34h+4 | 62 | dep_nice_match equ 84h+addstr |
61 | dep_w_mask equ 28h+4 | 63 | dep_w_size equ 20h+addstr |
62 | dep_good_match equ 80h+4 | 64 | dep_prev equ 34h+addstr |
63 | dep_match_start equ 64h+4 | 65 | dep_w_mask equ 28h+addstr |
64 | dep_lookahead equ 68h+4 | 66 | dep_good_match equ 80h+addstr |
67 | dep_match_start equ 64h+addstr | ||
68 | dep_lookahead equ 68h+addstr | ||
65 | 69 | ||
66 | 70 | ||
67 | _TEXT segment | 71 | _TEXT segment |
@@ -597,19 +601,19 @@ curmatch equ esp + 60 | |||
597 | ;;; program to crash horribly, without so much as a warning at | 601 | ;;; program to crash horribly, without so much as a warning at |
598 | ;;; compile time. Sigh.) | 602 | ;;; compile time. Sigh.) |
599 | 603 | ||
600 | dsWSize equ 36 | 604 | dsWSize equ 36+addstr-4 |
601 | dsWMask equ 44 | 605 | dsWMask equ 44+addstr-4 |
602 | dsWindow equ 48 | 606 | dsWindow equ 48+addstr-4 |
603 | dsPrev equ 56 | 607 | dsPrev equ 56+addstr-4 |
604 | dsMatchLen equ 88 | 608 | dsMatchLen equ 88+addstr-4 |
605 | dsPrevMatch equ 92 | 609 | dsPrevMatch equ 92+addstr-4 |
606 | dsStrStart equ 100 | 610 | dsStrStart equ 100+addstr-4 |
607 | dsMatchStart equ 104 | 611 | dsMatchStart equ 104+addstr-4 |
608 | dsLookahead equ 108 | 612 | dsLookahead equ 108+addstr-4 |
609 | dsPrevLen equ 112 | 613 | dsPrevLen equ 112+addstr-4 |
610 | dsMaxChainLen equ 116 | 614 | dsMaxChainLen equ 116+addstr-4 |
611 | dsGoodMatch equ 132 | 615 | dsGoodMatch equ 132+addstr-4 |
612 | dsNiceMatch equ 136 | 616 | dsNiceMatch equ 136+addstr-4 |
613 | 617 | ||
614 | 618 | ||
615 | ;;; match.asm -- Pentium-Pro-optimized version of longest_match() | 619 | ;;; match.asm -- Pentium-Pro-optimized version of longest_match() |