summaryrefslogtreecommitdiff
path: root/contrib/masmx86
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/masmx86')
-rw-r--r--contrib/masmx86/gvmat32.asm56
-rw-r--r--contrib/masmx86/inffas32.asm21
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
600dsWSize equ 36 604dsWSize equ 36+addstr-4
601dsWMask equ 44 605dsWMask equ 44+addstr-4
602dsWindow equ 48 606dsWindow equ 48+addstr-4
603dsPrev equ 56 607dsPrev equ 56+addstr-4
604dsMatchLen equ 88 608dsMatchLen equ 88+addstr-4
605dsPrevMatch equ 92 609dsPrevMatch equ 92+addstr-4
606dsStrStart equ 100 610dsStrStart equ 100+addstr-4
607dsMatchStart equ 104 611dsMatchStart equ 104+addstr-4
608dsLookahead equ 108 612dsLookahead equ 108+addstr-4
609dsPrevLen equ 112 613dsPrevLen equ 112+addstr-4
610dsMaxChainLen equ 116 614dsMaxChainLen equ 116+addstr-4
611dsGoodMatch equ 132 615dsGoodMatch equ 132+addstr-4
612dsNiceMatch equ 136 616dsNiceMatch 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
84dd 4294967295 84dd 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
89addstr equ 4
87 90
88mode_state equ 0 ;/* state->mode */ 91mode_state equ 0 ;/* state->mode */
89wsize_state equ 32 ;/* state->wsize */ 92wsize_state equ 32+addstr ;/* state->wsize */
90write_state equ (36+4) ;/* state->write */ 93write_state equ (36+4+addstr) ;/* state->write */
91window_state equ (40+4) ;/* state->window */ 94window_state equ (40+4+addstr) ;/* state->window */
92hold_state equ (44+4) ;/* state->hold */ 95hold_state equ (44+4+addstr) ;/* state->hold */
93bits_state equ (48+4) ;/* state->bits */ 96bits_state equ (48+4+addstr) ;/* state->bits */
94lencode_state equ (64+4) ;/* state->lencode */ 97lencode_state equ (64+4+addstr) ;/* state->lencode */
95distcode_state equ (68+4) ;/* state->distcode */ 98distcode_state equ (68+4+addstr) ;/* state->distcode */
96lenbits_state equ (72+4) ;/* state->lenbits */ 99lenbits_state equ (72+4+addstr) ;/* state->lenbits */
97distbits_state equ (76+4) ;/* state->distbits */ 100distbits_state equ (76+4+addstr) ;/* state->distbits */
98 101
99 102
100;;SECTION .text 103;;SECTION .text