From fb05ed25ac999d78603da2bb370f1e4075319ad6 Mon Sep 17 00:00:00 2001 From: "Chen, Gang G" Date: Mon, 13 May 2024 10:27:58 +0800 Subject: [PATCH] Use default division method instead of ASM The ASM code is not working correctly, change to default method Ori-Tracked-On: OAM-117140 Tracked-On: OAM-118547 Signed-off-by: Chen, Gang G --- gnu-efi-3.0/lib/ia32/math.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnu-efi-3.0/lib/ia32/math.c b/gnu-efi-3.0/lib/ia32/math.c index fce7a8d..eb9e6dd 100644 --- a/gnu-efi-3.0/lib/ia32/math.c +++ b/gnu-efi-3.0/lib/ia32/math.c @@ -140,7 +140,7 @@ DivU64x32 ( // divide 64bit by 32bit and get a 64bit result // N.B. only works for 31bit divisors!! { -#if 0 && defined(__GNUC__) && !defined(__MINGW32__) +#if 1 && defined(__GNUC__) && !defined(__MINGW32__) if (Remainder) *Remainder = Dividend % Divisor; return Dividend / Divisor;