Debian Codegraph @

msvc/gmp/mpn/x86i/pentium4/copyi.asm

raw
1
2 ; Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
3 ;
4 ; This file is part of the GNU MP Library.
5 ;
6 ; The GNU MP Library is free software; you can redistribute it and/or
7 ; modify it under the terms of the GNU Lesser General Public License as
8 ; published by the Free Software Foundation; either version 2.1 of the
9 ; License, or (at your option) any later version.
10 ;
11 ; The GNU MP Library is distributed in the hope that it will be useful,
12 ; but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 ; Lesser General Public License for more details.
15 ;
16 ; You should have received a copy of the GNU Lesser General Public
17 ; License along with the GNU MP Library; see the file COPYING.LIB. If
18 ; not, write to the Free Software Foundation, Inc., 59 Temple Place -
19 ; Suite 330, Boston, MA 02111-1307, USA.
20 ;
21 ; Translation of AT&T syntax code by Brian Gladman
22
23 %include "..\x86i.inc"
24
25 section .text
26
27 global ___gmpn_copyi
28 %ifdef DLL
29 export ___gmpn_copyi
30 %endif
31
32 align 8
33 ___gmpn_copyi:
34 mov ecx, [12+esp]
35 cmp ecx, 150
36 jg rm
37 mov eax, [8+esp]
38 mov edx, [4+esp]
39 mov [12+esp],ebx
40 test ecx,ecx
41 jz nd
42 oop:
43 mov ebx, [eax]
44 lea eax, [4+eax]
45 add ecx, -1
46 mov [edx],ebx
47 lea edx, [4+edx]
48 jnz oop
49 nd:
50 mov ebx, [12+esp]
51 ret
52 rm:
53 cld
54 mov eax,esi
55 mov esi, [8+esp]
56 mov edx,edi
57 mov edi, [4+esp]
58 rep movsd
59 mov esi,eax
60 mov edi,edx
61 ret
62
63 end