Skip to content

Commit eddecbf

Browse files
committed
[i686 Linux] Add __mulodi4 Math Stub to i686
Win and Linux Arm32 have the same aversion to linking compiler-rt for this.
1 parent 0a2cdd4 commit eddecbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/stubs/MathStubs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ __muloti4(ti_int a, ti_int b, int* overflow)
112112
// lowered to instructions as though MSVC had generated. There does not seem to
113113
// be a MSVC provided multiply with overflow detection that I can see, but this
114114
// avoids an unnecessary dependency on compiler-rt for a single function.
115-
#if (defined(__linux__) && defined(__arm__)) || defined(_WIN32)
115+
#if (defined(__linux__) && (defined(__arm__) || defined(__i386__))) || defined(_WIN32)
116116

117117
// Similar to above, but with mulodi4. Perhaps this is
118118
// something that shouldn't be done, and is a bandaid over

0 commit comments

Comments
 (0)