Blame SOURCES/0012-Make-ia32-use-our-own-div-asm-on-gnu-C-as-well.patch

aad209
From bbd1ee0379327a58e042d288e371f314b7df2d55 Mon Sep 17 00:00:00 2001
aad209
From: Peter Jones <pjones@redhat.com>
aad209
Date: Wed, 15 Mar 2017 17:33:39 -0400
aad209
Subject: [PATCH] Make ia32 use our own div asm on gnu C as well.
aad209
aad209
---
aad209
 lib/ia32/math.c | 4 ++--
aad209
 1 file changed, 2 insertions(+), 2 deletions(-)
aad209
aad209
diff --git a/lib/ia32/math.c b/lib/ia32/math.c
aad209
index 81f51bf..fce7a8d 100644
aad209
--- a/lib/ia32/math.c
aad209
+++ b/lib/ia32/math.c
aad209
@@ -140,7 +140,7 @@ DivU64x32 (
aad209
 // divide 64bit by 32bit and get a 64bit result
aad209
 // N.B. only works for 31bit divisors!!
aad209
 {
aad209
-#if defined(__GNUC__) && !defined(__MINGW32__)
aad209
+#if 0 && defined(__GNUC__) && !defined(__MINGW32__)
aad209
     if (Remainder)
aad209
         *Remainder = Dividend % Divisor;
aad209
     return Dividend / Divisor;
aad209
@@ -157,7 +157,7 @@ DivU64x32 (
aad209
 
aad209
     Rem = 0;
aad209
     for (bit=0; bit < 64; bit++) {
aad209
-#ifdef __MINGW32__
aad209
+#if defined(__GNUC__) || defined(__MINGW32__)
aad209
         asm (
aad209
             "shll	$1, %0\n\t"
aad209
             "rcll	$1, 4%0\n\t"
aad209
-- 
aad209
2.12.0
aad209