mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 08:50:24 +08: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:
committed by
Stanislav Motylkov
parent
759bdedc1e
commit
fd8baca9f2
@@ -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