Skip to content

Commit

Permalink
Make ia32 use our own div asm on gnu C as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
vathpela committed Jan 8, 2018
1 parent b95ac3a commit e192c2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ia32/math.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ DivU64x32 (
// divide 64bit by 32bit and get a 64bit result
// N.B. only works for 31bit divisors!!
{
#if defined(__GNUC__) && !defined(__MINGW32__)
#if 0 && defined(__GNUC__) && !defined(__MINGW32__)
if (Remainder)
*Remainder = Dividend % Divisor;
return Dividend / Divisor;
Expand All @@ -157,7 +157,7 @@ DivU64x32 (

Rem = 0;
for (bit=0; bit < 64; bit++) {
#ifdef __MINGW32__
#if defined(__GNUC__) || defined(__MINGW32__)
asm (
"shll $1, %0\n\t"
"rcll $1, 4%0\n\t"
Expand Down

0 comments on commit e192c2f

Please sign in to comment.