Debian Codegraph @

msvc/gmp/mpn/x86i/copyd.asm

raw
1
2 ; Copyright 1999, 2000, 2001, 2002 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 global ___gmpn_copyd
26
27 %ifdef DLL
28 export ___gmpn_copyd
29 %endif
30
31 %define PARAM_SIZE esp+frame+12
32 %define PARAM_SRC esp+frame+8
33 %define PARAM_DST esp+frame+4
34 %assign frame 0
35
36
37 ; eax saved esi
38 ; ebx
39 ; ecx counter
40 ; edx saved edi
41 ; esi src
42 ; edi dst
43 ; ebp
44
45 section .text
46 align 32
47
48 ___gmpn_copyd:
49 mov ecx,[PARAM_SIZE]
50 mov eax,esi
51 mov esi,[PARAM_SRC]
52 mov edx,edi
53 mov edi,[PARAM_DST]
54 lea esi,[-4+esi+ecx*4]
55 lea edi,[-4+edi+ecx*4]
56 std
57 rep movsd
58 cld
59 mov esi,eax
60 mov edi,edx
61
62 ret
63
64 end