diff options
author | David Walter Seikel | 2011-06-27 15:59:06 +1000 |
---|---|---|
committer | David Walter Seikel | 2011-06-27 15:59:06 +1000 |
commit | 92bd9b2503e7dd927f416cb9b17f169ea925fa56 (patch) | |
tree | f0f3776cfc0c6e6224db66f5678387c580095f16 /linden/indra/libgcrypt/libgcrypt-1.2.2/mpi/i586/mpih-sub1.S | |
parent | Make use of the new packaging stuff from upstream. (diff) | |
download | meta-impy-92bd9b2503e7dd927f416cb9b17f169ea925fa56.zip meta-impy-92bd9b2503e7dd927f416cb9b17f169ea925fa56.tar.gz meta-impy-92bd9b2503e7dd927f416cb9b17f169ea925fa56.tar.bz2 meta-impy-92bd9b2503e7dd927f416cb9b17f169ea925fa56.tar.xz |
Clean up line endings, execute bits, and other bits of errant nonsense from Windows.
Diffstat (limited to 'linden/indra/libgcrypt/libgcrypt-1.2.2/mpi/i586/mpih-sub1.S')
-rw-r--r--[-rwxr-xr-x] | linden/indra/libgcrypt/libgcrypt-1.2.2/mpi/i586/mpih-sub1.S | 284 |
1 files changed, 142 insertions, 142 deletions
diff --git a/linden/indra/libgcrypt/libgcrypt-1.2.2/mpi/i586/mpih-sub1.S b/linden/indra/libgcrypt/libgcrypt-1.2.2/mpi/i586/mpih-sub1.S index 4197428..ef2d580 100755..100644 --- a/linden/indra/libgcrypt/libgcrypt-1.2.2/mpi/i586/mpih-sub1.S +++ b/linden/indra/libgcrypt/libgcrypt-1.2.2/mpi/i586/mpih-sub1.S | |||
@@ -1,142 +1,142 @@ | |||
1 | /* i80586 sub_n -- Sub two limb vectors of the same length > 0 and store | 1 | /* i80586 sub_n -- Sub two limb vectors of the same length > 0 and store |
2 | * sum in a third limb vector. | 2 | * sum in a third limb vector. |
3 | * | 3 | * |
4 | * Copyright (C) 1992, 1994, 1995, 1998, | 4 | * Copyright (C) 1992, 1994, 1995, 1998, |
5 | * 2001, 2002 Free Software Foundation, Inc. | 5 | * 2001, 2002 Free Software Foundation, Inc. |
6 | * | 6 | * |
7 | * This file is part of Libgcrypt. | 7 | * This file is part of Libgcrypt. |
8 | * | 8 | * |
9 | * Libgcrypt is free software; you can redistribute it and/or modify | 9 | * Libgcrypt is free software; you can redistribute it and/or modify |
10 | * it under the terms of the GNU Lesser General Public License as | 10 | * it under the terms of the GNU Lesser General Public License as |
11 | * published by the Free Software Foundation; either version 2.1 of | 11 | * published by the Free Software Foundation; either version 2.1 of |
12 | * the License, or (at your option) any later version. | 12 | * the License, or (at your option) any later version. |
13 | * | 13 | * |
14 | * Libgcrypt is distributed in the hope that it will be useful, | 14 | * Libgcrypt is distributed in the hope that it will be useful, |
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
17 | * GNU Lesser General Public License for more details. | 17 | * GNU Lesser General Public License for more details. |
18 | * | 18 | * |
19 | * You should have received a copy of the GNU Lesser General Public | 19 | * You should have received a copy of the GNU Lesser General Public |
20 | * License along with this program; if not, write to the Free Software | 20 | * License along with this program; if not, write to the Free Software |
21 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | 21 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
22 | * | 22 | * |
23 | * Note: This code is heavily based on the GNU MP Library. | 23 | * Note: This code is heavily based on the GNU MP Library. |
24 | * Actually it's the same code with only minor changes in the | 24 | * Actually it's the same code with only minor changes in the |
25 | * way the data is stored; this is to support the abstraction | 25 | * way the data is stored; this is to support the abstraction |
26 | * of an optional secure memory allocation which may be used | 26 | * of an optional secure memory allocation which may be used |
27 | * to avoid revealing of sensitive data due to paging etc. | 27 | * to avoid revealing of sensitive data due to paging etc. |
28 | */ | 28 | */ |
29 | 29 | ||
30 | 30 | ||
31 | #include "sysdep.h" | 31 | #include "sysdep.h" |
32 | #include "asm-syntax.h" | 32 | #include "asm-syntax.h" |
33 | 33 | ||
34 | 34 | ||
35 | /******************* | 35 | /******************* |
36 | * mpi_limb_t | 36 | * mpi_limb_t |
37 | * _gcry_mpih_sub_n( mpi_ptr_t res_ptr, (sp + 4) | 37 | * _gcry_mpih_sub_n( mpi_ptr_t res_ptr, (sp + 4) |
38 | * mpi_ptr_t s1_ptr, (sp + 8) | 38 | * mpi_ptr_t s1_ptr, (sp + 8) |
39 | * mpi_ptr_t s2_ptr, (sp + 12) | 39 | * mpi_ptr_t s2_ptr, (sp + 12) |
40 | * mpi_size_t size) (sp + 16) | 40 | * mpi_size_t size) (sp + 16) |
41 | */ | 41 | */ |
42 | 42 | ||
43 | 43 | ||
44 | .text | 44 | .text |
45 | ALIGN (3) | 45 | ALIGN (3) |
46 | .globl C_SYMBOL_NAME(_gcry_mpih_sub_n) | 46 | .globl C_SYMBOL_NAME(_gcry_mpih_sub_n) |
47 | C_SYMBOL_NAME(_gcry_mpih_sub_n:) | 47 | C_SYMBOL_NAME(_gcry_mpih_sub_n:) |
48 | 48 | ||
49 | pushl %edi | 49 | pushl %edi |
50 | pushl %esi | 50 | pushl %esi |
51 | pushl %ebx | 51 | pushl %ebx |
52 | pushl %ebp | 52 | pushl %ebp |
53 | 53 | ||
54 | movl 20(%esp),%edi /* res_ptr */ | 54 | movl 20(%esp),%edi /* res_ptr */ |
55 | movl 24(%esp),%esi /* s1_ptr */ | 55 | movl 24(%esp),%esi /* s1_ptr */ |
56 | movl 28(%esp),%ebp /* s2_ptr */ | 56 | movl 28(%esp),%ebp /* s2_ptr */ |
57 | movl 32(%esp),%ecx /* size */ | 57 | movl 32(%esp),%ecx /* size */ |
58 | 58 | ||
59 | movl (%ebp),%ebx | 59 | movl (%ebp),%ebx |
60 | 60 | ||
61 | decl %ecx | 61 | decl %ecx |
62 | movl %ecx,%edx | 62 | movl %ecx,%edx |
63 | shrl $3,%ecx | 63 | shrl $3,%ecx |
64 | andl $7,%edx | 64 | andl $7,%edx |
65 | testl %ecx,%ecx /* zero carry flag */ | 65 | testl %ecx,%ecx /* zero carry flag */ |
66 | jz Lend | 66 | jz Lend |
67 | pushl %edx | 67 | pushl %edx |
68 | 68 | ||
69 | ALIGN (3) | 69 | ALIGN (3) |
70 | Loop: movl 28(%edi),%eax /* fetch destination cache line */ | 70 | Loop: movl 28(%edi),%eax /* fetch destination cache line */ |
71 | leal 32(%edi),%edi | 71 | leal 32(%edi),%edi |
72 | 72 | ||
73 | L1: movl (%esi),%eax | 73 | L1: movl (%esi),%eax |
74 | movl 4(%esi),%edx | 74 | movl 4(%esi),%edx |
75 | sbbl %ebx,%eax | 75 | sbbl %ebx,%eax |
76 | movl 4(%ebp),%ebx | 76 | movl 4(%ebp),%ebx |
77 | sbbl %ebx,%edx | 77 | sbbl %ebx,%edx |
78 | movl 8(%ebp),%ebx | 78 | movl 8(%ebp),%ebx |
79 | movl %eax,-32(%edi) | 79 | movl %eax,-32(%edi) |
80 | movl %edx,-28(%edi) | 80 | movl %edx,-28(%edi) |
81 | 81 | ||
82 | L2: movl 8(%esi),%eax | 82 | L2: movl 8(%esi),%eax |
83 | movl 12(%esi),%edx | 83 | movl 12(%esi),%edx |
84 | sbbl %ebx,%eax | 84 | sbbl %ebx,%eax |
85 | movl 12(%ebp),%ebx | 85 | movl 12(%ebp),%ebx |
86 | sbbl %ebx,%edx | 86 | sbbl %ebx,%edx |
87 | movl 16(%ebp),%ebx | 87 | movl 16(%ebp),%ebx |
88 | movl %eax,-24(%edi) | 88 | movl %eax,-24(%edi) |
89 | movl %edx,-20(%edi) | 89 | movl %edx,-20(%edi) |
90 | 90 | ||
91 | L3: movl 16(%esi),%eax | 91 | L3: movl 16(%esi),%eax |
92 | movl 20(%esi),%edx | 92 | movl 20(%esi),%edx |
93 | sbbl %ebx,%eax | 93 | sbbl %ebx,%eax |
94 | movl 20(%ebp),%ebx | 94 | movl 20(%ebp),%ebx |
95 | sbbl %ebx,%edx | 95 | sbbl %ebx,%edx |
96 | movl 24(%ebp),%ebx | 96 | movl 24(%ebp),%ebx |
97 | movl %eax,-16(%edi) | 97 | movl %eax,-16(%edi) |
98 | movl %edx,-12(%edi) | 98 | movl %edx,-12(%edi) |
99 | 99 | ||
100 | L4: movl 24(%esi),%eax | 100 | L4: movl 24(%esi),%eax |
101 | movl 28(%esi),%edx | 101 | movl 28(%esi),%edx |
102 | sbbl %ebx,%eax | 102 | sbbl %ebx,%eax |
103 | movl 28(%ebp),%ebx | 103 | movl 28(%ebp),%ebx |
104 | sbbl %ebx,%edx | 104 | sbbl %ebx,%edx |
105 | movl 32(%ebp),%ebx | 105 | movl 32(%ebp),%ebx |
106 | movl %eax,-8(%edi) | 106 | movl %eax,-8(%edi) |
107 | movl %edx,-4(%edi) | 107 | movl %edx,-4(%edi) |
108 | 108 | ||
109 | leal 32(%esi),%esi | 109 | leal 32(%esi),%esi |
110 | leal 32(%ebp),%ebp | 110 | leal 32(%ebp),%ebp |
111 | decl %ecx | 111 | decl %ecx |
112 | jnz Loop | 112 | jnz Loop |
113 | 113 | ||
114 | popl %edx | 114 | popl %edx |
115 | Lend: | 115 | Lend: |
116 | decl %edx /* test %edx w/o clobbering carry */ | 116 | decl %edx /* test %edx w/o clobbering carry */ |
117 | js Lend2 | 117 | js Lend2 |
118 | incl %edx | 118 | incl %edx |
119 | Loop2: | 119 | Loop2: |
120 | leal 4(%edi),%edi | 120 | leal 4(%edi),%edi |
121 | movl (%esi),%eax | 121 | movl (%esi),%eax |
122 | sbbl %ebx,%eax | 122 | sbbl %ebx,%eax |
123 | movl 4(%ebp),%ebx | 123 | movl 4(%ebp),%ebx |
124 | movl %eax,-4(%edi) | 124 | movl %eax,-4(%edi) |
125 | leal 4(%esi),%esi | 125 | leal 4(%esi),%esi |
126 | leal 4(%ebp),%ebp | 126 | leal 4(%ebp),%ebp |
127 | decl %edx | 127 | decl %edx |
128 | jnz Loop2 | 128 | jnz Loop2 |
129 | Lend2: | 129 | Lend2: |
130 | movl (%esi),%eax | 130 | movl (%esi),%eax |
131 | sbbl %ebx,%eax | 131 | sbbl %ebx,%eax |
132 | movl %eax,(%edi) | 132 | movl %eax,(%edi) |
133 | 133 | ||
134 | sbbl %eax,%eax | 134 | sbbl %eax,%eax |
135 | negl %eax | 135 | negl %eax |
136 | 136 | ||
137 | popl %ebp | 137 | popl %ebp |
138 | popl %ebx | 138 | popl %ebx |
139 | popl %esi | 139 | popl %esi |
140 | popl %edi | 140 | popl %edi |
141 | ret | 141 | ret |
142 | 142 | ||