]> git.pld-linux.org Git - packages/openssl.git/blob - openssl_fix_for_x32.patch
- up to 1.0.2
[packages/openssl.git] / openssl_fix_for_x32.patch
1 diff -ruNp openssl-1.0.2.orig/crypto/bn/asm/x86_64-gcc.c openssl-1.0.2/crypto/bn/asm/x86_64-gcc.c
2 --- openssl-1.0.2.orig/crypto/bn/asm/x86_64-gcc.c       2015-01-22 15:58:32.000000000 +0100
3 +++ openssl-1.0.2/crypto/bn/asm/x86_64-gcc.c    2015-01-27 16:19:21.432252035 +0100
4 @@ -212,9 +212,9 @@ BN_ULONG bn_add_words(BN_ULONG *rp, cons
5      asm volatile ("       subq    %0,%0           \n" /* clear carry */
6                    "       jmp     1f              \n"
7                    ".p2align 4                     \n"
8 -                  "1:     movq    (%4,%2,8),%0    \n"
9 -                  "       adcq    (%5,%2,8),%0    \n"
10 -                  "       movq    %0,(%3,%2,8)    \n"
11 +                  "1:     movq    (%q4,%2,8),%0    \n"
12 +                  "       adcq    (%q5,%2,8),%0    \n"
13 +                  "       movq    %0,(%q3,%2,8)    \n"
14                    "       lea     1(%2),%2        \n"
15                    "       loop    1b              \n"
16                    "       sbbq    %0,%0           \n":"=&r" (ret), "+c"(n),
17 @@ -238,9 +238,9 @@ BN_ULONG bn_sub_words(BN_ULONG *rp, cons
18      asm volatile ("       subq    %0,%0           \n" /* clear borrow */
19                    "       jmp     1f              \n"
20                    ".p2align 4                     \n"
21 -                  "1:     movq    (%4,%2,8),%0    \n"
22 -                  "       sbbq    (%5,%2,8),%0    \n"
23 -                  "       movq    %0,(%3,%2,8)    \n"
24 +                  "1:     movq    (%q4,%2,8),%0    \n"
25 +                  "       sbbq    (%q5,%2,8),%0    \n"
26 +                  "       movq    %0,(%q3,%2,8)    \n"
27                    "       lea     1(%2),%2        \n"
28                    "       loop    1b              \n"
29                    "       sbbq    %0,%0           \n":"=&r" (ret), "+c"(n),
This page took 0.026502 seconds and 3 git commands to generate.