This commit is contained in:
Jaklyy 2024-03-29 14:06:52 -04:00
parent c5b9c3d36d
commit 8f450faa56

View File

@ -95,8 +95,7 @@ private:
// should optimize down to one divide instruction
this->zquo = ((z0 - z1) >> 1) / xdiff << 1;
s32 rem = ((z0 - z1) >> 1) % xdiff << 1;
s32 idk = zquo * xdiff;
this->zcounter = z1 + idk + rem;
this->zcounter = z1 + (zquo * xdiff) + rem;
}
}