simple division on arm and ia64.
+2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
+ simple division on arm and ia64.
+
2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
grub_uint64_t q = 0;
grub_uint64_t m = 0;
+ /* ARM and IA64 don't have a fast 32-bit division.
+ Using that code would just make us use libgcc routines, calling
+ them twice (once for modulo and once for quotient.
+ */
+#if !defined (__arm__) && !defined (__ia64__)
/* Skip the slow computation if 32-bit arithmetic is possible. */
if (n < 0xffffffff && d < 0xffffffff)
{
return ((grub_uint32_t) n) / (grub_uint32_t) d;
}
+#endif
while (bits--)
{