mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
[CRT/ARM] Fix modulus on division (#3856)
This fixes all tests added in759bdedc. Addendum tof2bc1f0e. CORE-17607 CORE-17614 CORE-17604
This commit is contained in:
@@ -87,7 +87,11 @@ __rt_div_worker(
|
||||
if (divisor > dividend)
|
||||
{
|
||||
result->data.quotient = 0;
|
||||
result->data.modulus = divisor;
|
||||
#ifdef _SIGNED_DIV_
|
||||
if (dividend_sign)
|
||||
dividend = -(INT3264)dividend;
|
||||
#endif // _SIGNED_DIV_
|
||||
result->data.modulus = dividend;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user