~ubuntu-branches/ubuntu/maverick/openssl/maverick

« back to all changes in this revision

Viewing changes to crypto/bn/asm/x86_64-gcc.c

  • Committer: Bazaar Package Importer
  • Author(s): Marc Deslauriers
  • Date: 2010-06-14 09:08:29 UTC
  • mfrom: (11.1.14 sid)
  • Revision ID: james.westby@ubuntu.com-20100614090829-nf3nrftn7ly58mxv
Tags: 0.9.8o-1ubuntu1
* Merge from debian unstable, remaining changes (LP: #581167):
  - debian/patches/Bsymbolic-functions.patch: Link using
    -Bsymbolic-functions
  - Ship documentation in openssl-doc, suggested by the package.
  - Use a different priority for libssl0.9.8/restart-services
    depending on whether a desktop, or server dist-upgrade is being
    performed.
  - Display a system restart required notification bubble on libssl0.9.8
    upgrade.
  - Replace duplicate files in the doc directory with symlinks.
  - Move runtime libraries to /lib, for the benefit of wpasupplicant
  - Use host compiler when cross-building (patch from Neil Williams in
    Debian #465248).
  - Don't run 'make test' when cross-building.
  - Create libssl0.9.8-udeb, for the benefit of wget-udeb (LP: #503339).
  - debian/patches/aesni.patch: Backport Intel AES-NI support from
    http://rt.openssl.org/Ticket/Display.html?id=2067 (LP: #485518).
  - debian/patches/perlpath-quilt.patch: Don't change perl #! paths
    under .pc.
* Dropped patches, now upstream:
  - debian/patches/CVE-2009-3245.patch
  - debian/patches/CVE-2010-0740.patch
  - debian/patches/dtls-compatibility.patch
  - debian/patches/CVE-2009-4355.patch
* Dropped "Add support for lpia".
* Dropped "Disable SSLv2 during compile" as this had never actually
  disabled SSLv2.
* Don't disable CVE-2009-3555.patch for Maverick.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "../bn_lcl.h"
1
2
#ifdef __SUNPRO_C
2
3
# include "../bn_asm.c" /* kind of dirty hack for Sun Studio */
3
4
#else
56
57
 
57
58
#define BN_ULONG unsigned long
58
59
 
 
60
#undef mul
 
61
#undef mul_add
 
62
#undef sqr
 
63
 
59
64
/*
60
65
 * "m"(a), "+m"(r)      is the way to favor DirectPath �-code;
61
66
 * "g"(0)               let the compiler to decide where does it
97
102
                : "a"(a)                \
98
103
                : "cc");
99
104
 
100
 
BN_ULONG bn_mul_add_words(BN_ULONG *rp, BN_ULONG *ap, int num, BN_ULONG w)
 
105
BN_ULONG bn_mul_add_words(BN_ULONG *rp, const BN_ULONG *ap, int num, BN_ULONG w)
101
106
        {
102
107
        BN_ULONG c1=0;
103
108
 
121
126
        return(c1);
122
127
        } 
123
128
 
124
 
BN_ULONG bn_mul_words(BN_ULONG *rp, BN_ULONG *ap, int num, BN_ULONG w)
 
129
BN_ULONG bn_mul_words(BN_ULONG *rp, const BN_ULONG *ap, int num, BN_ULONG w)
125
130
        {
126
131
        BN_ULONG c1=0;
127
132
 
144
149
        return(c1);
145
150
        } 
146
151
 
147
 
void bn_sqr_words(BN_ULONG *r, BN_ULONG *a, int n)
 
152
void bn_sqr_words(BN_ULONG *r, const BN_ULONG *a, int n)
148
153
        {
149
154
        if (n <= 0) return;
150
155
 
175
180
        return ret;
176
181
}
177
182
 
178
 
BN_ULONG bn_add_words (BN_ULONG *rp, BN_ULONG *ap, BN_ULONG *bp,int n)
 
183
BN_ULONG bn_add_words (BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp,int n)
179
184
{ BN_ULONG ret=0,i=0;
180
185
 
181
186
        if (n <= 0) return 0;
198
203
}
199
204
 
200
205
#ifndef SIMICS
201
 
BN_ULONG bn_sub_words (BN_ULONG *rp, BN_ULONG *ap, BN_ULONG *bp,int n)
 
206
BN_ULONG bn_sub_words (BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp,int n)
202
207
{ BN_ULONG ret=0,i=0;
203
208
 
204
209
        if (n <= 0) return 0;
485
490
        r[7]=c2;
486
491
        }
487
492
 
488
 
void bn_sqr_comba8(BN_ULONG *r, BN_ULONG *a)
 
493
void bn_sqr_comba8(BN_ULONG *r, const BN_ULONG *a)
489
494
        {
490
495
        BN_ULONG t1,t2;
491
496
        BN_ULONG c1,c2,c3;
561
566
        r[15]=c1;
562
567
        }
563
568
 
564
 
void bn_sqr_comba4(BN_ULONG *r, BN_ULONG *a)
 
569
void bn_sqr_comba4(BN_ULONG *r, const BN_ULONG *a)
565
570
        {
566
571
        BN_ULONG t1,t2;
567
572
        BN_ULONG c1,c2,c3;