diff options
Diffstat (limited to 'contrib/masmx86')
-rw-r--r-- | contrib/masmx86/gvmat32.asm | 56 | ||||
-rw-r--r-- | contrib/masmx86/inffas32.asm | 21 |
2 files changed, 42 insertions, 35 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() |
diff --git a/contrib/masmx86/inffas32.asm b/contrib/masmx86/inffas32.asm index 7d76e1c..531bcef 100644 --- a/contrib/masmx86/inffas32.asm +++ b/contrib/masmx86/inffas32.asm | |||
@@ -84,17 +84,20 @@ dd 2147483647 | |||
84 | dd 4294967295 | 84 | dd 4294967295 |
85 | 85 | ||
86 | 86 | ||
87 | ; head was added in zlib 1.2.2.1, so we add addstr | ||
88 | ; set addstr to 0 with zlib 1.2.1 of below | ||
89 | addstr equ 4 | ||
87 | 90 | ||
88 | mode_state equ 0 ;/* state->mode */ | 91 | mode_state equ 0 ;/* state->mode */ |
89 | wsize_state equ 32 ;/* state->wsize */ | 92 | wsize_state equ 32+addstr ;/* state->wsize */ |
90 | write_state equ (36+4) ;/* state->write */ | 93 | write_state equ (36+4+addstr) ;/* state->write */ |
91 | window_state equ (40+4) ;/* state->window */ | 94 | window_state equ (40+4+addstr) ;/* state->window */ |
92 | hold_state equ (44+4) ;/* state->hold */ | 95 | hold_state equ (44+4+addstr) ;/* state->hold */ |
93 | bits_state equ (48+4) ;/* state->bits */ | 96 | bits_state equ (48+4+addstr) ;/* state->bits */ |
94 | lencode_state equ (64+4) ;/* state->lencode */ | 97 | lencode_state equ (64+4+addstr) ;/* state->lencode */ |
95 | distcode_state equ (68+4) ;/* state->distcode */ | 98 | distcode_state equ (68+4+addstr) ;/* state->distcode */ |
96 | lenbits_state equ (72+4) ;/* state->lenbits */ | 99 | lenbits_state equ (72+4+addstr) ;/* state->lenbits */ |
97 | distbits_state equ (76+4) ;/* state->distbits */ | 100 | distbits_state equ (76+4+addstr) ;/* state->distbits */ |
98 | 101 | ||
99 | 102 | ||
100 | ;;SECTION .text | 103 | ;;SECTION .text |