summaryrefslogtreecommitdiff
path: root/contrib/masmx86/gvmat32.asm
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:24:33 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:24:33 -0700
commit0484693e1723bbab791c56f95597bd7dbe867d03 (patch)
tree8f31dbed98b4390da74a90b484f2accf8f8a3a8e /contrib/masmx86/gvmat32.asm
parent9811b53dd9e8f67015c7199fff12b5bfc6965330 (diff)
downloadzlib-1.2.2.2.tar.gz
zlib-1.2.2.2.tar.bz2
zlib-1.2.2.2.zip
zlib 1.2.2.2v1.2.2.2
Diffstat (limited to 'contrib/masmx86/gvmat32.asm')
-rw-r--r--contrib/masmx86/gvmat32.asm56
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
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()