File: 07_disable_64div.patch

package info (click to toggle)
grub2 2.14~git20250718.0e36779-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 60,688 kB
  • sloc: ansic: 541,811; asm: 68,074; sh: 9,803; cpp: 2,095; makefile: 1,895; python: 1,518; sed: 446; lex: 393; yacc: 268; awk: 85; lisp: 54; perl: 31
file content (15 lines) | stat: -rw-r--r-- 676 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);							\