Updates to Tomato RAF including NGINX && PHP
[tomato.git] / release / src / router / lzo / asm / i386 / src / enter.ash
blobc2aa0817384b0a26b7a49716306bf81f2aed31e0
1 /* enter.ash -- LZO assembler stuff
3    This file is part of the LZO real-time data compression library.
5    Copyright (C) 2011 Markus Franz Xaver Johannes Oberhumer
6    Copyright (C) 2010 Markus Franz Xaver Johannes Oberhumer
7    Copyright (C) 2009 Markus Franz Xaver Johannes Oberhumer
8    Copyright (C) 2008 Markus Franz Xaver Johannes Oberhumer
9    Copyright (C) 2007 Markus Franz Xaver Johannes Oberhumer
10    Copyright (C) 2006 Markus Franz Xaver Johannes Oberhumer
11    Copyright (C) 2005 Markus Franz Xaver Johannes Oberhumer
12    Copyright (C) 2004 Markus Franz Xaver Johannes Oberhumer
13    Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
14    Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
15    Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
16    Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
17    Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
18    Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
19    Copyright (C) 1997 Markus Franz Xaver Johannes Oberhumer
20    Copyright (C) 1996 Markus Franz Xaver Johannes Oberhumer
21    All Rights Reserved.
23    The LZO library is free software; you can redistribute it and/or
24    modify it under the terms of the GNU General Public License as
25    published by the Free Software Foundation; either version 2 of
26    the License, or (at your option) any later version.
28    The LZO library is distributed in the hope that it will be useful,
29    but WITHOUT ANY WARRANTY; without even the implied warranty of
30    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
31    GNU General Public License for more details.
33    You should have received a copy of the GNU General Public License
34    along with the LZO library; see the file COPYING.
35    If not, write to the Free Software Foundation, Inc.,
36    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38    Markus F.X.J. Oberhumer
39    <markus@oberhumer.com>
40    http://www.oberhumer.com/opensource/lzo/
41  */
44 /***********************************************************************
46 ************************************************************************/
48         pushl   %ebp
49         pushl   %edi
50         pushl   %esi
51         pushl   %ebx
52         pushl   %ecx
53         pushl   %edx
54         subl    $12,%esp
56         cld
58         movl    INP,%esi
59         movl    OUTP,%edi
60 #if defined(N_3_EBP)
61         movl    $3,%ebp
62 #endif
63 #if defined(N_255_EBP)
64         movl    $255,%ebp
65 #endif
67 #if defined(LZO_TEST_DECOMPRESS_OVERRUN_INPUT)
68 #if defined(INIT_OVERRUN)
69         INIT_OVERRUN
70 # undef INIT_OVERRUN
71 #endif
72         leal    -3(%esi),%eax       /* 3 == length of EOF code */
73         addl    INS,%eax
74         movl    %eax,INEND
75 #endif
77 #if defined(LZO_TEST_DECOMPRESS_OVERRUN_OUTPUT)
78 #if defined(INIT_OVERRUN)
79         INIT_OVERRUN
80 # undef INIT_OVERRUN
81 #endif
82         movl    %edi,%eax
83         movl    OUTS,%edx
84         addl    (%edx),%eax
85         movl    %eax,OUTEND
86 #endif
90 vi:ts=4