ALT Linux Bugzilla
– Attachment 6388 Details for
Bug 31309
Пакет отсутствует в ARM-ветке
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
патч
qt-creator-arm.patch (text/plain), 2.01 KB, created by
Denis Sergeevich
on 2015-09-28 19:03:18 MSK
(
hide
)
Description:
патч
Filename:
MIME Type:
Creator:
Denis Sergeevich
Created:
2015-09-28 19:03:18 MSK
Size:
2.01 KB
patch
obsolete
>diff --git a/src/libs/3rdparty/botan/botan.cpp b/src/libs/3rdparty/botan/botan.cpp >index 917c385..4364a2e 100644 >--- a/src/libs/3rdparty/botan/botan.cpp >+++ b/src/libs/3rdparty/botan/botan.cpp >@@ -1101,6 +1101,8 @@ class Montgomery_Exponentiator : public Modular_Exponentiator > > #if (BOTAN_MP_WORD_BITS != 32) > #error The mp_x86_32 module requires that BOTAN_MP_WORD_BITS == 32 >+#elif !defined(BOTAN_TARGET_CPU_IS_X86_FAMILY) >+typedef Botan::u64bit dword; > #endif > > #ifdef Q_OS_UNIX >@@ -1118,6 +1120,7 @@ extern "C" { > */ > inline word word_madd2(word a, word b, word* c) > { >+#if defined(BOTAN_TARGET_CPU_IS_X86_FAMILY) > asm( > ASM("mull %[b]") > ASM("addl %[c],%[a]") >@@ -1127,6 +1130,11 @@ inline word word_madd2(word a, word b, word* c) > : "0"(a), "1"(b), [c]"g"(*c) : "cc"); > > return a; >+#else >+ dword z = (dword)a * b + *c; >+ *c = (word)(z >> BOTAN_MP_WORD_BITS); >+ return (word)z; >+#endif > } > > /* >@@ -1134,6 +1142,7 @@ inline word word_madd2(word a, word b, word* c) > */ > inline word word_madd3(word a, word b, word c, word* d) > { >+#if defined(BOTAN_TARGET_CPU_IS_X86_FAMILY) > asm( > ASM("mull %[b]") > >@@ -1147,6 +1156,11 @@ inline word word_madd3(word a, word b, word c, word* d) > : "0"(a), "1"(b), [c]"g"(c), [d]"g"(*d) : "cc"); > > return a; >+#else >+ dword z = (dword)a * b + c + *d; >+ *d = (word)(z >> BOTAN_MP_WORD_BITS); >+ return (word)z; >+#endif > } > > } >@@ -2315,7 +2329,7 @@ namespace Botan { > > extern "C" { > >-#ifdef Q_OS_UNIX >+#if defined(Q_OS_UNIX) && defined(BOTAN_TARGET_CPU_IS_X86_FAMILY) > /* > * Helper Macros for x86 Assembly > */ >diff --git a/src/libs/3rdparty/botan/botan.h b/src/libs/3rdparty/botan/botan.h >index 6a9cbe0..8afec9e 100644 >--- a/src/libs/3rdparty/botan/botan.h >+++ b/src/libs/3rdparty/botan/botan.h >@@ -81,7 +81,9 @@ > #endif > > #define BOTAN_TARGET_CPU_IS_LITTLE_ENDIAN >+#if !defined(__arm__) > #define BOTAN_TARGET_CPU_IS_X86_FAMILY >+#endif > #define BOTAN_TARGET_UNALIGNED_MEMORY_ACCESS_OK 1 > > #if defined(BOTAN_TARGET_CPU_IS_LITTLE_ENDIAN) || \
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 31309
: 6388