mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-25 08:39:28 +00:00
libgcrypt: Don't use 64-bit division on platforms where it's slow
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
1 parent
de49514c9e
commit
d48c277c49
1 file changed
+15
@@ -0,0 +1,15 @@
|
|||||||
|
Don't use 64-bit division on platforms where it's slow
|
||||||
|
|
||||||
|
diff --git a/grub-core/lib/libgcrypt/mpi/longlong.h b/grub-core/lib/libgcrypt/mpi/longlong.h
|
||||||
|
index 21bd1a7ef..672448724 100644
|
||||||
|
--- a/grub-core/lib/libgcrypt-grub/mpi/longlong.h
|
||||||
|
+++ b/grub-core/lib/libgcrypt-grub/mpi/longlong.h
|
||||||
|
@@ -1711,7 +1711,7 @@ typedef unsigned int UTItype __attribute__ ((mode (TI)));
|
||||||
|
} while (0)
|
||||||
|
|
||||||
|
/* Use double word type if available. */
|
||||||
|
-#if !defined (udiv_qrnnd) && defined (UDWtype)
|
||||||
|
+#if !defined (udiv_qrnnd) && defined (UDWtype) && !defined(__arm__) && !defined(__mips__) && !defined(__powerpc__)
|
||||||
|
# define udiv_qrnnd(q, r, nh, nl, d) \
|
||||||
|
do { \
|
||||||
|
UWtype __d = (d); \
|
||||||
Reference in new issue
Block a user